Browse Source

QuadPlane: set attitude vs throttle priority in attitude controller

master
Randy Mackay 9 years ago
parent
commit
2523ba892b
  1. 2
      ArduPlane/quadplane.cpp

2
ArduPlane/quadplane.cpp

@ -642,7 +642,7 @@ bool QuadPlane::is_flying(void) @@ -642,7 +642,7 @@ bool QuadPlane::is_flying(void)
// crude landing detector to prevent tipover
bool QuadPlane::should_relax(void)
{
bool motor_at_lower_limit = motors->limit.throttle_lower && motors->is_throttle_mix_min();
bool motor_at_lower_limit = motors->limit.throttle_lower && attitude_control->is_throttle_mix_min();
if (motors->get_throttle() < 0.01) {
motor_at_lower_limit = true;
}

Loading…
Cancel
Save