Files
bizhang_-obav/boards/intel/aerofc-v1/init/rc.board_sensors
Daniel Agar 7569722821 iSentek IST8310 magnetometer rewrite
- simple state machine to reset, configure, etc
 - checked register mechanism (sensor will reset itself on configuration error)
 - configured in 16 bit mode (1320 LSB/Gauss instead of 330 LSB/Gauss)
 - adjusted orientation handling in driver to match datasheet as closely as possible
     - in many external compass units the rotation was wrong and very difficult to actual determine how to set correctly
2020-09-02 13:14:45 -04:00

24 lines
368 B
Bash

#!/bin/sh
#
# intel aero specific board sensors init
#------------------------------------------------------------------------------
aerofc_adc -I start
if ! ms5611 -T 5607 start
then
ms5611 start
fi
mpu9250 -s -R 0 start
ist8310 -I -R 14 start
ll40ls start -X
# Internal SPI (auto detect ms5611 or ms5607)
if ! ms5611 -T 5607 -s start
then
ms5611 -s start
fi