Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
28614171
Commit
28614171
authored
May 22, 2014
by
Bryant Mairs
Browse files
Set debug messages for rejected waypoint messages to specify which message was rejected.
parent
faca8fb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/uas/UASWaypointManager.cc
View file @
28614171
...
@@ -164,7 +164,7 @@ void UASWaypointManager::handleWaypointCount(quint8 systemId, quint8 compId, qui
...
@@ -164,7 +164,7 @@ void UASWaypointManager::handleWaypointCount(quint8 systemId, quint8 compId, qui
}
else
{
}
else
{
qDebug
(
"Rejecting message, check mismatch: current_state: %d == %d, system id %d == %d, comp id %d == %d"
,
current_state
,
WP_GETLIST
,
current_partner_systemid
,
systemId
,
current_partner_compid
,
compId
);
qDebug
(
"Rejecting
waypoint count
message, check mismatch: current_state: %d == %d, system id %d == %d, comp id %d == %d"
,
current_state
,
WP_GETLIST
,
current_partner_systemid
,
systemId
,
current_partner_compid
,
compId
);
}
}
}
}
...
@@ -212,7 +212,7 @@ void UASWaypointManager::handleWaypoint(quint8 systemId, quint8 compId, mavlink_
...
@@ -212,7 +212,7 @@ void UASWaypointManager::handleWaypoint(quint8 systemId, quint8 compId, mavlink_
emit
updateStatusString
(
tr
(
"Waypoint ID mismatch, rejecting waypoint"
));
emit
updateStatusString
(
tr
(
"Waypoint ID mismatch, rejecting waypoint"
));
}
}
}
else
{
}
else
{
qDebug
(
"Rejecting message, check mismatch: current_state: %d == %d, system id %d == %d, comp id %d == %d"
,
current_state
,
WP_GETLIST
,
current_partner_systemid
,
systemId
,
current_partner_compid
,
compId
);
qDebug
(
"Rejecting
waypoint
message, check mismatch: current_state: %d == %d, system id %d == %d, comp id %d == %d"
,
current_state
,
WP_GETLIST
_GETWPS
,
current_partner_systemid
,
systemId
,
current_partner_compid
,
compId
);
}
}
}
}
...
@@ -285,7 +285,7 @@ void UASWaypointManager::handleWaypointRequest(quint8 systemId, quint8 compId, m
...
@@ -285,7 +285,7 @@ void UASWaypointManager::handleWaypointRequest(quint8 systemId, quint8 compId, m
//TODO: Error message or something
//TODO: Error message or something
}
}
}
else
{
}
else
{
qDebug
(
"Rejecting message, check mismatch: current_state: %d == %d, system id %d == %d, comp id %d == %d"
,
current_state
,
WP_
GETLIST
,
current_partner_systemid
,
systemId
,
current_partner_compid
,
compId
);
qDebug
(
"Rejecting
waypoint request
message, check mismatch: current_state: %d == %d, system id %d == %d, comp id %d == %d"
,
current_state
,
WP_
SENDLIST_SENDWPS
,
current_partner_systemid
,
systemId
,
current_partner_compid
,
compId
);
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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