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

21 lines
289 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
echo "[init] Set PX4IO update rate limit: $PX4IO_LIMIT Hz"
px4io limit $PX4IO_LIMIT