mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 14:48:28 -04:00
Copter: limit ATC_MOT_MIX_MAX in case of a fly away
This commit is contained in:
parent
3ca713fdcb
commit
e7f94fc810
@ -176,7 +176,7 @@ void Copter::update_throttle_thr_mix()
|
|||||||
bool descent_not_demanded = pos_control->get_desired_velocity().z >= 0.0f;
|
bool descent_not_demanded = pos_control->get_desired_velocity().z >= 0.0f;
|
||||||
|
|
||||||
if ( large_angle_request || large_angle_error || accel_moving || descent_not_demanded) {
|
if ( large_angle_request || large_angle_error || accel_moving || descent_not_demanded) {
|
||||||
attitude_control->set_throttle_mix_max();
|
attitude_control->set_throttle_mix_max(pos_control->get_vel_z_control_ratio());
|
||||||
} else {
|
} else {
|
||||||
attitude_control->set_throttle_mix_min();
|
attitude_control->set_throttle_mix_min();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user