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

Add reserved/default param info #168

Merged
merged 3 commits into from
Feb 20, 2019
Merged

Conversation

hamishwillee
Copy link
Collaborator

@hamishwillee hamishwillee commented Feb 14, 2019

The reserved and default attributes for params went into the schema this week. This PR documents the intent.

Note that the change is in and can be used, but I hope for ArduPilot/pymavlink#269 to go in to make sure that generated source code docs reflect this.

FYI @amilcarlucas

- `label` - Display name to represent the parameter in a GCS or other UI
- `units` - SI units for the value.
- `enum` - Enum containing possible values for the parameter (if applicable).
- `decimalPlaces` - Hint to a UI about how many decimal places to use if the parameter value is displayed.
- `increment` - Allowed increments for the parameter value.
- `minValue` - Minimum value for param.
- `maxValue` - Maximum value for the param.


- `reserved` - Param is reserved for future use. Default is `False`.

Choose a reason for hiding this comment

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

I had to stare at this for a bit to stop being confused. Specifically the Default is `False`. part. I was thinking that was talking about the default value for the param itself. Not sure if that's just me.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If you can find it confusing, then someone else will too. Reworded:

Boolean indicating whether param is reserved for future use. If the attributes is not declared, then implicitly `reserved="False".

@hamishwillee
Copy link
Collaborator Author

@DonLakeFlyer I am assuming that otherwise you are happy with this and therefore merging. If that is not true, let me know!

@hamishwillee hamishwillee merged commit 805e9a6 into mavlink:master Feb 20, 2019
@hamishwillee hamishwillee deleted the reserved branch February 20, 2019 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants