Fixed gear position property.
This commit is contained in:
parent
7631c37f73
commit
173251885b
1 changed files with 3 additions and 3 deletions
|
@ -529,7 +529,7 @@ bool FGJSBsim::copy_from_JSBsim() {
|
||||||
|
|
||||||
elevator_pos_pct->setDoubleValue( FCS->GetDePosN() );
|
elevator_pos_pct->setDoubleValue( FCS->GetDePosN() );
|
||||||
left_aileron_pos_pct->setDoubleValue( FCS->GetDaLPosN() );
|
left_aileron_pos_pct->setDoubleValue( FCS->GetDaLPosN() );
|
||||||
right_aileron_pos_pct->setDoubleValue( FCS->GetDaRPosN() );
|
right_aileron_pos_pct->setDoubleValue( -1*FCS->GetDaLPosN() );
|
||||||
rudder_pos_pct->setDoubleValue( FCS->GetDrPosN() );
|
rudder_pos_pct->setDoubleValue( FCS->GetDrPosN() );
|
||||||
flap_pos_pct->setDoubleValue( FCS->GetDfPosN() );
|
flap_pos_pct->setDoubleValue( FCS->GetDfPosN() );
|
||||||
|
|
||||||
|
@ -737,7 +737,7 @@ void FGJSBsim::init_gear(void ) {
|
||||||
gr->GetGearUnit(i)->GetBodyLocation()(3));
|
gr->GetGearUnit(i)->GetBodyLocation()(3));
|
||||||
node->setBoolValue("wow", gr->GetGearUnit(i)->GetWOW());
|
node->setBoolValue("wow", gr->GetGearUnit(i)->GetWOW());
|
||||||
node->setBoolValue("has-brake", gr->GetGearUnit(i)->GetBrakeGroup() > 0);
|
node->setBoolValue("has-brake", gr->GetGearUnit(i)->GetBrakeGroup() > 0);
|
||||||
node->setDoubleValue("position", FCS->GetGearPos());
|
node->setDoubleValue("position-norm", FCS->GetGearPos());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -749,7 +749,7 @@ void FGJSBsim::update_gear(void) {
|
||||||
SGPropertyNode * node = fgGetNode("gear/gear", i, true);
|
SGPropertyNode * node = fgGetNode("gear/gear", i, true);
|
||||||
node->getChild("wow", 0, true)
|
node->getChild("wow", 0, true)
|
||||||
->setBoolValue(gr->GetGearUnit(i)->GetWOW());
|
->setBoolValue(gr->GetGearUnit(i)->GetWOW());
|
||||||
node->getChild("position", 0, true)
|
node->getChild("position-norm", 0, true)
|
||||||
->setDoubleValue(FCS->GetGearPos());
|
->setDoubleValue(FCS->GetGearPos());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue