From 2c73c56403618a22814f504229fd13ca2f7906e1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 19 Jan 2024 13:07:53 +1100 Subject: [PATCH] AP_TECS: convert LAND_PITCH_CD to LAND_PITCH_DEG --- libraries/AP_TECS/AP_TECS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_TECS/AP_TECS.cpp b/libraries/AP_TECS/AP_TECS.cpp index 250de6e689..5966bdecf4 100644 --- a/libraries/AP_TECS/AP_TECS.cpp +++ b/libraries/AP_TECS/AP_TECS.cpp @@ -1285,7 +1285,7 @@ void AP_TECS::update_pitch_throttle(int32_t hgt_dem_cm, } const float pitch_limit_deg = (1.0f - p) * _pitch_min_at_flare_entry + p * 0.01f * _landing.get_pitch_cd(); - // in flare use min pitch from LAND_PITCH_CD + // in flare use min pitch from LAND_PITCH_DEG _PITCHminf = MAX(_PITCHminf, pitch_limit_deg); // and use max pitch from TECS_LAND_PMAX