[Discuss] MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT - redefine meaning #1769
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is created for discussion. Don't merge until consensus has been reached.
MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT is unclear about what it supports.
However there is no obvious float message type. There are messages that take floats to set and get the protocol. My strong guess is that this was originally set when the parameter protocol was created to indicate those messages, and more broadly the parameter protocol. It is possible it means support for parameters of type
MAV_PARAM_TYPE_REAL32
- while I think ArduPilot only supports INT32 parameters. This is set by PX4 but not ArduPilot.I have assumed here it was meant to mean "supports the parameter protocol".
Whether or not it is, I recommend that we split the parameter protocol into two versions (in docs) and add new protocol flags for them:
If it means support for
MAV_PARAM_TYPE_REAL32
we should update the docs appropriately and also add a protocol bit to indicate support for the INT32 type (though this can be assumed). Unless we have a better way to indicate the supported types?This is first step to allowing a GCS to understand what version it is getting without having to know the autopilot. Ideally we might converge on a new version with this done. Either way though, we might end up with a useless protocol bit, but at least it will be a clearly defined useless bit :-)
Your thoughts appreciated.
DO NOT MERGE!