mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
- 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
24 lines
368 B
Bash
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
|