1
0
Fork 0

Multi-engine throttle fixes.

This commit is contained in:
curt 2001-07-23 20:32:31 +00:00
parent 97067e62a2
commit a40a60a213

View file

@ -97,8 +97,7 @@ FGJSBsim::FGJSBsim( double dt )
if (result) {
SG_LOG( SG_FLIGHT, SG_INFO,
" loaded aircraft.");
SG_LOG( SG_FLIGHT, SG_INFO, " loaded aircraft.");
} else {
SG_LOG( SG_FLIGHT, SG_INFO,
" aircraft does not exist (you may have mis-typed the name).");
@ -279,11 +278,12 @@ bool FGJSBsim::copy_to_JSBsim() {
FCS->SetDfCmd( globals->get_controls()->get_flaps() );
FCS->SetDsbCmd( 0.0 ); //speedbrakes
FCS->SetDspCmd( 0.0 ); //spoilers
FCS->SetThrottleCmd( FGControls::ALL_ENGINES,
globals->get_controls()->get_throttle( 0 ));
FCS->SetLBrake( globals->get_controls()->get_brake( 0 ) );
FCS->SetRBrake( globals->get_controls()->get_brake( 1 ) );
FCS->SetCBrake( globals->get_controls()->get_brake( 2 ) );
for (int i = 0; i < get_num_engines(); i++) {
FCS->SetThrottleCmd(i, globals->get_controls()->get_throttle(i));
}
Position->SetSeaLevelRadius( get_Sea_level_radius() );
Position->SetRunwayRadius( scenery.cur_elev*SG_METER_TO_FEET