|
|
@ -13,13 +13,14 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include <AP_HAL.h> |
|
|
|
#include <AP_HAL.h> |
|
|
|
#include <AP_HAL_AVR.h> |
|
|
|
#include <AP_HAL_AVR.h> |
|
|
|
|
|
|
|
#include <AP_HAL_Linux.h> |
|
|
|
|
|
|
|
|
|
|
|
#include <AP_ADC.h> |
|
|
|
#include <AP_ADC.h> |
|
|
|
|
|
|
|
|
|
|
|
uint32_t timer; |
|
|
|
uint32_t timer; |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 |
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_LINUX |
|
|
|
/* Only build this sketch for APM1 */ |
|
|
|
/* Only build this sketch for APM1 and Linux */ |
|
|
|
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER; |
|
|
|
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER; |
|
|
|
|
|
|
|
|
|
|
|
AP_ADC_ADS7844 adc; |
|
|
|
AP_ADC_ADS7844 adc; |
|
|
|