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
000a4e26
Commit
000a4e26
authored
Dec 07, 2016
by
Gus Grubba
Committed by
GitHub
Dec 07, 2016
Browse files
Merge pull request #4302 from dogmaphobic/crashGuard
Adding a crash guard for when a command resend timeout occurs with an…
parents
064be228
fe523469
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Vehicle/Vehicle.cc
View file @
000a4e26
...
...
@@ -1838,6 +1838,12 @@ void Vehicle::sendMavCommand(int component, MAV_CMD command, bool showError, flo
void
Vehicle
::
_sendMavCommandAgain
(
void
)
{
if
(
!
_mavCommandQueue
.
size
())
{
qWarning
()
<<
"Command resend with no commands in queue"
;
_mavCommandAckTimer
.
stop
();
return
;
}
MavCommandQueueEntry_t
&
queuedCommand
=
_mavCommandQueue
[
0
];
if
(
_mavCommandRetryCount
++
>
_mavCommandMaxRetryCount
)
{
...
...
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