Browse Source

Plane: prevent stick mixing when throttle is below failsafe threshold

this fixes issue #40
master
Andrew Tridgell 12 years ago
parent
commit
683a2919d1
  1. 4
      ArduPlane/Attitude.pde

4
ArduPlane/Attitude.pde

@ -42,7 +42,9 @@ static bool stick_mixing_enabled(void) @@ -42,7 +42,9 @@ static bool stick_mixing_enabled(void)
// we're in an auto mode. Check the stick mixing flag
if (g.stick_mixing != STICK_MIXING_DISABLED &&
geofence_stickmixing() &&
failsafe == FAILSAFE_NONE) {
failsafe == FAILSAFE_NONE &&
(g.throttle_fs_enabled == 0 ||
g.channel_throttle.radio_in >= g.throttle_fs_value)) {
// we're in an auto mode, and haven't triggered failsafe
return true;
} else {

Loading…
Cancel
Save