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

APM_Control: only save autotune gains when P finished #18883

Merged
merged 1 commit into from
Oct 10, 2021

Conversation

tridge
Copy link
Contributor

@tridge tridge commented Oct 9, 2021

this prevents saving values which are temporarily high due to tuning process. The temporary values can be very large and lead to oscillations. The bug is particularly serious as the issue doesn't show up until after the next power cycle, which could be days later. You end up with the wrong PID gains, taken from an intermediate (and potentially unstable) stage of the tune

See this bug report
https://discuss.ardupilot.org/t/plane-4-1-0-stable/76507/45

libraries/APM_Control/AP_AutoTune.cpp Outdated Show resolved Hide resolved
libraries/APM_Control/AP_AutoTune.cpp Outdated Show resolved Hide resolved
libraries/APM_Control/AP_AutoTune.cpp Show resolved Hide resolved
libraries/APM_Control/AP_AutoTune.h Show resolved Hide resolved
libraries/APM_Control/AP_AutoTune.cpp Show resolved Hide resolved
libraries/APM_Control/AP_AutoTune.cpp Show resolved Hide resolved
libraries/APM_Control/AP_AutoTune.cpp Outdated Show resolved Hide resolved
this prevents saving values which are temporarily high due to tuning
process

See this bug report
https://discuss.ardupilot.org/t/plane-4-1-0-stable/76507/45
@tridge tridge merged commit 08fcfa0 into ArduPilot:master Oct 10, 2021
@tridge tridge added this to Done in Plane 4.1 Oct 15, 2021
@Hwurzburg Hwurzburg removed the WikiNeeded needs wiki update label Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants