AP_Baro: support ChibiOS

This commit is contained in:
Andrew Tridgell 2018-01-05 18:02:54 +11:00
parent f8bea3af14
commit c8c563f90d
2 changed files with 1 additions and 2 deletions

View File

@ -410,7 +410,7 @@ void AP_Baro::init(void)
} while (added);
#endif
#if HAL_BARO_DEFAULT == HAL_BARO_PX4 || HAL_BARO_DEFAULT == HAL_BARO_VRBRAIN
#if HAL_BARO_DEFAULT == HAL_BARO_PX4 || HAL_BARO_DEFAULT == HAL_BARO_VRBRAIN || defined(HAL_CHIBIOS_ARCH_FMUV3)
switch (AP_BoardConfig::get_board_type()) {
case AP_BoardConfig::PX4_BOARD_PX4V1:
#ifdef HAL_BARO_MS5611_I2C_BUS

View File

@ -14,7 +14,6 @@
*/
#include "AP_Baro_LPS25H.h"
#include <unistd.h>
#include <utility>
#include <stdio.h>
extern const AP_HAL::HAL &hal;