Browse Source

setup the main loop failsafe after RC library is setup

master
Andrew Tridgell 13 years ago
parent
commit
5e347854c3
  1. 7
      ArduPlane/system.pde

7
ArduPlane/system.pde

@ -123,7 +123,6 @@ static void init_ardupilot() @@ -123,7 +123,6 @@ static void init_ardupilot()
//
timer_scheduler.init( & isr_registry );
timer_scheduler.set_failsafe(failsafe_check);
//
// Check the EEPROM format version before loading any parameters from EEPROM.
@ -242,6 +241,12 @@ static void init_ardupilot() @@ -242,6 +241,12 @@ static void init_ardupilot()
digitalWrite(FENCE_TRIGGERED_PIN, LOW);
#endif
/*
setup the 'main loop is dead' check. Note that this relies on
the RC library being initialised.
*/
timer_scheduler.set_failsafe(failsafe_check);
// If the switch is in 'menu' mode, run the main menu.
//

Loading…
Cancel
Save