Copter: simple mode fix - #33947
Conversation
5fd9c4b to
b5f4bc4
Compare
b5f4bc4 to
a5d54f6
Compare
|
Automated review note — AI-generated (Claude), cross-checked by an independent second model against the live diff. Please sanity-check before acting. Reviewed at head Verdict: REQUEST CHANGES
Full report: https://uav.tridgell.net/DevCallReviews/2026_08_11/devcall_pr_reviews.html |
|
This is surprisingly close to #18581. I think anything we can do to remove uses of the "control in" methods on RC is a good thing. |
|
That is incredible. It's nearly identical! |
3544737 to
19f3adc
Compare
Co-authored-by: Iampete1 <iampete@hotmail.co.uk> Replaces update_simple_mode with apply_simple_mode function that takes roll and pitch input arguments. The rotation is now done within the various get-pilot-desired-xxx methods removing the need for each flight mode to call update_simple_mode and also removing the slightly ugly call to overwrite RC_Channels' control inputs from the flight code (e.g. no more calls to set_control_in)
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
19f3adc to
d5e72a7
Compare
peterbarker
left a comment
There was a problem hiding this comment.
LGTM
I'm not particularly fussed if there are a few differences in e.g. drift mode and whatnot.
Such a good improvement.
This resolves issue #33936
Replaces update_simple_mode with apply_simple_mode that takes roll and pitch input arguments. The rotation is now done within the various get-pilot-desired-xxx methods removing the need for each flight mode to call update_simple_mode and also removing the slightly ugly call to overwrite RC_Channels' control inputs from the flight code (e.g. no more calls to set_control_in)
This fix also introduces these changes which I think are OK:
This has been tested in SITL in Acro, AltHold, Drift, Loiter and Land modes to ensure both simple mode and super simple mode work as expected. Below are the modes I've tested:
A new autotest borrowed from PR #33939 ensure the behaviour is correct so that this doesn't happen again
Below are some screen shots of testing save trim in SITL. During this test did this:
Classification & Testing (check all that apply and add your own)