mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 11:43:34 +08:00
* Add fix for matek_h743 target that resolves no startup of imu for h743-wing v3 and h743-wlite boards * Added imu driver according to spi bus (https://www.mateksys.com/?portfolio=h743-wing-v2#tab-id-7)
27 lines
484 B
Bash
27 lines
484 B
Bash
#!/bin/sh
|
|
#
|
|
# board specific sensors init
|
|
#------------------------------------------------------------------------------
|
|
|
|
board_adc start
|
|
|
|
# Internal SPI bus ICM-42605
|
|
if ! mpu6000 -R 12 -b 1 -s start
|
|
then
|
|
# Internal SPI bus ICM-42688P
|
|
icm42688p -R 12 -b 1 -s start
|
|
fi
|
|
|
|
# internal SPI bus ICM-20602
|
|
if ! icm20602 -R 12 -b 4 -s start
|
|
then
|
|
# Internal SPI bus ICM-42605
|
|
icm42605 -R 14 -b 4 -s start
|
|
fi
|
|
|
|
# Internal baro
|
|
dps310 -I start -a 118
|
|
|
|
# External mag
|
|
qmc5883l -X start -a 13
|