move bitcraze_crazyflie init to rc.board

This commit is contained in:
Daniel Agar 2018-11-30 14:42:51 -05:00
parent 0e980c1f83
commit 4240abad73
3 changed files with 29 additions and 23 deletions

View File

@ -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

View File

@ -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. #
###############################################################################

View 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