Skip to content

GCS_Common: better handle negative intervals #29243

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

Merged

Conversation

robertlong13
Copy link
Contributor

Treat all negative interval values like -1. This is preferable to the current behavior, where we treat those like 1000Hz requests.

@robertlong13
Copy link
Contributor Author

GCSs shouldn't send request for negative rates, but this came about because this Mission Planner bug I introduced: ArduPilot/MissionPlanner#3487

@timtuxworth
Copy link
Contributor

timtuxworth commented Feb 6, 2025

I'm not so sure the default should be "stop sending" messages. Perhaps invalid values should be ignored?

@robertlong13 robertlong13 force-pushed the pr/negative-interval-bugfix branch 2 times, most recently from ccc7f3e to 80863dc Compare May 29, 2025 23:03
@robertlong13 robertlong13 force-pushed the pr/negative-interval-bugfix branch from 80863dc to 100461d Compare May 29, 2025 23:04
Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@peterbarker peterbarker merged commit d823765 into ArduPilot:master May 30, 2025
102 checks passed
@robertlong13 robertlong13 deleted the pr/negative-interval-bugfix branch May 30, 2025 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Pending
Development

Successfully merging this pull request may close these issues.

3 participants