mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AC_Fence: updates for new AP_Baro API
This commit is contained in:
parent
5c4440a9ac
commit
55ec316718
@ -39,14 +39,12 @@ const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
|
|||||||
|
|
||||||
AP_InertialSensor ins;
|
AP_InertialSensor ins;
|
||||||
|
|
||||||
// INS and Baro declaration
|
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
|
||||||
AP_Baro_MS5611 baro(&AP_Baro_MS5611::spi);
|
|
||||||
#else
|
|
||||||
AP_ADC_ADS7844 adc;
|
AP_ADC_ADS7844 adc;
|
||||||
AP_Baro_BMP085 baro;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
AP_Baro baro;
|
||||||
|
|
||||||
// GPS declaration
|
// GPS declaration
|
||||||
AP_GPS gps;
|
AP_GPS gps;
|
||||||
GPS_Glitch gps_glitch(gps);
|
GPS_Glitch gps_glitch(gps);
|
||||||
|
Loading…
Reference in New Issue
Block a user