px4-firmware/ROMFS/px4fmu_common/init.d/rc.io

24 lines
307 B
Io
Raw Normal View History

2013-08-25 14:27:11 -03:00
#
2014-01-08 15:55:12 -04:00
# Init PX4IO interface
2013-08-25 14:27:11 -03:00
#
2014-01-08 15:55:12 -04:00
#
# Allow PX4IO to recover from midair restarts.
#
px4io recovery
#
# Adjust PX4IO update rate limit
2014-01-08 15:55:12 -04:00
#
set PX4IO_LIMIT 400
if ver hwcmp PX4FMU_V1
2014-01-08 15:55:12 -04:00
then
set PX4IO_LIMIT 200
2013-08-25 14:27:11 -03:00
fi
2015-04-25 04:01:22 -03:00
if px4io limit $PX4IO_LIMIT
then
else
echo "[i] Set PX4IO update rate to $PX4IO_LIMIT Hz failed!"
fi