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_Autotune: Fix bug introduced in #27370 #27762

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

lthall
Copy link
Contributor

@lthall lthall commented Aug 6, 2024

During the clean up to try to make things easer to understand due to poorly named variables, one of those variables was deleted and another similarly named variable used in it's place.

This fixes this problem.

@lthall lthall requested a review from rmackay9 August 6, 2024 03:45
@rmackay9
Copy link
Contributor

rmackay9 commented Aug 6, 2024

I've marked this as MergeOnCIPass because this bug results in the vehicle's max accelerations being set to 4000 which is dangerously low.

@lthall is confident this change is correct and it looks OK to me as well

@peterbarker peterbarker merged commit a4a9113 into ArduPilot:master Aug 6, 2024
93 checks passed
tpwrules added a commit to tpwrules/ardupilot that referenced this pull request Dec 4, 2024
Issue introduced in ArduPilot#27370
and partially fixed in ArduPilot#27762,
though evidently not properly tested.

Failing to track the maximum can result in a dangerously low value
being calculated and the vehicle being unflyable.

Make the variable a reference so that the maximum value is preserved
between function calls.
tpwrules added a commit to tpwrules/ardupilot that referenced this pull request Dec 4, 2024
Issue introduced in ArduPilot#27370
and partially fixed in ArduPilot#27762,
though evidently not properly tested.

Failing to track the maximum can result in dangerously low values being
calculated for `ATC_ACCEL_[RPY]_MAX` and the vehicle becoming unflyable.

Make the variable a reference so that the maximum value is preserved
between function calls.
rmackay9 pushed a commit that referenced this pull request Dec 5, 2024
Issue introduced in #27370
and partially fixed in #27762,
though evidently not properly tested.

Failing to track the maximum can result in dangerously low values being
calculated for `ATC_ACCEL_[RPY]_MAX` and the vehicle becoming unflyable.

Make the variable a reference so that the maximum value is preserved
between function calls.
andyp1per pushed a commit to andyp1per/ardupilot that referenced this pull request Dec 7, 2024
Issue introduced in ArduPilot#27370
and partially fixed in ArduPilot#27762,
though evidently not properly tested.

Failing to track the maximum can result in dangerously low values being
calculated for `ATC_ACCEL_[RPY]_MAX` and the vehicle becoming unflyable.

Make the variable a reference so that the maximum value is preserved
between function calls.
andyp1per pushed a commit to andyp1per/ardupilot that referenced this pull request Dec 7, 2024
Issue introduced in ArduPilot#27370
and partially fixed in ArduPilot#27762,
though evidently not properly tested.

Failing to track the maximum can result in dangerously low values being
calculated for `ATC_ACCEL_[RPY]_MAX` and the vehicle becoming unflyable.

Make the variable a reference so that the maximum value is preserved
between function calls.
tridge pushed a commit to tridge/ardupilot that referenced this pull request Dec 11, 2024
Issue introduced in ArduPilot#27370
and partially fixed in ArduPilot#27762,
though evidently not properly tested.

Failing to track the maximum can result in dangerously low values being
calculated for `ATC_ACCEL_[RPY]_MAX` and the vehicle becoming unflyable.

Make the variable a reference so that the maximum value is preserved
between function calls.
tridge pushed a commit that referenced this pull request Dec 12, 2024
Issue introduced in #27370
and partially fixed in #27762,
though evidently not properly tested.

Failing to track the maximum can result in dangerously low values being
calculated for `ATC_ACCEL_[RPY]_MAX` and the vehicle becoming unflyable.

Make the variable a reference so that the maximum value is preserved
between function calls.
Yury-MonZon pushed a commit to Yury-MonZon/ardupilot that referenced this pull request Dec 12, 2024
Issue introduced in ArduPilot#27370
and partially fixed in ArduPilot#27762,
though evidently not properly tested.

Failing to track the maximum can result in dangerously low values being
calculated for `ATC_ACCEL_[RPY]_MAX` and the vehicle becoming unflyable.

Make the variable a reference so that the maximum value is preserved
between function calls.
Yury-MonZon pushed a commit to Yury-MonZon/ardupilot that referenced this pull request Dec 12, 2024
Issue introduced in ArduPilot#27370
and partially fixed in ArduPilot#27762,
though evidently not properly tested.

Failing to track the maximum can result in dangerously low values being
calculated for `ATC_ACCEL_[RPY]_MAX` and the vehicle becoming unflyable.

Make the variable a reference so that the maximum value is preserved
between function calls.
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