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
65dcf96e
Commit
65dcf96e
authored
May 07, 2014
by
Lorenz Meier
Browse files
Use higher rate for the serial link now that its living in its own thread
parent
1c80824e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/comm/SerialLink.cc
View file @
65dcf96e
...
...
@@ -73,6 +73,7 @@ SerialLink::SerialLink(QString portname, int baudRate, bool hardwareFlowControl,
qDebug
()
<<
"m_portName "
<<
m_portName
;
LinkManager
::
instance
()
->
add
(
this
);
qDebug
()
<<
"link added to link manager"
;
}
void
SerialLink
::
requestReset
()
...
...
@@ -191,6 +192,7 @@ void SerialLink::run()
// disconnect(); // This tidies up and sends the necessary signals
return
;
}
qDebug
()
<<
"connected"
;
// Qt way to make clear what a while(1) loop does
qint64
msecs
=
QDateTime
::
currentMSecsSinceEpoch
();
...
...
@@ -314,7 +316,8 @@ void SerialLink::run()
// }
}
}
MG
::
SLEEP
::
msleep
(
SerialLink
::
poll_interval
);
//MG::SLEEP::msleep(SerialLink::poll_interval);
QGC
::
SLEEP
::
msleep
(
2
);
}
// end of forever
if
(
m_port
)
{
// [TODO][BB] Not sure we need to close the port here
...
...
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