mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
24 lines
356 B
Bash
24 lines
356 B
Bash
#!/bin/sh
|
|
#
|
|
# board specific sensors init
|
|
#------------------------------------------------------------------------------
|
|
|
|
board_adc start
|
|
|
|
# IMU
|
|
if ! icm42688p -s -b 1 -R 4 start
|
|
then
|
|
bmi270 -s -b 1 -R 2 start
|
|
fi
|
|
|
|
if ! icm42688p -s -b 4 -R 4 start
|
|
then
|
|
bmi270 -s -b 4 -R 2 start
|
|
fi
|
|
|
|
# baro
|
|
spl06 -I start -a 0x76
|
|
|
|
# internal mag
|
|
qmc5883p -I -R 4 start
|