mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 17:23:34 +08:00
uavcan: limit actuator controls poll interval
* rather than only in UavcanEscController updates
This commit is contained in:
@@ -1058,6 +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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user