Files
PX4-Autopilot/boards/bitcraze/crazyflie/init/rc.board_sensors
Daniel Agar 3abe2e82d1 mpu9250: create dedicated i2c version and delete legacy driver
- update crazyflie and bbblue usage
 - eventually this should be merged with the SPI version after interface
changes are made
2021-01-17 16:11:19 -05:00

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