AP_HAL_ChibiOS: add support for CubeOrangePlus BG edition

This commit is contained in:
bugobliterator 2023-02-13 13:50:40 +11:00 committed by Andrew Tridgell
parent 502bbd496a
commit 746314785e
2 changed files with 12 additions and 0 deletions

View File

@ -17,4 +17,7 @@ USB_PRODUCT 0x1058
USB_STRING_MANUFACTURER "CubePilot"
USB_STRING_PRODUCT "CubeOrange+-BL"
# Unused chip select for ICM45686
PG1 ICM45686_CS CS SPEED_VERYLOW
APJ_BOARD_ID 1063

View File

@ -18,18 +18,27 @@ USB_PRODUCT 0x1058
USB_STRING_MANUFACTURER "CubePilot"
USB_STRING_PRODUCT "CubeOrange+"
# Unused chip select for ICM45686
PG1 ICM45686_CS CS SPEED_VERYLOW
SPIDEV icm42688_ext2 SPI4 DEVID4 GYRO_EXT_CS MODE3 2*MHZ 8*MHZ
APJ_BOARD_ID 1063
undef CHECK_ICM42688_EXT
undef CHECK_IMU0_PRESENT
undef CHECK_IMU1_PRESENT
undef IMU
SPIDEV icm42688_ext SPI4 DEVID4 ACCEL_EXT_CS MODE3 2*MHZ 8*MHZ
IMU Invensensev3 SPI:icm42688_ext ROTATION_YAW_90
IMU Invensensev3 SPI:icm42688_ext2 ROTATION_PITCH_180_YAW_90
IMU Invensensev2 SPI:icm20948_ext ROTATION_PITCH_180
IMU Invensensev2 SPI:icm20948 ROTATION_YAW_270
CHECK_ICM42688_EXT2 spi_check_register("icm42688_ext2", INV3REG_WHOAMI, INV3_WHOAMI_ICM42688)
CHECK_ICM42688_EXT spi_check_register("icm42688_ext", INV3REG_WHOAMI, INV3_WHOAMI_ICM42688)
CHECK_IMU0_PRESENT $CHECK_ICM42688_EXT
CHECK_IMU1_PRESENT $CHECK_ICM20948_EXT || $CHECK_ICM42688_EXT2