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
|
|
|
|
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
|