Browse Source

Copter: land detector allows larger lean angle request in land mode

zr-v5.1
Randy Mackay 5 years ago
parent
commit
64360f263c
  1. 5
      ArduCopter/land_detector.cpp

5
ArduCopter/land_detector.cpp

@ -173,7 +173,10 @@ void Copter::update_throttle_mix() @@ -173,7 +173,10 @@ void Copter::update_throttle_mix()
// check for requested decent
bool descent_not_demanded = pos_control->get_desired_velocity().z >= 0.0f;
if (large_angle_request || large_angle_error || accel_moving || descent_not_demanded) {
// check if landing
const bool landing = flightmode->is_landing();
if ((large_angle_request && !landing) || large_angle_error || accel_moving || descent_not_demanded) {
attitude_control->set_throttle_mix_max(pos_control->get_vel_z_control_ratio());
} else {
attitude_control->set_throttle_mix_min();

Loading…
Cancel
Save