Skip to content

Commit

Permalink
hwdef: enable IMU in HolybroG4_GPS
Browse files Browse the repository at this point in the history
IMU rate zero by default
  • Loading branch information
tridge committed Nov 30, 2024
1 parent cc06a6e commit 5b88da6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_GPS/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ define HAL_I2C_INTERNAL_MASK 3
I2C_ORDER I2C1 I2C2

# one SPI bus (for IMU, unused)
#PA5 SPI1_SCK SPI1
#PA6 SPI1_MISO SPI1
#PA7 SPI1_MOSI SPI1
PA5 SPI1_SCK SPI1
PA6 SPI1_MISO SPI1
PA7 SPI1_MOSI SPI1

# SPI CS
PC4 GYR_CS CS
Expand Down Expand Up @@ -134,10 +134,17 @@ DMA_NOSHARE USART3*
# add support for moving baseline yaw
define GPS_MOVING_BASELINE 1

SPIDEV icm42688 SPI1 DEVID1 ICM_CS MODE0 24*MHZ 24*MHZ

IMU Invensensev3 SPI:icm42688 ROTATION_YAW_180

define HAL_PERIPH_ENABLE_IMU

# GPS+MAG+LEDs
define HAL_PERIPH_ENABLE_GPS
define HAL_PERIPH_ENABLE_MAG
define HAL_PERIPH_ENABLE_BARO
define HAL_PERIPH_ENABLE_IMU
define HAL_PERIPH_ENABLE_NOTIFY
define HAL_PERIPH_ENABLE_RC_OUT

Expand Down

0 comments on commit 5b88da6

Please sign in to comment.