mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 07:07:35 +08:00
uavcan: fix limit actuator poll interval.
Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
committed by
Daniel Agar
parent
d5fdc55460
commit
b6bba0428a
@@ -1058,7 +1058,7 @@ UavcanNode::subscribe()
|
||||
|
||||
if (_control_subs[i] >= 0) {
|
||||
_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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user