|
|
|
@ -11,6 +11,7 @@
@@ -11,6 +11,7 @@
|
|
|
|
|
#include <AP_Math.h> |
|
|
|
|
#include <AP_RangeFinder.h> |
|
|
|
|
#include <AP_ADC.h> |
|
|
|
|
#include <AP_ADC_AnalogSource.h> |
|
|
|
|
#include <Filter.h> |
|
|
|
|
#include <AP_Buffer.h> |
|
|
|
|
#include <AP_HAL_AVR.h> |
|
|
|
@ -35,11 +36,7 @@
@@ -35,11 +36,7 @@
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////// |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2 |
|
|
|
|
const AP_HAL::HAL& hal = AP_HAL_AVR_APM2; |
|
|
|
|
#else |
|
|
|
|
const AP_HAL::HAL& hal = AP_HAL_AVR_APM1; |
|
|
|
|
#endif |
|
|
|
|
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER; |
|
|
|
|
|
|
|
|
|
// declare global instances |
|
|
|
|
ModeFilterInt16_Size5 mode_filter(2); |
|
|
|
|