mirror of https://github.com/ArduPilot/ardupilot
Sub: remove angle_boost logic
This gets in the way of the vectored thrust implemented, and is just not useful for Sub.
This commit is contained in:
parent
1209c946e6
commit
5ef7392d6b
|
@ -204,13 +204,6 @@ void AC_AttitudeControl_Sub::set_throttle_out(float throttle_in, bool apply_angl
|
|||
_throttle_in = throttle_in;
|
||||
update_althold_lean_angle_max(throttle_in);
|
||||
_motors.set_throttle_filter_cutoff(filter_cutoff);
|
||||
if (apply_angle_boost) {
|
||||
// Apply angle boost
|
||||
throttle_in = get_throttle_boosted(throttle_in);
|
||||
}else{
|
||||
// Clear angle_boost for logging purposes
|
||||
_angle_boost = 0.0f;
|
||||
}
|
||||
_motors.set_throttle(throttle_in);
|
||||
_motors.set_throttle_avg_max(get_throttle_avg_max(MAX(throttle_in, _throttle_in)));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue