Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
939dcca3
Commit
939dcca3
authored
Aug 21, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hotfix for component ID mismatch in mission management
parent
9271e886
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
UASWaypointManager.cc
src/uas/UASWaypointManager.cc
+10
-1
No files found.
src/uas/UASWaypointManager.cc
View file @
939dcca3
...
...
@@ -218,7 +218,16 @@ void UASWaypointManager::handleWaypoint(quint8 systemId, quint8 compId, mavlink_
void
UASWaypointManager
::
handleWaypointAck
(
quint8
systemId
,
quint8
compId
,
mavlink_mission_ack_t
*
wpa
)
{
if
(
systemId
==
current_partner_systemid
&&
(
compId
==
current_partner_compid
||
compId
==
MAV_COMP_ID_ALL
))
{
if
(
systemId
!=
current_partner_systemid
)
{
return
;
}
// Check if the current partner component ID is generic. If it is, we might need to update
if
(
current_partner_compid
==
MAV_COMP_ID_MISSIONPLANNER
)
{
current_partner_compid
=
compId
;
}
if
(
compId
==
current_partner_compid
||
compId
==
MAV_COMP_ID_ALL
)
{
if
((
current_state
==
WP_SENDLIST
||
current_state
==
WP_SENDLIST_SENDWPS
)
&&
(
current_wp_id
==
waypoint_buffer
.
count
()
-
1
&&
wpa
->
type
==
0
))
{
//all waypoints sent and ack received
protocol_timer
.
stop
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment