mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Removes the calibration on startup, as these values were overwritten by the system calibration values anyway. So the only difference is that if all calibration scales were equal to 1, the driver startup would have failed.
41 lines
723 B
Bash
41 lines
723 B
Bash
#!/bin/sh
|
|
#
|
|
# PX4 FMUv5X specific board sensors init
|
|
#------------------------------------------------------------------------------
|
|
|
|
adc start
|
|
|
|
# Start Digital power monitors
|
|
ina226 -X -b 1 -t 1 -k start
|
|
ina226 -X -b 2 -t 2 -k start
|
|
|
|
# Internal SPI bus ICM-20602
|
|
mpu6000 -R 8 -s -T 20602 start
|
|
|
|
# Internal SPI bus ISM300DLC
|
|
ism330dlc start
|
|
|
|
# Internal SPI bus BMI088 accel
|
|
bmi088 -A -R 12 start
|
|
|
|
# Internal SPI bus BMI088 gyro
|
|
bmi088 -G -R 12 start
|
|
|
|
# Possible external compasses
|
|
ist8310 -X start
|
|
hmc5883 -T -X start
|
|
qmc5883 -X start
|
|
|
|
# Possible internal compass
|
|
bmm150 -I start
|
|
|
|
# Possible internal Baro
|
|
bmp388 -I start
|
|
bmp388 -I -a 0x77 start
|
|
|
|
# Baro on I2C3
|
|
ms5611 -X start
|
|
|
|
# External RM3100 (I2C or SPI)
|
|
rm3100 start
|