-
Notifications
You must be signed in to change notification settings - Fork 17.2k
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
Use common GCS functions from superclass #6553
Conversation
e77c0a7
to
1e734b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides inline comments, looks good.
Any reason for MAVLINK_MSG_ID_MISSION_ACK not to be moved to common too?
libraries/GCS_MAVLink/GCS_Common.cpp
Outdated
/* fall through */ | ||
case MAVLINK_MSG_ID_MISSION_SET_CURRENT: | ||
/* fall through */ | ||
case MAV_CMD_MISSION_START: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems wrong. Message ID will never be a command ID.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's... odd. Fixed.
libraries/GCS_MAVLink/GCS_Common.cpp
Outdated
break; | ||
} | ||
|
||
case MAVLINK_MSG_ID_MISSION_ITEM_INT: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason the code below is duplicated from above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the way it came in from the donor library. I did see it, but decided I was moving code, not fixing it :-)
I'll add a patch on top to remove the duplication.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's funny because I noticed this because I saw one of the vehicles not having the duplicated code 🙂
b99c15a
to
9d97221
Compare
@OXINARF I've moved the MISSION_ACK stuff up now. |
@peterbarker Do you mind if I squash the last 4 commits? @magicrub Again, why dev call topic? This is basically a non-functional change... |
@OXINARF Not at all - squash away! |
As agreed, squashed and merged, thanks! |
No description provided.