From 466c7ec5dc636762490dc8375adcdab8411d6ee8 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 17 May 2000 03:53:36 +0000 Subject: [PATCH] Fix so that we don't attempt a phantom trim on the larcsim flight model at startup. --- src/Main/fg_init.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 4ee6d915e..0d5857387 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -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(); -- 2.39.5