Rover: fixed the sonar

We were not initialising the analog source timer
This commit is contained in:
Andrew Tridgell 2012-11-17 18:02:28 +11:00
parent abc0a1cd38
commit ebaf1a1ae9
2 changed files with 3 additions and 4 deletions

View File

@ -20,10 +20,6 @@
#define TRACE DISABLED
// sonar is currently broken - it causes an APM1 to crash
// after a few seconds
#define CONFIG_SONAR DISABLED
//#define LOGGING_ENABLED DISABLED
//#include "APM_Config_HILmode.h" // for test in HIL mode with AeroSIM Rc 3.83

View File

@ -129,6 +129,9 @@ static void init_ardupilot()
timer_scheduler.init( & isr_registry );
// initialise the analog port reader
AP_AnalogSource_Arduino::init_timer(&timer_scheduler);
//
// Check the EEPROM format version before loading any parameters from EEPROM.
//