bool FGFCSComponent::Run(void)
{
-
- // switch(InputType) {
-// case itAP:
-// case itPilotAC:
-// Input = InputNode->getDoubleValue();
-// break;
-// case itFCS:
-// Input = fcs->GetComponentOutput(InputIdx);
-// case itBias:
-// break;
-// }
-
return true;
}
void FGFCSComponent::unbind(void) {
string name = "fcs";
FGPropertyManager *node=PropertyManager->GetNode(name);
- node->Untie( PropertyManager->mkPropertyName(Name, true) );
- name += "/components"
+ name += "/" + PropertyManager->mkPropertyName(Name, true);
+ PropertyManager->Untie( name );
+
+ name = "fcs/components/"
+ PropertyManager->mkPropertyName(Name, true);
node= PropertyManager->GetNode(name);
node->Untie("output-value");
double dt=fcs->GetState()->Getdt();
double output_transit_rate=0;
- FGFCSComponent::Run(); // call the base class for initialization of Input
+ Input = InputNodes[0]->getDoubleValue();
InputCmd = Input*Detents[NumDetents-1];
OutputPos = OutputNode->getDoubleValue();
if (fabs(OutputPos - InputCmd) > fabs(dt*output_transit_rate) ) {
OutputPos+=output_transit_rate*dt;
//cout << "FGKinemat::Run, OutputPos: " << OutputPos
- // << " dt: " << dt << endl;
+ // << " dt: " << dt << endl;
} else {
InTransit=0;
OutputPos=InputCmd;