1
0
Fork 0

Fixes for flaps, gear, and reset. The c310 takeoff rotation problem seems to be fixed as well, though I don't understand why.

This commit is contained in:
tony 2002-09-25 11:04:20 +00:00
parent 8d2014f7bc
commit 04f7625c67
2 changed files with 6 additions and 16 deletions

View file

@ -77,18 +77,6 @@ void FGFCSComponent::SetOutput(void)
bool FGFCSComponent::Run(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; return true;
} }
@ -128,8 +116,10 @@ void FGFCSComponent::bind(FGPropertyManager *node) {
void FGFCSComponent::unbind(void) { void FGFCSComponent::unbind(void) {
string name = "fcs"; string name = "fcs";
FGPropertyManager *node=PropertyManager->GetNode(name); FGPropertyManager *node=PropertyManager->GetNode(name);
node->Untie( PropertyManager->mkPropertyName(Name, true) ); name += "/" + PropertyManager->mkPropertyName(Name, true);
name += "/components" PropertyManager->Untie( name );
name = "fcs/components/"
+ PropertyManager->mkPropertyName(Name, true); + PropertyManager->mkPropertyName(Name, true);
node= PropertyManager->GetNode(name); node= PropertyManager->GetNode(name);
node->Untie("output-value"); node->Untie("output-value");

View file

@ -109,7 +109,7 @@ bool FGKinemat::Run(void ) {
double dt=fcs->GetState()->Getdt(); double dt=fcs->GetState()->Getdt();
double output_transit_rate=0; double output_transit_rate=0;
FGFCSComponent::Run(); // call the base class for initialization of Input Input = InputNodes[0]->getDoubleValue();
InputCmd = Input*Detents[NumDetents-1]; InputCmd = Input*Detents[NumDetents-1];
OutputPos = OutputNode->getDoubleValue(); OutputPos = OutputNode->getDoubleValue();
@ -155,7 +155,7 @@ bool FGKinemat::Run(void ) {
if (fabs(OutputPos - InputCmd) > fabs(dt*output_transit_rate) ) { if (fabs(OutputPos - InputCmd) > fabs(dt*output_transit_rate) ) {
OutputPos+=output_transit_rate*dt; OutputPos+=output_transit_rate*dt;
//cout << "FGKinemat::Run, OutputPos: " << OutputPos //cout << "FGKinemat::Run, OutputPos: " << OutputPos
// << " dt: " << dt << endl; // << " dt: " << dt << endl;
} else { } else {
InTransit=0; InTransit=0;
OutputPos=InputCmd; OutputPos=InputCmd;