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
ac3a3c73
Commit
ac3a3c73
authored
Apr 04, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'no_portconfig' of github.com:mavlink/qgroundcontrol
parents
7f893689
74f48a2f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
141 additions
and
63 deletions
+141
-63
SerialLink.cc
src/comm/SerialLink.cc
+135
-61
SerialLink.h
src/comm/SerialLink.h
+5
-1
configuration.h
src/configuration.h
+1
-1
No files found.
src/comm/SerialLink.cc
View file @
ac3a3c73
This diff is collapsed.
Click to expand it.
src/comm/SerialLink.h
View file @
ac3a3c73
...
...
@@ -103,6 +103,8 @@ public:
void
loadSettings
();
void
writeSettings
();
void
checkIfCDC
();
void
run
();
void
run2
();
...
...
@@ -154,6 +156,8 @@ protected:
QMutex
m_dataMutex
;
// Mutex for reading data from m_port
QMutex
m_writeMutex
;
// Mutex for accessing the m_transmitBuffer.
QList
<
QString
>
m_ports
;
QString
type
;
bool
m_is_cdc
;
private:
volatile
bool
m_stopp
;
...
...
@@ -161,7 +165,7 @@ private:
QMutex
m_stoppMutex
;
// Mutex for accessing m_stopp
QByteArray
m_transmitBuffer
;
// An internal buffer for receiving data from member functions and actually transmitting them via the serial port.
bool
hardwareConnect
();
bool
hardwareConnect
(
QString
&
type
);
signals:
void
aboutToCloseFlag
();
...
...
src/configuration.h
View file @
ac3a3c73
...
...
@@ -4,7 +4,7 @@
#include <QString>
/** @brief Polling interval in ms */
#define SERIAL_POLL_INTERVAL
9
#define SERIAL_POLL_INTERVAL
5
/** @brief Heartbeat emission rate, in Hertz (times per second) */
#define MAVLINK_HEARTBEAT_DEFAULT_RATE 1
...
...
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