From 5ec361ae061e0159273ec755b7abb6f3ab0114e1 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Mon, 14 Feb 2011 21:01:48 +0100 Subject: [PATCH] Fix wrong throttle-position on init (trim) --- src/FDM/JSBSim/JSBSim.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FDM/JSBSim/JSBSim.cxx b/src/FDM/JSBSim/JSBSim.cxx index 1118902d6..c986cbdd9 100644 --- a/src/FDM/JSBSim/JSBSim.cxx +++ b/src/FDM/JSBSim/JSBSim.cxx @@ -1217,8 +1217,8 @@ void FGJSBsim::do_trim(void) globals->get_controls()->set_elevator_trim(FCS->GetPitchTrimCmd()); globals->get_controls()->set_elevator(FCS->GetDeCmd()); - globals->get_controls()->set_throttle(FGControls::ALL_ENGINES, - FCS->GetThrottleCmd(0)); + for( unsigned i = 0; i < Propulsion->GetNumEngines(); i++ ) + globals->get_controls()->set_throttle(i, FCS->GetThrottleCmd(i)); globals->get_controls()->set_aileron(FCS->GetDaCmd()); globals->get_controls()->set_rudder( FCS->GetDrCmd()); -- 2.39.5