Files
PX4-Autopilot/boards/px4/fmu-v4pro/init/rc.board_sensors
T
Daniel Agar 588195f46c boards: px4/fmu-v4pro cleanup rc.board_sensors
- board has either an icm20602 or icm20608g, not both
 - probe all typical externally compasses
2020-04-13 15:52:45 -04:00

31 lines
511 B
Bash

#!/bin/sh
#
# PX4 FMUv4pro specific board sensors init
#------------------------------------------------------------------------------
rgbled start -I
adc start
# Internal SPI bus ICM-20602 or ICM-20608-G
if ! icm20602 -s -R 8 start
then
icm20608g -s -R 8 start
fi
# Internal SPI bus mpu9250
mpu9250 -s -R 8 start
# Internal SPI bus
lis3mdl -s -R 0 start
# Internal SPI
ms5611 -s start
# Possible external compasses
hmc5883 -T -X start
lis3mdl -X start
ist8310 -X start
qmc5883 -X start
rm3100 -X start