Files
bizhang_-obav/boards/mro/x21-777/init/rc.board_sensors
2020-03-17 23:31:17 -04:00

26 lines
549 B
Bash

#!/bin/sh
#
# mRo x21-777 specific board sensors init
#------------------------------------------------------------------------------
adc start
# External I2C bus
hmc5883 -C -T -X start
lis3mdl -X start
# Internal SPI bus ICM-20608-G is rotated 90 deg yaw
mpu6000 -s -R 2 -T 20608 start
# Internal SPI bus ICM-20602-G is rotated 90 deg yaw
mpu6000 -s -R 2 -T 20602 start
# Internal SPI bus mpu9250 is rotated 90 deg yaw
mpu9250 -R 2 start
# Possible external compasses
ist8310 -X start
hmc5883 -C -T -X start
qmc5883 -X start
lis3mdl -X start