-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Command int long fixes #1992
Command int long fixes #1992
Conversation
@julianoes et al Some question: I think these are missing
In some cases we need COMMAND_LONG. Specifically, if param 5, 6 can have float data.
Given they have to be command long, can we mark those with What about reserved cases that make the command COMMAND_LONG but don't actually force this. We could remove the entries altogether (changing default to 0), or explicitly change to zero, allowing it to be sent in either: (?)
What do we do for cases where things are not intended as commands or as mission items:
Propose to remove mention of mission_item here: |
@hamishwillee: It's a bit too general. I'd suggest something like: |
@hamishwillee: Since you tagged me initially, I'll throw in my 2 cents:
Yes, I think so. However:
As far as I can see, none of the above need to be
"Reserved" doesn't really make sense. I'd suggest changing anything that says "Reserved" to "Empty".
Too late to change? And, as above, does
Yes, Does this also imply we need another I'm not sure there is anything that should be marked as
Sounds good. |
@sypaq-nexton Seeing as how you are engaged, helpful, and succinct, please do comment.
It is probably AMSL. Moved discussion of this to #1994
We could ignore, but it is still used. Deprecated currently means "superseded in MAVLink but may still be used by other flight stacks" (though I am hoping to add superseded tagging and make deprecated really mean that). Either way, answer hopefully will fall out of discussion in #1994
Reserved (with default in particular), actually has a purpose. It is the cases that are Empty that really should be changed (everywhere). There are two reasons for this:
Docs on that is here: https://mavlink.io/en/guide/define_xml_element.html#reserved I'll PR a fix and see what people think
I think it might be possible to change, and yes, I think location stuff should be in the place defined by convention. Particularly for isDestination, but also for hasLocation. Conventions make things easier, and I know that this one is relied upon for isDestingation, and may be relied on for hasLocation GCS UI. Exploring this further in #1995
Good point. I chose the negative because I want to imply "is supported in a mission" just "makes no sense for a command". @auturgy This was your point last night. I'll propose Note also that I would love to generally have
I don't think so, or at least it it is an orthogonal discussion. I think it is reasonable that you get a result indicating you used the wrong command type, but I think it is not so useful to tell the user that they could use that in a mission, and a pain for the implementers to have to check. Better to keep them separate.
Me either. Most commands do things, and could be send in a mission item to useful effect. Again, by apply
I added PR for this. |
Ack. The reason I thought "Reserved" doesn't make sense is that I'm too used to MAVLink2, where changing a field will invalidate the checksums. But it does matter for MAVLink1... |
@sypaq-nexton
It doesn't matter for commands either. The message field name is still param 1, just the content changes. |
This has had some weeks to percolate and was essentially pre-agreed, so I am going to merge. All the other discussions above now split into there own issues/PRs. May need to provide further updates following those resolving. |
Following on from discussion in #1982, this updates docs generator to add a note to any command that has either
hasDestination=true
orisDestingation=true
attribute. This renders as a line at the end of the description like this:Are we OK with the text? More questions to follow; they wouldn't block this, but would result in follow on work.
FYI @sypaq-nexton @peterbarker