Plane: fix centi-degree scaling bug

This commit is contained in:
Paul Riseborough 2023-09-13 21:17:29 +10:00 committed by Andrew Tridgell
parent da595bbf88
commit 90eacaeb88
1 changed files with 1 additions and 1 deletions

View File

@ -3010,7 +3010,7 @@ void QuadPlane::assign_tilt_to_fwd_thr(void) {
q_fwd_throttle *= fwd_thr_scaler;
// When reducing forward throttle use, relax forward pitch limit to maintain forward
// acceleration capability.
nav_pitch_lower_limit_cd = - (int32_t)((float)aparm.angle_max * (1.0f - fwd_thr_scaler) + 100.0f * q_fwd_pitch_lim_cd * fwd_thr_scaler);
nav_pitch_lower_limit_cd = - (int32_t)((float)aparm.angle_max * (1.0f - fwd_thr_scaler) + q_fwd_pitch_lim_cd * fwd_thr_scaler);
} else {
nav_pitch_lower_limit_cd = - q_fwd_pitch_lim_cd;
}