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

Remove reduntant @Values from parameter documentation #27082

Merged

Conversation

peterbarker
Copy link
Contributor

we have enforced this one-of-Values-or-Bitmask in libraries for a long time, and should have been enforcing it in vehicles before now.

MissionPlanner and MAVProxy ignore Values if Bitmask is present

Built on top of #27070

@peterbarker peterbarker changed the title Remove redantant @Values from parameter documentation Remove reduntant @Values from parameter documentation May 17, 2024
@peterbarker peterbarker force-pushed the pr/loki077/pr_crash_detec_doc_fix branch from 3d47ff2 to 183cda6 Compare May 17, 2024 01:27
Copy link
Contributor

@amilcarlucas amilcarlucas left a comment

Choose a reason for hiding this comment

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

Nice PR!!!

@@ -636,8 +635,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
// @Param: FS_OPTIONS
// @DisplayName: Failsafe Options
// @Description: Bitmask to enable failsafe options
// @Values: 0:None,1:Failsafe enabled in Hold mode
// @Bitmask: 0:Failsafe enabled in Hold mode
// @Bitmask: 0:Failsafe enabled in Hold mode,1:Failsafe enabled in Hold mode
Copy link
Contributor

Choose a reason for hiding this comment

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

The same string twice. Something is wrong here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@@ -1135,8 +1132,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
// @Param: DSPOILER_OPTS
// @DisplayName: Differential spoiler and crow flaps options
// @Description: Differential spoiler and crow flaps options
// @Values: 0: none, 1: D spoilers have pitch input, 2: use both control surfaces on each wing for roll, 4: Progressive crow flaps only first (0-50% flap in) then crow flaps (50 - 100% flap in)
Copy link
Contributor

Choose a reason for hiding this comment

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

Some of the details should be added in the description IMHO

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@peterbarker peterbarker force-pushed the pr/loki077/pr_crash_detec_doc_fix branch from 183cda6 to c6ff1b1 Compare May 21, 2024 00:03
@peterbarker peterbarker merged commit 562e5c0 into ArduPilot:master May 21, 2024
89 checks passed
@peterbarker peterbarker deleted the pr/loki077/pr_crash_detec_doc_fix branch May 22, 2024 04:36
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.

None yet

4 participants