-
Notifications
You must be signed in to change notification settings - Fork 16.8k
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
RC_Channel: options in alphabetical order #25963
RC_Channel: options in alphabetical order #25963
Conversation
This is purely a doc change so it looks better in MP, right? |
Yes, that's right. It has no functional change in terms of the flight code. It's just for the GCSs. |
will require considerable wiki work on this page: common-auxiliary-functions.rst, but its a good change...have made a suggestion while we are at it. |
@@ -104,146 +104,147 @@ const AP_Param::GroupInfo RC_Channel::var_info[] = { | |||
// @User: Advanced | |||
AP_GROUPINFO("DZ", 5, RC_Channel, dead_zone, 0), | |||
|
|||
|
|||
// @Param: OPTION | |||
// @DisplayName: RC input option | |||
// @Description: Function assigned to this RC channel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// @Description: Function assigned to this RC channel | |
// @Description: Function assigned to this RC channel. Normally intended as a 2 or 3 position switch, functions in the 200/300 ranges are normally intended for continuous input range control. |
I wonder if we could just have the param parser do this for us automatically.... |
we could have an optional "@SortedOptions" line which would cause it sort |
I'm happy with the SortedOptions idea if we're happy not to have the flight modes at the top. |
An alternative change is here #25996 |
Closing in favour of PeterB's PR. |
Our list of RCx_OPTION parameter values is very long and users struggle to find what they are looking for.
This PR reorders them mostly in alphabetical order with some exceptions:
There are some small issues that I could have fixed but put off for a follow-up PR to keep it easier to verify and merge:
a. some lines still have multiple items on them (e.g. "300:Scripting1, 301:Scripting2.." and "166:Camera Record Video, 167:Camera Zoom)
b. some items are badly named, (e.g. "use Custom Controller")
c. some are used to define the channel is used for control (e.g. Roll, Walking Height). We could group these, perhaps below the modes
I have carefully verified that no items have been lost in this change. I asked ChatGPT to do it first but it failed so I resorted to a spreadsheet with multiple cross checks.