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

GCS_MAVLink: Remove redundant assignment to the command #13916

Conversation

WickedShell
Copy link
Contributor

This is done internally by the conversion to mission_item_int_t

This is done internally by the conversion to mission_item_int_t
@khancyr
Copy link
Contributor

khancyr commented Mar 28, 2020

isn't that an issue here : https://github.com/ArduPilot/ardupilot/blob/master/libraries/GCS_MAVLink/MissionItemProtocol.cpp#L182 as we need item_int.command; ?

@peterbarker
Copy link
Contributor

@khancyr Our reading is that the command in that case is already populated by https://github.com/ardupilot/ardupilot/blob/master/libraries/AP_Mission/AP_Mission.cpp#L1193 - the call to that function is just above the assignment being eliminated, https://github.com/ardupilot/ardupilot/blob/master/libraries/GCS_MAVLink/MissionItemProtocol_Waypoints.cpp#L83

@khancyr
Copy link
Contributor

khancyr commented Mar 28, 2020

Ha yes! Nice one !

@tridge tridge merged commit 18baf18 into ArduPilot:master Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants