hwdef: added baro in HolybroG4_GPS

new units have a ICP201XX baro

disable baro by default to avoid issues with airflow and GPS modules
installed on the outside of the aircraft
This commit is contained in:
Andrew Tridgell 2024-11-30 16:20:19 +11:00
parent 4d31a7320a
commit 02ea371eae

View File

@ -95,6 +95,10 @@ COMPASS IST8310 I2C:0:0x0E false ROTATION_NONE
# compass RM3100 on can-F9P-v2 # compass RM3100 on can-F9P-v2
COMPASS RM3100 I2C:0:0x20 false ROTATION_NONE COMPASS RM3100 I2C:0:0x20 false ROTATION_NONE
# baro, disabled by default
BARO ICP201XX I2C:0:0x64
define AP_PERIPH_BARO_ENABLE_DEFAULT 0
define HAL_USE_ADC FALSE define HAL_USE_ADC FALSE
define STM32_ADC_USE_ADC1 FALSE define STM32_ADC_USE_ADC1 FALSE
define HAL_DISABLE_ADC_DRIVER TRUE define HAL_DISABLE_ADC_DRIVER TRUE
@ -133,6 +137,7 @@ define GPS_MOVING_BASELINE 1
# GPS+MAG+LEDs # GPS+MAG+LEDs
define HAL_PERIPH_ENABLE_GPS define HAL_PERIPH_ENABLE_GPS
define HAL_PERIPH_ENABLE_MAG define HAL_PERIPH_ENABLE_MAG
define HAL_PERIPH_ENABLE_BARO
define HAL_PERIPH_ENABLE_NOTIFY define HAL_PERIPH_ENABLE_NOTIFY
define HAL_PERIPH_ENABLE_RC_OUT define HAL_PERIPH_ENABLE_RC_OUT