Files
bizhang_-obav/ROMFS/px4fmu_common/init.d/rc.io
Beat Küng 37338e442f NuttX shell scripts: replace operator == with =
- NuttX supports both versions
- POSIX shell only supports '='
2018-09-27 23:39:20 +02:00

19 lines
312 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 -t 20
fi
fi