AP_HAL_ChibiOS: mRo KitCAN revC board fix

Add RM3100 reversal mask to deal with M10025C board changes.
This commit is contained in:
Leonardo Garcia 2024-01-26 14:58:09 -08:00 committed by Peter Barker
parent 33f6a1d87e
commit 5749bd5074
5 changed files with 1215 additions and 0 deletions

BIN
Tools/bootloaders/mRoKitCANrevC_bl.bin generated Executable file

Binary file not shown.

1173
Tools/bootloaders/mRoKitCANrevC_bl.hex generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,4 @@
# Default HAL_COMPASS_MAX_SENSORS
ARSPD_PRIMARY 0
ARSPD_TYPE 1

View File

@ -0,0 +1,8 @@
include ../f303-periph/hwdef-bl.inc
# start as DNA
undef APJ_BOARD_ID
APJ_BOARD_ID 1145
define CAN_APP_NODE_NAME "org.ardupilot.mRoKitCANrevC"

View File

@ -0,0 +1,30 @@
include ../f303-periph/hwdef.inc
# start as DNA
define CAN_APP_NODE_NAME "org.ardupilot.mRoKitCANrevC"
undef APJ_BOARD_ID
APJ_BOARD_ID 1145
define AP_RM3100_REVERSAL_MASK 2
# added rm3100 mag on SPI
SPIDEV rm3100 SPI1 DEVID1 MAG_CS MODE0 1*MHZ 1*MHZ
COMPASS RM3100 SPI:rm3100 false ROTATION_NONE
# an I2C baro (DPS310)
BARO DPS310 I2C:0:0x77
# GPS+MAG+LED+Baro
define HAL_PERIPH_ENABLE_GPS
define HAL_PERIPH_ENABLE_MAG
define HAL_PERIPH_ENABLE_NCP5623_BGR_LED_WITHOUT_NOTIFY
define HAL_PERIPH_ENABLE_BARO
# I2C Airspeed sensor must use a different address than 0x77
define HAL_PERIPH_ENABLE_AIRSPEED
# Safety button
PC13 SAFE_BUTTON INPUT PULLUP
# Button is active LOW
define HAL_SAFE_BUTTON_ON 0