Browse Source

move gumstix_aerocore2 init to rc.board

sbg
Daniel Agar 6 years ago
parent
commit
0e980c1f83
  1. 6
      ROMFS/px4fmu_common/init.d/rc.sensors
  2. 5
      ROMFS/px4fmu_common/init.d/rcS
  3. 20
      boards/gumstix/aerocore2/init/rc.board

6
ROMFS/px4fmu_common/init.d/rc.sensors

@ -31,12 +31,6 @@ then @@ -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

5
ROMFS/px4fmu_common/init.d/rcS

@ -225,11 +225,6 @@ else @@ -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

20
boards/gumstix/aerocore2/init/rc.board

@ -0,0 +1,20 @@ @@ -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…
Cancel
Save