]> git.mxchange.org Git - flightgear.git/commitdiff
Fixes for flaps, gear, and reset. The c310 takeoff rotation problem seems to be...
authortony <tony>
Wed, 25 Sep 2002 11:04:20 +0000 (11:04 +0000)
committertony <tony>
Wed, 25 Sep 2002 11:04:20 +0000 (11:04 +0000)
src/FDM/JSBSim/filtersjb/FGFCSComponent.cpp
src/FDM/JSBSim/filtersjb/FGKinemat.cpp

index 3da8142617c147278ef33f6d4b96ebcd183b9f63..56b5ee83e59db80cda1aaf568ce349e336e696e4 100644 (file)
@@ -77,18 +77,6 @@ void FGFCSComponent::SetOutput(void)
 
 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;
 }
 
@@ -128,8 +116,10 @@ void FGFCSComponent::bind(FGPropertyManager *node) {
 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");
index 98600cda4ad0add13f3a88d88d4e20e522af2684..88701682527a022f41914e7eab8457c755501450 100644 (file)
@@ -109,7 +109,7 @@ bool FGKinemat::Run(void ) {
   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();
   
@@ -155,7 +155,7 @@ bool FGKinemat::Run(void ) {
         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;