Skip to content
Snippets Groups Projects
Commit dd69427c authored by David Sidrane's avatar David Sidrane Committed by Daniel Agar
Browse files

rc.io:Add USE_IO == yes && IO_PRESENT == yes test

  On a FMU without a px4io (FMUv4, NXPhlite etc), this code should
  not be run.
parent 346224a0
No related branches found
No related tags found
No related merge requests found
......@@ -2,15 +2,17 @@
#
# PX4IO interface init script.
#
if px4io start
if [ $USE_IO == yes -a $IO_PRESENT == yes ]
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}
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
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment