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

Autotune: reset param on start #22577

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Autotune: reset param on start #22577

merged 1 commit into from
Dec 21, 2023

Conversation

bresch
Copy link
Member

@bresch bresch commented Dec 21, 2023

Solved Problem

Autotune cannot start if xx_AT_START is initially set to 1 (because there is no param change).

Solution

Reset parameter when module is started.

Alternatives

This is just a quick patch to fix the symptom, but the correct solution would be to handle the mavlink message directly in the autotune module instead of communicating via a parameter.

Test coverage

SITL tests

This prevents a race condition where autotune cannot start because the param was already set to 1
@bresch bresch requested a review from dagar December 21, 2023 10:42
@bresch bresch self-assigned this Dec 21, 2023
@bresch bresch merged commit c1b139d into main Dec 21, 2023
90 checks passed
@bresch bresch deleted the pr-atune-param-reset branch December 21, 2023 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants