Files
PX4-Autopilot/ROMFS/px4fmu_common/init.d/rc.io
T
David Sidrane dd69427cbf 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.
2018-08-14 09:38:15 -04:00

19 lines
323 B
Io

#!nsh
#
# PX4IO interface init script.
#
if [ $USE_IO == yes -a $IO_PRESENT == yes ]
then
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