Skip to content

Commit

Permalink
AP_HAL_ChibiOS: BARO update for BETAFPV F405
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Dec 29, 2024
1 parent f62f1cd commit e7cfa4b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,15 @@ PA10 USART1_RX USART1
PA9 USART1_TX USART1
define DEFAULT_SERIAL1_PROTOCOL SerialProtocol_GPS

define DEFAULT_SERIAL2_PROTOCOL SerialProtocol_None
define DEFAULT_SERIAL5_PROTOCOL SerialProtocol_None

# USART3 (ELRS)
PB10 USART3_TX USART3
PB11 USART3_RX USART3
define DEFAULT_SERIAL3_PROTOCOL SerialProtocol_RCIN

# UART4 (DJI)
# UART4 (MSP)
PA0 UART4_TX UART4 NODMA
PA1 UART4_RX UART4 NODMA
define DEFAULT_SERIAL4_PROTOCOL SerialProtocol_DJI_FPV
define DEFAULT_SERIAL4_PROTOCOL SerialProtocol_MSP_DisplayPort

# USART6 (SBUS, inverted)
PC7 USART6_RX USART6
Expand Down Expand Up @@ -118,11 +115,14 @@ define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin

# BARO setup
SPIDEV baro SPI3 DEVID2 BARO1_CS MODE3 1*MHZ 8*MHZ
BARO BMP280 SPI:baro
define HAL_BARO_ALLOW_INIT_NO_BARO 1
SPIDEV baro1 SPI3 DEVID2 BARO1_CS MODE3 1*MHZ 8*MHZ
SPIDEV baro2 SPI3 DEVID2 BARO1_CS MODE3 1*MHZ 8*MHZ
BARO BMP280 SPI:baro1
BARO DPS280 SPI:baro2

define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_BMP280_ENABLED 1
define AP_BARO_DPS280_ENABLED 1

# IMU setup
SPIDEV imu1 SPI1 DEVID1 GYRO1_CS MODE3 1*MHZ 8*MHZ
Expand Down

0 comments on commit e7cfa4b

Please sign in to comment.