AC_AttitudeControl: update comment in is_active_xy() (NFC) #27900
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.
This PR updates the comment in the is_active_xy() and is_active_z() function to accurately reflect the current logic.
Previously, the comment mentioned that the position controller would return true if it had run in the previous 5 loop times, which was based on an older implementation with a timeout of 5000000 microseconds.
3c69d28#diff-9fe7f1dfc4ef9b28922f55104d879c4b78656bc70293cde53f3c114dad535eeeR593
However, the current implementation uses a tick-based system and returns true if the position controller has been run in the previous loop (i.e., within 1 tick).
#22766