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
b2835e7d
Commit
b2835e7d
authored
Dec 06, 2016
by
Don Gagne
Browse files
Fix timer stop bug
parent
159e12cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Vehicle/Vehicle.cc
View file @
b2835e7d
...
...
@@ -564,11 +564,12 @@ void Vehicle::_handleCommandAck(mavlink_message_t& message)
mavlink_msg_command_ack_decode
(
&
message
,
&
ack
);
if
(
_mavCommandQueue
.
count
()
&&
ack
.
command
==
_mavCommandQueue
[
0
].
command
)
{
_mavCommandAckTimer
.
stop
();
showError
=
_mavCommandQueue
[
0
].
showError
;
_mavCommandQueue
.
removeFirst
();
}
emit
mavCommandResult
(
_id
,
message
.
compid
,
(
MAV_CMD
)
ack
.
command
,
(
MAV_RESULT
)
ack
.
result
,
false
/* noResponsefromVehicle */
);
emit
mavCommandResult
(
_id
,
message
.
compid
,
ack
.
command
,
ack
.
result
,
false
/* noResponsefromVehicle */
);
if
(
showError
)
{
QString
commandName
=
qgcApp
()
->
toolbox
()
->
missionCommandTree
()
->
friendlyName
((
MAV_CMD
)
ack
.
command
);
...
...
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