mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
19 lines
316 B
Io
19 lines
316 B
Io
#!/bin/sh
|
|
#
|
|
# 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
|