Skip to content
Snippets Groups Projects
Commit 5ec8ce93 authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

AC_Sprayer: updates for new AP_Baro API

parent 55ec3167
No related branches found
No related tags found
No related merge requests found
...@@ -40,13 +40,13 @@ const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER; ...@@ -40,13 +40,13 @@ const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
// INS and Baro declaration // INS and Baro declaration
AP_InertialSensor ins; AP_InertialSensor ins;
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
AP_Baro_MS5611 baro(&AP_Baro_MS5611::spi); #if CONFIG_HAL_BOARD == HAL_BOARD_APM1
#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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment