hwdef: limit to onboard BARO for low flash F4 boards

This commit is contained in:
Henry Wurzburg 2022-10-19 07:25:59 -05:00 committed by Andrew Tridgell
parent a7d5f8addc
commit eee856b427
10 changed files with 23 additions and 6 deletions

View File

@ -128,6 +128,8 @@ define HAL_DEFAULT_INS_FAST_SAMPLE 1
# one BARO
BARO BMP280 I2C:0:0x76
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_BMP280_ENABLED 1
# setup for OSD
define OSD_ENABLED 1

View File

@ -139,6 +139,8 @@ IMU Invensense SPI:mpu6000 ROTATION_YAW_180
# one baro
BARO BMP280 I2C:0:0x76
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_BMP280_ENABLED 1
# enable logging to dataflash
define HAL_LOGGING_DATAFLASH_ENABLED 1

View File

@ -145,6 +145,8 @@ IMU Invensense SPI:mpu6000 ROTATION_YAW_180
# one BARO
BARO BMP280 I2C:0:0x76
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_BMP280_ENABLED 1
# setup for OSD
define OSD_ENABLED 1

View File

@ -118,10 +118,10 @@ SPIDEV dataflash SPI3 DEVID1 FLASH_CS MODE3 32*MHZ 32*MHZ
# One IMU rotated in yaw
IMU Invensense SPI:mpu6000 ROTATION_YAW_90
# Probe for I2C BMP280, but allow init on board variants without onboard baro too
# Probe for I2C BMP280 only
BARO BMP280 I2C:0:0x76
define HAL_PROBE_EXTERNAL_I2C_BAROS
define HAL_BARO_ALLOW_INIT_NO_BARO
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_BMP280_ENABLED 1
# no built-in compass, but probe the i2c bus for all possible
# external compass types

View File

@ -114,10 +114,10 @@ SPIDEV osd SPI2 DEVID4 OSD_CS MODE0 10*MHZ 10*MHZ
# One IMU rotated in yaw
IMU Invensense SPI:mpu6000 ROTATION_YAW_90
# Probe for I2C BMP280, but allow init on board variants without onboard baro too
# Probe for I2C BMP280 only
BARO BMP280 I2C:0:0x76
define HAL_PROBE_EXTERNAL_I2C_BAROS
define HAL_BARO_ALLOW_INIT_NO_BARO
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_BMP280_ENABLED 1
# no built-in compass, but probe the i2c bus for all possible
# external compass types

View File

@ -152,6 +152,8 @@ define HAL_COMPASS_AUTO_ROT_DEFAULT 2
# built-in barometer
BARO SPL06 I2C:0:0x76
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_SPL06_ENABLED 1
# --------------------- ADC ---------------------------

View File

@ -150,6 +150,9 @@ IMU Invensense SPI:mpu6000 ROTATION_YAW_180
# one baro, multiple possible choices for different board variants
BARO BMP280 I2C:0:0x76
BARO DPS310 I2C:0:0x76
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_BMP280_ENABLED 1
define AP_BARO_DPS280_ENABLED 1
define HAL_OS_FATFS_IO 1
define HAL_BOARD_LOG_DIRECTORY "/APM/LOGS"

View File

@ -134,6 +134,8 @@ IMU Invensense SPI:mpu6000 ROTATION_YAW_180
BARO BMP280 I2C:0:0x76
define HAL_PROBE_EXTERNAL_I2C_BAROS
define HAL_BARO_ALLOW_INIT_NO_BARO
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_BMP280_ENABLED 1
# no built-in compass, but probe the i2c bus for all possible
# external compass types

View File

@ -117,6 +117,8 @@ IMU Invensense SPI:mpu6000 ROTATION_YAW_180
# one baro
BARO BMP280 SPI:bmp280
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_BMP280_ENABLED 1
# no built-in compass, but probe the i2c bus for all possible
# external compass types

View File

@ -119,6 +119,8 @@ IMU Invensense SPI:mpu6000 ROTATION_YAW_90
# one baro
BARO BMP280 SPI:bmp280
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_BMP280_ENABLED 1
# no built-in compass, but probe the i2c bus for all possible
# external compass types