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
bedd4304
Commit
bedd4304
authored
Aug 11, 2010
by
Bryan Godbolt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working on opal link
parent
efb1428b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
22 deletions
+19
-22
qgroundcontrol.pro
qgroundcontrol.pro
+1
-1
OpalLink.cc
src/comm/OpalLink.cc
+13
-1
OpalLink.h
src/comm/OpalLink.h
+5
-20
No files found.
qgroundcontrol.pro
View file @
bedd4304
...
...
@@ -212,7 +212,7 @@ RESOURCES = mavground.qrc
#
Include
RT
-
LAB
Library
win32
{
LIBS
+=
C
:
\
OPAL
-
RT
\
RT
-
LAB7
.
2.4
\
Common
\
lib
\
OpalApi
.
lib
LIBS
+=
-
LC
:
\
OPAL
-
RT
\
RT
-
LAB7
.
2.4
\
Common
\
bin
-
lOpalApi
INCLUDEPATH
+=
src
/
lib
/
opalrt
SOURCES
+=
src
/
comm
/
OpalLink
.
cc
HEADERS
+=
src
/
comm
/
OpalLink
.
h
...
...
src/comm/OpalLink.cc
View file @
bedd4304
...
...
@@ -80,7 +80,8 @@ bool OpalLink::isFullDuplex()
bool
OpalLink
::
connect
()
{
return
false
;
short
modelState
;
OpalConnect
(
101
,
true
,
&
modelState
);
}
bool
OpalLink
::
disconnect
()
...
...
@@ -92,3 +93,14 @@ qint64 OpalLink::bytesAvailable()
{
return
0
;
}
void
OpalLink
::
writeBytes
(
const
char
*
bytes
,
qint64
length
)
{
}
void
OpalLink
::
readBytes
(
char
*
bytes
,
qint64
maxLength
)
{
}
src/comm/OpalLink.h
View file @
bedd4304
...
...
@@ -13,6 +13,9 @@
#include "LinkManager.h"
#include "MG.h"
#include "errno.h"
#include "OpalApi.h"
class
OpalLink
:
public
LinkInterface
{
Q_OBJECT
...
...
@@ -47,29 +50,11 @@ class OpalLink : public LinkInterface
public
slots
:
virtual
void
writeBytes
(
const
char
*
bytes
,
qint64
length
)
=
0
;
virtual
void
readBytes
(
char
*
bytes
,
qint64
maxLength
)
=
0
;
signals:
void
bytesReady
(
LinkInterface
*
link
);
void
bytesReceived
(
LinkInterface
*
link
,
QByteArray
data
);
void
connected
();
void
disconnected
();
void
writeBytes
(
const
char
*
bytes
,
qint64
length
);
void
connected
(
bool
connected
);
void
readBytes
(
char
*
bytes
,
qint64
maxLength
);
void
nameChanged
(
QString
name
);
public:
OpalLink
();
...
...
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