forked from Archive/PX4-Autopilot
uavcan: fix limit actuator poll interval.
Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
parent
d5fdc55460
commit
b6bba0428a
|
@ -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…
Reference in New Issue