diff --git a/ArduPlane/ArduPlane.cpp b/ArduPlane/ArduPlane.cpp index 8f5a73755b..b78501abfe 100644 --- a/ArduPlane/ArduPlane.cpp +++ b/ArduPlane/ArduPlane.cpp @@ -876,11 +876,12 @@ void Plane::update_alt() update_flight_stage(); + bool is_doing_auto_land = (control_mode == AUTO) && (mission.get_current_nav_cmd().id == MAV_CMD_NAV_LAND); if (auto_throttle_mode && !throttle_suppressed) { SpdHgt_Controller->update_pitch_throttle(relative_target_altitude_cm(), target_airspeed_cm, flight_stage, - mission.get_current_nav_cmd().id, + is_doing_auto_land, auto_state.takeoff_pitch_cd, throttle_nudge, tecs_hgt_afe(),