mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 07:38:28 -04:00
AC_AttitudeControl: only allow angle boost when not autorotating
This commit is contained in:
parent
a19b72e895
commit
805480e5a2
@ -542,7 +542,7 @@ void AC_AttitudeControl_Heli::set_throttle_out(float throttle_in, bool apply_ang
|
|||||||
update_althold_lean_angle_max(throttle_in);
|
update_althold_lean_angle_max(throttle_in);
|
||||||
|
|
||||||
_motors.set_throttle_filter_cutoff(filter_cutoff);
|
_motors.set_throttle_filter_cutoff(filter_cutoff);
|
||||||
if (apply_angle_boost) {
|
if (apply_angle_boost && !((AP_MotorsHeli&)_motors).get_in_autorotation()) {
|
||||||
// Apply angle boost
|
// Apply angle boost
|
||||||
throttle_in = get_throttle_boosted(throttle_in);
|
throttle_in = get_throttle_boosted(throttle_in);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user