mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AC_WPNav: updates for new AP_Baro API
This commit is contained in:
parent
5ec8ce933e
commit
25f69f05eb
@ -44,13 +44,13 @@ 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);
|
||||
#else
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
|
||||
AP_ADC_ADS7844 adc;
|
||||
AP_Baro_BMP085 baro;
|
||||
#endif
|
||||
|
||||
AP_Baro baro;
|
||||
|
||||
// GPS declaration
|
||||
AP_GPS gps;
|
||||
GPS_Glitch gps_glitch(gps);
|
||||
|
Loading…
Reference in New Issue
Block a user