mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Plane: fix centi-degree scaling bug
This commit is contained in:
parent
da595bbf88
commit
90eacaeb88
@ -3010,7 +3010,7 @@ void QuadPlane::assign_tilt_to_fwd_thr(void) {
|
|||||||
q_fwd_throttle *= fwd_thr_scaler;
|
q_fwd_throttle *= fwd_thr_scaler;
|
||||||
// When reducing forward throttle use, relax forward pitch limit to maintain forward
|
// When reducing forward throttle use, relax forward pitch limit to maintain forward
|
||||||
// acceleration capability.
|
// 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 {
|
} else {
|
||||||
nav_pitch_lower_limit_cd = - q_fwd_pitch_lim_cd;
|
nav_pitch_lower_limit_cd = - q_fwd_pitch_lim_cd;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user