forked from Archive/PX4-Autopilot
control_allocator: add status publication rate limitation comment
This commit is contained in:
parent
70e46a194f
commit
ed3a115c8f
|
@ -337,6 +337,8 @@ ControlAllocator::Run()
|
|||
// Publish actuator setpoint and allocator status
|
||||
publish_actuator_controls();
|
||||
|
||||
// Publish status at limited rate, as it's somewhat expensive and we use it for slower dynamics
|
||||
// (i.e. anti-integrator windup)
|
||||
if (now - _last_status_pub >= 5_ms) {
|
||||
publish_control_allocator_status();
|
||||
_last_status_pub = now;
|
||||
|
|
Loading…
Reference in New Issue