mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_AHRS: fixed example build
This commit is contained in:
parent
e45522f51d
commit
89cdae62b4
@ -29,32 +29,34 @@
|
||||
#include <AP_Notify.h>
|
||||
#include <AP_Vehicle.h>
|
||||
#include <DataFlash.h>
|
||||
#include <AP_NavEKF.h>
|
||||
#include <AP_Rally.h>
|
||||
#include <AP_Scheduler.h>
|
||||
|
||||
#include <AP_HAL_AVR.h>
|
||||
#include <AP_HAL_AVR_SITL.h>
|
||||
#include <AP_HAL_Empty.h>
|
||||
#include <AP_HAL_PX4.h>
|
||||
|
||||
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
|
||||
|
||||
// INS and Baro declaration
|
||||
AP_InertialSensor ins;
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
||||
AP_Baro_MS5611 baro(&AP_Baro_MS5611::spi);
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM1
|
||||
AP_ADC_ADS7844 adc;
|
||||
AP_Baro_BMP085 baro;
|
||||
#else
|
||||
AP_InertialSensor ins;
|
||||
#endif
|
||||
|
||||
AP_Compass_HMC5843 compass;
|
||||
|
||||
AP_GPS gps;
|
||||
AP_Baro_HIL baro;
|
||||
|
||||
// choose which AHRS system to use
|
||||
AP_AHRS_DCM ahrs(ins, baro, gps);
|
||||
|
||||
AP_Baro_HIL barometer;
|
||||
|
||||
|
||||
#define HIGH 1
|
||||
|
Loading…
Reference in New Issue
Block a user