Browse Source

RangeFinder: fixed example build

mission-4.1.18
Andrew Tridgell 12 years ago
parent
commit
393455cdbb
  1. 7
      libraries/AP_RangeFinder/examples/MaxsonarXL_test/MaxsonarXL_test.pde

7
libraries/AP_RangeFinder/examples/MaxsonarXL_test/MaxsonarXL_test.pde

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

Loading…
Cancel
Save