mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-27 02:04:00 -04:00
Rover: fixed the sonar
We were not initialising the analog source timer
This commit is contained in:
parent
abc0a1cd38
commit
ebaf1a1ae9
@ -20,10 +20,6 @@
|
|||||||
|
|
||||||
#define TRACE DISABLED
|
#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
|
//#define LOGGING_ENABLED DISABLED
|
||||||
|
|
||||||
//#include "APM_Config_HILmode.h" // for test in HIL mode with AeroSIM Rc 3.83
|
//#include "APM_Config_HILmode.h" // for test in HIL mode with AeroSIM Rc 3.83
|
||||||
|
@ -129,6 +129,9 @@ static void init_ardupilot()
|
|||||||
|
|
||||||
timer_scheduler.init( & isr_registry );
|
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.
|
// Check the EEPROM format version before loading any parameters from EEPROM.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user