mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 07:21:37 +08:00
Major autostart rewrite
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user