mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
move bitcraze_crazyflie init to rc.board
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#!nsh
|
||||
#
|
||||
# Bitcraze Crazyflie specific board init
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
if param compare SYS_AUTOSTART 0
|
||||
then
|
||||
param set SYS_AUTOSTART 4900
|
||||
set AUTOCNF yes
|
||||
fi
|
||||
|
||||
if [ $AUTOCNF = yes ]
|
||||
then
|
||||
|
||||
fi
|
||||
|
||||
set MIXER_AUX none
|
||||
|
||||
# Onboard I2C
|
||||
mpu9250 -R 12 start
|
||||
|
||||
# I2C bypass of mpu
|
||||
lps25h start
|
||||
|
||||
# Optical flow deck
|
||||
vl53lxx start
|
||||
pmw3901 start
|
||||
Reference in New Issue
Block a user