2 changed files with 27 additions and 40 deletions
@ -1,17 +1,16 @@
@@ -1,17 +1,16 @@
|
||||
#!nsh |
||||
# |
||||
# Init PX4IO interface |
||||
# PX4IO interface init script. |
||||
# |
||||
|
||||
# |
||||
# Allow PX4IO to recover from midair restarts. |
||||
# |
||||
px4io recovery |
||||
|
||||
# |
||||
# Adjust PX4IO update rate limit |
||||
# |
||||
set PX4IO_LIMIT 400 |
||||
|
||||
if px4io limit ${PX4IO_LIMIT} |
||||
if px4io start |
||||
then |
||||
# Allow PX4IO to recover from midair restarts. |
||||
px4io recovery |
||||
|
||||
# Adjust PX4IO update rate limit. |
||||
px4io limit 400 |
||||
else |
||||
echo "PX4IO start failed" >> $LOG_FILE |
||||
tune_control play -m ${TUNE_ERR} |
||||
fi |
||||
|
Loading…
Reference in new issue