-
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
Extending MISSION_ITEM_REACHED with more detailed status #2023
Comments
Thanks @sypaq-nexton . The short answer is that this is not the first time that this has come up, bit I don't have an answer that satisfies me. I'll add to the dev call next week for discussion. A few thoughts:
It's certainly worthy of more thought - definitely nice to be able to see on a GCS that you're on the last round of a loiter. |
Hi @hamishwillee, thanks for the response. Some more comments:
I don't have time to dive into this at the moment, but I hope to get to it sometime soon... |
@sypaq-nexton Thanks very much - just a few comments: There is some precedent for this discussion. I am thinking perhaps this can be reused: https://mavlink.io/en/messages/common.html#ORBIT_EXECUTION_STATUS
If they are zero by default and we are sure-ish that we won't extend them, then the cost of extension fields depends on what is no longer zero-truncated. That is probably worth it, though we'd need broad agreement from consumers.
If you mean "ad hoc" in terms of where they are rolled out and standardizing the event/text, I agree.
This the same as your idea (ish) but encoding the states in two fields. So MISSION_ITEM_STATUS_TYPE indicates the type of operation and how the second field is interpreted - percentage complete, remaining time, or count remaining. YOu could also have two fields as you did.
These could be part of mission_current, or in their own message, or we could do it the way you have proposed. There are advantages/disadvantages to each. Broadly speaking it is "politically" easier to get stuff appended to old messages than get new messages, and if you're doing that the enum approach is efficient because you can extend it easily with a new enum. Each new message costs a bit of flash. On the other hand, I really like the simplicity of having a separate message for each thing we want to do. |
Had a chat about this in dev call. This is proposal from Julian #2029 |
Throwing this one out to get some input. Currently, the
MISSION_ITEM_REACHED
message only tells us when we get to a mission item. It would be nice if we could get more detailed status while executing a mission item. For example:MAV_CMD_NAV_LOITER_TURNS
could report:MAV_CMD_NAV_LOITER_TIME
andMAV_CMD_NAV_RETURN_TO_LAUNCH
could report:I think most mission commands would be covered by one of:
count_completed
andtotal_count
;time_elapsed
andtotal_time
; orpercentage_complete
.What would be the best way to implement this? Extend the
MISSION_ITEM_REACHED
message with new fields? Extend a different message? Or add a new message (e.g.MISSION_ITEM_REACHED_STATUS
)?The text was updated successfully, but these errors were encountered: