Files
PX4-Autopilot/boards/matek/h743/init/rc.board_sensors
matthewoots b09329f287 boards/matek/h743: add fix to resolve no startup of imu for matek_h743 target (#20184)
* 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)
2022-09-09 13:02:38 -04:00

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