From 2d5d6171d70ef25aee533040ffb0de8187f874d0 Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Mon, 16 Aug 2021 21:23:54 -0300 Subject: [PATCH] AP_HAL: Navigator: set HAL_BARO_EXTERNAL_BUS_DEFAULT to 6 This is the bus exposed in the board for external sensors. This is required as HAL_Linux doesn't probe all i2c buses. --- libraries/AP_HAL/board/linux.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_HAL/board/linux.h b/libraries/AP_HAL/board/linux.h index 9f4911fb26..acde22173a 100644 --- a/libraries/AP_HAL/board/linux.h +++ b/libraries/AP_HAL/board/linux.h @@ -190,6 +190,7 @@ #define HAL_INS_PROBE_LIST PROBE_IMU_SPI(Invensense, "icm20602", ROTATION_ROLL_180_YAW_270) #define HAL_MAG_PROBE_LIST PROBE_MAG_I2C(MMC5XX3, 1, 0x30, false, ROTATION_YAW_90) #define HAL_BARO_PROBE_LIST PROBE_BARO_I2C(BMP280, 4, 0x76) + #define HAL_BARO_EXTERNAL_BUS_DEFAULT 6 #elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BLUE #define HAL_GPIO_A_LED_PIN 66 #define HAL_GPIO_B_LED_PIN 67