Browse Source

Rover: don't do failsafe if throttle is below failsafe level

master
Andrew Tridgell 12 years ago
parent
commit
ef4198bcb4
  1. 3
      APMrover2/failsafe.pde

3
APMrover2/failsafe.pde

@ -35,7 +35,8 @@ void failsafe_check(uint32_t tnow) @@ -35,7 +35,8 @@ void failsafe_check(uint32_t tnow)
in_failsafe = true;
}
if (in_failsafe && tnow - last_timestamp > 20000) {
if (in_failsafe && tnow - last_timestamp > 20000 &&
hal.rcin->read(CH_3) >= (uint16_t)g.fs_throttle_value) {
// pass RC inputs to outputs every 20ms
last_timestamp = tnow;
hal.rcin->clear_overrides();

Loading…
Cancel
Save