mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
move bitcraze_crazyflie init to rc.board
This commit is contained in:
parent
0e980c1f83
commit
4240abad73
@ -31,20 +31,6 @@ then
|
||||
adc start
|
||||
fi
|
||||
|
||||
if ver hwcmp BITCRAZE_CRAZYFLIE
|
||||
then
|
||||
# Onboard I2C
|
||||
mpu9250 -R 12 start
|
||||
|
||||
# I2C bypass of mpu
|
||||
lps25h start
|
||||
|
||||
# Optical flow deck
|
||||
vl53lxx start
|
||||
pmw3901 start
|
||||
|
||||
fi
|
||||
|
||||
if ver hwcmp ATMEL_SAME70XPLAINED_V1
|
||||
then
|
||||
# External I2C bus
|
||||
|
||||
@ -225,15 +225,6 @@ else
|
||||
sh $BOARD_RC
|
||||
fi
|
||||
|
||||
if ver hwcmp BITCRAZE_CRAZYFLIE
|
||||
then
|
||||
if param compare SYS_AUTOSTART 0
|
||||
then
|
||||
param set SYS_AUTOSTART 4900
|
||||
set AUTOCNF yes
|
||||
fi
|
||||
fi
|
||||
|
||||
###############################################################################
|
||||
# End Setup for board specific configurations. #
|
||||
###############################################################################
|
||||
|
||||
29
boards/bitcraze/crazyflie/init/rc.board
Normal file
29
boards/bitcraze/crazyflie/init/rc.board
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user