mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
move bitcraze_crazyflie init to rc.board
This commit is contained in:
@@ -31,20 +31,6 @@ then
|
|||||||
adc start
|
adc start
|
||||||
fi
|
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
|
if ver hwcmp ATMEL_SAME70XPLAINED_V1
|
||||||
then
|
then
|
||||||
# External I2C bus
|
# External I2C bus
|
||||||
|
|||||||
@@ -225,15 +225,6 @@ else
|
|||||||
sh $BOARD_RC
|
sh $BOARD_RC
|
||||||
fi
|
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. #
|
# End Setup for board specific configurations. #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|||||||
@@ -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