Browse Source

uavcan: fix limit actuator poll interval.

Signed-off-by: Claudio Micheli <claudio@auterion.com>
sbg
Claudio Micheli 6 years ago committed by Daniel Agar
parent
commit
b6bba0428a
  1. 2
      src/drivers/uavcan/uavcan_main.cpp

2
src/drivers/uavcan/uavcan_main.cpp

@ -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);
} }
} }
} }

Loading…
Cancel
Save