1
0
Fork 0

Fix so that we don't attempt a phantom trim on the larcsim flight model at

startup.
This commit is contained in:
curt 2000-05-17 03:53:36 +00:00
parent f886e46623
commit 466c7ec5dc

View file

@ -545,12 +545,12 @@ bool fgInitSubsystems( void ) {
current_autopilot = new FGAutopilot;
current_autopilot->init();
if ( current_options.get_trim_mode() == true ) {
current_autopilot->set_AutoThrottleEnabled(
!current_autopilot->get_AutoThrottleEnabled() );
current_autopilot->AutoThrottleAdjust(
controls.get_trimmed_throttle(0) );
}
if((current_options.get_trim_mode() == true) && (current_options.get_flight_model() == FGInterface::FG_JSBSIM) ) {
current_autopilot->set_AutoThrottleEnabled(
! current_autopilot->get_AutoThrottleEnabled() );
current_autopilot->AutoThrottleAdjust(
controls.get_trimmed_throttle(0) );
}
// initialize the gui parts of the autopilot
NewTgtAirportInit();