Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AC_AttitudeControl: update comment in is_active_xy() (NFC) #27900

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

tatsuy
Copy link
Contributor

@tatsuy tatsuy commented Aug 22, 2024

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

@peterbarker peterbarker merged commit 62e3c6a into ArduPilot:master Aug 22, 2024
93 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants