mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 10:53:34 +08:00
- update crazyflie and bbblue usage - eventually this should be merged with the SPI version after interface changes are made
17 lines
376 B
Bash
17 lines
376 B
Bash
#!/bin/sh
|
|
#
|
|
# Bitcraze Crazyflie specific board sensors init
|
|
#------------------------------------------------------------------------------
|
|
|
|
board_adc start
|
|
|
|
# Onboard I2C
|
|
if mpu9250_i2c -I -b 3 -a 0x69 -R 6 start; then
|
|
sleep 1 # wait for mpu9250 to be configured with bypass enabled
|
|
ak8963 -I -b 3 -R 4 start
|
|
lps25h -I -b 3 start
|
|
fi
|
|
|
|
# Optical flow deck
|
|
vl53l0x start -X
|