Browse Source

AP_Baro: support ChibiOS

mission-4.1.18
Andrew Tridgell 7 years ago
parent
commit
c8c563f90d
  1. 2
      libraries/AP_Baro/AP_Baro.cpp
  2. 1
      libraries/AP_Baro/AP_Baro_LPS25H.cpp

2
libraries/AP_Baro/AP_Baro.cpp

@ -410,7 +410,7 @@ void AP_Baro::init(void) @@ -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

1
libraries/AP_Baro/AP_Baro_LPS25H.cpp

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

Loading…
Cancel
Save