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:
parent
8d2014f7bc
commit
04f7625c67
2 changed files with 6 additions and 16 deletions
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue