From a4f3180e2a1b15d94a786a5716ca84a808247d08 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Tue, 9 Jul 2013 20:51:03 +1000 Subject: [PATCH] Plane: added support for throttle nudging with TECS --- ArduPlane/ArduPlane.pde | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ArduPlane/ArduPlane.pde b/ArduPlane/ArduPlane.pde index 6607e5be3b..7de422f395 100644 --- a/ArduPlane/ArduPlane.pde +++ b/ArduPlane/ArduPlane.pde @@ -1262,9 +1262,10 @@ static void update_alt() if (g.alt_control_algorithm == ALT_CONTROL_TECS && auto_throttle_mode && !throttle_suppressed) { SpdHgt_Controller->update_pitch_throttle(target_altitude_cm - home.alt + (int32_t(g.alt_offset)*100), - target_airspeed_cm, + target_airspeed_cm, (control_mode==AUTO && takeoff_complete == false), - takeoff_pitch_cd); + takeoff_pitch_cd, + throttle_nudge); if (g.log_bitmask & MASK_LOG_TECS) { Log_Write_TECS_Tuning(); }