forked from Archive/PX4-Autopilot
move gumstix_aerocore2 init to rc.board
This commit is contained in:
parent
a3fed608a6
commit
0e980c1f83
|
@ -31,12 +31,6 @@ then
|
|||
adc start
|
||||
fi
|
||||
|
||||
if ver hwcmp GUMSTIX_AEROCORE2
|
||||
then
|
||||
l3gd20 -R 12 start
|
||||
lsm303d start
|
||||
fi
|
||||
|
||||
if ver hwcmp BITCRAZE_CRAZYFLIE
|
||||
then
|
||||
# Onboard I2C
|
||||
|
|
|
@ -225,11 +225,6 @@ else
|
|||
sh $BOARD_RC
|
||||
fi
|
||||
|
||||
if ver hwcmp GUMSTIX_AEROCORE2
|
||||
then
|
||||
set DATAMAN_OPT "-f /fs/mtd_dataman"
|
||||
fi
|
||||
|
||||
if ver hwcmp BITCRAZE_CRAZYFLIE
|
||||
then
|
||||
if param compare SYS_AUTOSTART 0
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
#!nsh
|
||||
#
|
||||
# Gumstix Aerocore2 specific board init
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
if [ $AUTOCNF = yes ]
|
||||
then
|
||||
# Disable safety switch by default
|
||||
param set CBRK_IO_SAFETY 22027
|
||||
|
||||
param set SYS_FMU_TASK 1
|
||||
fi
|
||||
|
||||
set DATAMAN_OPT "-f /fs/mtd_dataman"
|
||||
set MIXER_AUX none
|
||||
|
||||
l3gd20 -R 12 start
|
||||
lsm303d start
|
Loading…
Reference in New Issue