RangeFinder: fixed example build

This commit is contained in:
Andrew Tridgell 2012-12-19 11:03:55 +11:00
parent b06e072c87
commit 393455cdbb
1 changed files with 2 additions and 5 deletions

View File

@ -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 @@
////////////////////////////////////////////////////////////////////////////////
#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);