AP_TECS: convert LAND_PITCH_CD to LAND_PITCH_DEG

This commit is contained in:
Andrew Tridgell 2024-01-19 13:07:53 +11:00
parent 3fddc487df
commit 2c73c56403
1 changed files with 1 additions and 1 deletions

View File

@ -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