mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
hwdef: limit to onboard BARO for low flash F4 boards
This commit is contained in:
parent
a7d5f8addc
commit
eee856b427
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 ---------------------------
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user