Skip to content

Commit

Permalink
hwdef: added baro in HolybroG4_GPS
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tridge committed Nov 30, 2024
1 parent 5648795 commit 635eab0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ COMPASS IST8310 I2C:0:0x0E false ROTATION_NONE
# compass RM3100 on can-F9P-v2
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 STM32_ADC_USE_ADC1 FALSE
define HAL_DISABLE_ADC_DRIVER TRUE
Expand Down Expand Up @@ -133,6 +137,7 @@ define GPS_MOVING_BASELINE 1
# GPS+MAG+LEDs
define HAL_PERIPH_ENABLE_GPS
define HAL_PERIPH_ENABLE_MAG
define HAL_PERIPH_ENABLE_BARO
define HAL_PERIPH_ENABLE_NOTIFY
define HAL_PERIPH_ENABLE_RC_OUT

Expand Down

0 comments on commit 635eab0

Please sign in to comment.