Optimize rc shell

This commit is contained in:
Felix Hu 2016-03-30 10:27:39 +08:00 committed by Lorenz Meier
parent 4aa13d8f1f
commit c528c02e95
2 changed files with 61 additions and 64 deletions

View File

@ -83,7 +83,8 @@ then
then
fi
fi
else
fi
if ver hwcmp PX4FMU_V4
then
# External I2C bus
@ -105,26 +106,10 @@ else
if mpu9250 -R 2 start
then
fi
else
if ver hwcmp MINDPX_V2
then
if mpu6500 start
then
fi
if lsm303d start
if ver hwcmp PX4FMU_V1
then
fi
if l3gd20 start
then
fi
# External I2C bus
if hmc5883 -C -T -X start
then
fi
else
# FMUv1
if mpu6000 start
then
@ -155,6 +140,24 @@ else
fi
fi
fi
if ver hwcmp MINDPX_V2
then
if mpu6500 start
then
fi
if lsm303d start
then
fi
if l3gd20 start
then
fi
# External I2C bus
if hmc5883 -C -T -X start
then
fi
fi

View File

@ -815,12 +815,6 @@ fi
# XXX potentially unset all script variables.
unset TUNE_ERR
#if ver hwcmp MINDPX_V2
#then
# start sonnar
# hc_sr04 start
#fi
# Boot is complete, inform MAVLink app(s) that the system is now fully up and running
mavlink boot_complete