From bc635b3a9d329b79a667894471a6d83a257be38d Mon Sep 17 00:00:00 2001 From: George Zogopoulos Date: Wed, 26 Jun 2024 19:45:06 +0200 Subject: [PATCH] ArduPlane: TECS now has takeoff settings setter --- ArduPlane/ArduPlane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/ArduPlane.cpp b/ArduPlane/ArduPlane.cpp index 59e65dc343e738..6691a09c134eb0 100644 --- a/ArduPlane/ArduPlane.cpp +++ b/ArduPlane/ArduPlane.cpp @@ -594,11 +594,11 @@ void Plane::update_alt() tecs_target_alt_cm = MAX(tecs_target_alt_cm, prev_WP_loc.alt - home.alt) + (g2.rtl_climb_min+10)*100; } + TECS_controller.set_tkoff_settings(get_takeoff_pitch_min_cd(), mode_takeoff.level_alt); TECS_controller.update_pitch_throttle(tecs_target_alt_cm, target_airspeed_cm, flight_stage, distance_beyond_land_wp, - get_takeoff_pitch_min_cd(), throttle_nudge, tecs_hgt_afe(), aerodynamic_load_factor,