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

AP_Scripting: simplify Rover quick tune #25629

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

rmackay9
Copy link
Contributor

@rmackay9 rmackay9 commented Nov 25, 2023

This greatly simplifies the Rover quiktune so that it only tunes the Steering (aka Turn rate) and Speed controller feed-forward values. It then simply sets the corresponding P and I values to configurable ratios of the feed-forward.

While the rover tune received initial positive feedback, over time it became clear that the gains it produced were always too high and to get them into a reasonable range we had to set the backoff margin to ridiculously high values like 90% at which point it became very questionable as to whether the raise-gains-until-it-oscillates method is appropriate for rovers and boats.

This has been successfully tested in SITL and on a real vehicle.

This resolves issue #24729

The testing discussion is here.

@magicrub
Copy link
Contributor

This PR is only effecting a script and it's md so it's low risk. I say we YOLO merge it

@xianglunkai
Copy link
Contributor

@rmackay9
Nice! Thank you very much!

tridge
tridge previously requested changes Nov 29, 2023
Copy link
Contributor

@tridge tridge left a comment

Choose a reason for hiding this comment

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

new table key would be a good idea

@tridge tridge removed the DevCallEU label Nov 29, 2023
Only tunes FF.  P and I are set as ratio to FF
@rmackay9 rmackay9 force-pushed the rover-quiktune-simple branch from a92197a to 4bbc813 Compare November 29, 2023 10:13
@rmackay9 rmackay9 dismissed tridge’s stale review November 29, 2023 10:13

Tridge's request addressed, txs

@magicrub magicrub merged commit 4629805 into ArduPilot:master Nov 29, 2023
88 checks passed
@rmackay9 rmackay9 deleted the rover-quiktune-simple branch November 29, 2023 23:17
@rmackay9
Copy link
Contributor Author

rmackay9 commented Dec 4, 2023

This is included in Copter-4.4.4-beta1 and Rover-4.4.0-beta11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 4.4.4-rc1
Development

Successfully merging this pull request may close these issues.

4 participants