From 971d36f06b86159f42d20a2fe89cb9b6866a822c Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Wed, 10 Jul 2013 13:31:29 +1000 Subject: [PATCH] Plane: added height to 10Hz TECS call --- ArduPlane/ArduPlane.pde | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArduPlane/ArduPlane.pde b/ArduPlane/ArduPlane.pde index 3528636b8e..d510199fd5 100644 --- a/ArduPlane/ArduPlane.pde +++ b/ArduPlane/ArduPlane.pde @@ -1254,7 +1254,8 @@ static void update_alt() target_airspeed_cm, (control_mode==AUTO && takeoff_complete == false), takeoff_pitch_cd, - throttle_nudge); + throttle_nudge, + float(hgt_afe_cm)*0.01f); if (g.log_bitmask & MASK_LOG_TECS) { Log_Write_TECS_Tuning(); }