Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_HAL_ChibiOS:modify hwdef for V3 of ReaperF745 #22436

Merged
merged 4 commits into from
Dec 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 7 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/ReaperF745v2/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ PA7 SPI1_MOSI SPI1
#PB15 SPI2_MOSI SPI2

# SPI3 for Gyro
PA15 BMI270_CS CS
PA15 GYRO_CS CS
PC10 SPI3_SCK SPI3
PC11 SPI3_MISO SPI3
PC12 SPI3_MOSI SPI3
Expand Down Expand Up @@ -118,17 +118,20 @@ STORAGE_FLASH_PAGE 1
# enable logging to dataflash
define HAL_LOGGING_DATAFLASH_ENABLED 1

# spi devices
SPIDEV bmi270 SPI3 DEVID1 BMI270_CS MODE3 1*MHZ 4*MHZ
# spi devices bmi270(v2) icm42688 (v3)
SPIDEV bmi270 SPI3 DEVID1 GYRO_CS MODE3 1*MHZ 4*MHZ
SPIDEV icm42688 SPI3 DEVID1 GYRO_CS MODE3 2*MHZ 8*MHZ
Hwurzburg marked this conversation as resolved.
Show resolved Hide resolved
SPIDEV dataflash SPI4 DEVID1 FLASH_CS MODE3 32*MHZ 32*MHZ
SPIDEV osd SPI1 DEVID1 AT7456E_CS MODE0 10*MHZ 10*MHZ

# no built-in compass and no external I2C so no compass
define ALLOW_ARM_NO_COMPASS
define HAL_I2C_INTERNAL_MASK 0

# one IMU bmi270
# one IMU: bmi270 or icm42688
IMU BMI270 SPI:bmi270 ROTATION_ROLL_180
IMU Invensensev3 SPI:icm42688 ROTATION_ROLL_180_YAW_90

define HAL_DEFAULT_INS_FAST_SAMPLE 1

# no BARO
Expand Down