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
|
|
|
|
|
|
|
|
#
|
2014-01-14 19:02:57 -04:00
|
|
|
# Adjust PX4IO update rate limit
|
2014-01-08 15:55:12 -04:00
|
|
|
#
|
2014-01-14 19:02:57 -04:00
|
|
|
set PX4IO_LIMIT 400
|
2014-04-27 12:42:45 -03:00
|
|
|
if ver hwcmp PX4FMU_V1
|
2014-01-08 15:55:12 -04:00
|
|
|
then
|
2014-01-14 19:02:57 -04:00
|
|
|
set PX4IO_LIMIT 200
|
2013-08-25 14:27:11 -03:00
|
|
|
fi
|
2014-01-14 19:02:57 -04:00
|
|
|
|
|
|
|
echo "[init] Set PX4IO update rate limit: $PX4IO_LIMIT Hz"
|
|
|
|
px4io limit $PX4IO_LIMIT
|