mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 10:43:34 +08:00
23 lines
393 B
Bash
23 lines
393 B
Bash
#!/bin/sh
|
|
#
|
|
# board specific sensors init
|
|
#------------------------------------------------------------------------------
|
|
|
|
board_adc start
|
|
|
|
# Internal SPI bus ICM-42605
|
|
if ! icm42605 -R 14 -s start
|
|
then
|
|
# internal SPI bus ICM-20602
|
|
icm20602 -R 12 -s start
|
|
fi
|
|
|
|
# Internal SPI bus MPU-6000
|
|
mpu6000 -R 12 -s start
|
|
|
|
# Internal baro
|
|
dps310 -I start -a 118
|
|
|
|
# External mag
|
|
qmc5883l -X start -a 13
|