drivers/pwm_out: limit scheduling to primary actuator controls groups if used #15381
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When a passthrough or gimbal mixer is loaded in addition to the primary mixer the output module will be schedule to run on both controller updates (new actuator_controls_0 publications) as well as new RC data (actuator_controls_3). This can be problematic for things like OneShot ESCs that don't seem to like very tight back to back updates.
This limits scheduling of the output module (pwm_out) to primarily run on updates to the primary actuator control groups (0 & 1) if in use. Additionally there's a backup should groups 0 & 1 stop publishing for some reason.