uavcan: fix limit actuator poll interval.

Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
Claudio Micheli 2019-09-03 14:51:00 +02:00 committed by Daniel Agar
parent d5fdc55460
commit b6bba0428a
1 changed files with 1 additions and 1 deletions

View File

@ -1058,7 +1058,7 @@ UavcanNode::subscribe()
if (_control_subs[i] >= 0) { if (_control_subs[i] >= 0) {
_poll_ids[i] = add_poll_fd(_control_subs[i]); _poll_ids[i] = add_poll_fd(_control_subs[i]);
orb_set_interval(_control_subs[i], 1000000 / UavcanEscController::MAX_RATE_HZ); orb_set_interval(_control_subs[i], 1000 / UavcanEscController::MAX_RATE_HZ);
} }
} }
} }