From a3d51a62a29f803ff9666550448cae8162e91045 Mon Sep 17 00:00:00 2001 From: tompsontan <1153614092@qq.com> Date: Thu, 9 Apr 2026 14:18:56 +0800 Subject: [PATCH] boards:x-mav:ap-h743r1:Switch to SPL06 Only Due to Indistinguishable DPS310 and SPL06 IDs. (#26791) --- boards/x-mav/ap-h743r1/init/rc.board_sensors | 5 +---- boards/x-mav/ap-h743r1/nuttx-config/nsh/defconfig | 1 - boards/x-mav/ap-h743r1/src/can.c | 2 -- docs/en/flight_controller/x-mav_ap-h743r1.md | 2 +- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/boards/x-mav/ap-h743r1/init/rc.board_sensors b/boards/x-mav/ap-h743r1/init/rc.board_sensors index d34c45e4c4..2e3f096af0 100644 --- a/boards/x-mav/ap-h743r1/init/rc.board_sensors +++ b/boards/x-mav/ap-h743r1/init/rc.board_sensors @@ -17,10 +17,7 @@ then fi # baro -if ! dps310 -I start -a 0x76 -then - spl06 -I start -a 0x76 -fi +spl06 -I start -a 0x76 # internal mag qmc5883p -I -R 4 start diff --git a/boards/x-mav/ap-h743r1/nuttx-config/nsh/defconfig b/boards/x-mav/ap-h743r1/nuttx-config/nsh/defconfig index dc9d2800d1..9271b6c98e 100644 --- a/boards/x-mav/ap-h743r1/nuttx-config/nsh/defconfig +++ b/boards/x-mav/ap-h743r1/nuttx-config/nsh/defconfig @@ -243,7 +243,6 @@ CONFIG_UART7_RXBUFSIZE=600 CONFIG_UART7_TXBUFSIZE=3000 CONFIG_UART8_BAUD=57600 CONFIG_UART8_RXBUFSIZE=600 -CONFIG_UART8_SERIAL_CONSOLE=y CONFIG_UART8_TXBUFSIZE=3000 CONFIG_USART1_BAUD=57600 CONFIG_USART1_RXBUFSIZE=600 diff --git a/boards/x-mav/ap-h743r1/src/can.c b/boards/x-mav/ap-h743r1/src/can.c index 71a89955e2..709d125ad3 100644 --- a/boards/x-mav/ap-h743r1/src/can.c +++ b/boards/x-mav/ap-h743r1/src/can.c @@ -49,8 +49,6 @@ uint16_t board_get_can_interfaces(void) { uint16_t enabled_interfaces = 0x3; - enabled_interfaces &= ~(1 << 1); - return enabled_interfaces; } diff --git a/docs/en/flight_controller/x-mav_ap-h743r1.md b/docs/en/flight_controller/x-mav_ap-h743r1.md index 183f9c2a45..3277f9b366 100644 --- a/docs/en/flight_controller/x-mav_ap-h743r1.md +++ b/docs/en/flight_controller/x-mav_ap-h743r1.md @@ -26,7 +26,7 @@ These flight controllers are [manufacturer supported](../flight_controller/autop - On-board sensors - Accel/Gyro: ICM-42688-P\*2(Version1), BMI270\*2(Version2) - Mag: QMC5883P - - Barometer: DPS310(Version1),SPL06(Version2) + - Barometer: SPL06 ### Interfaces