Major autostart rewrite

This commit is contained in:
Anton Babushkin
2014-01-08 20:55:12 +01:00
parent 255d91d8d4
commit 4cffd99db9
9 changed files with 454 additions and 486 deletions
+14 -18
View File
@@ -1,23 +1,19 @@
#
# Start PX4IO interface (depends on orb, commander)
# Init PX4IO interface
#
if px4io start
then
#
# Allow PX4IO to recover from midair restarts.
# this is very unlikely, but quite safe and robust.
px4io recovery
#
# Disable px4io topic limiting
#
if hw_ver compare PX4FMU_V1
then
px4io limit 200
else
px4io limit 400
fi
#
# Allow PX4IO to recover from midair restarts.
# this is very unlikely, but quite safe and robust.
#
px4io recovery
#
# Adjust px4io topic limiting
#
if hw_ver compare PX4FMU_V1
then
px4io limit 200
else
# SOS
tone_alarm error
px4io limit 400
fi