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
0c1774a8
Commit
0c1774a8
authored
Dec 26, 2013
by
Julian Oes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WaypointManager: React to ack when waypoint transmission fails
parent
5bd3722e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
UASWaypointManager.cc
src/uas/UASWaypointManager.cc
+11
-0
No files found.
src/uas/UASWaypointManager.cc
View file @
0c1774a8
...
@@ -225,6 +225,17 @@ void UASWaypointManager::handleWaypointAck(quint8 systemId, quint8 compId, mavli
...
@@ -225,6 +225,17 @@ void UASWaypointManager::handleWaypointAck(quint8 systemId, quint8 compId, mavli
current_state
=
WP_IDLE
;
current_state
=
WP_IDLE
;
readWaypoints
(
false
);
//Update "Onboard Waypoints"-tab immidiately after the waypoint list has been sent.
readWaypoints
(
false
);
//Update "Onboard Waypoints"-tab immidiately after the waypoint list has been sent.
emit
updateStatusString
(
"done."
);
emit
updateStatusString
(
"done."
);
}
else
if
((
current_state
==
WP_SENDLIST
||
current_state
==
WP_SENDLIST_SENDWPS
)
&&
wpa
->
type
!=
0
)
{
//give up transmitting if a WP is rejected
if
(
wpa
->
type
==
1
)
{
emit
updateStatusString
(
"upload failed: general error"
);
}
else
if
(
wpa
->
type
==
2
)
{
emit
updateStatusString
(
"upload failed: coordinate frame unsupported."
);
}
else
{
emit
updateStatusString
(
"upload failed: other error."
);
}
protocol_timer
.
stop
();
current_state
=
WP_IDLE
;
}
else
if
(
current_state
==
WP_CLEARLIST
)
{
}
else
if
(
current_state
==
WP_CLEARLIST
)
{
protocol_timer
.
stop
();
protocol_timer
.
stop
();
current_state
=
WP_IDLE
;
current_state
=
WP_IDLE
;
...
...
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