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
ebe3f6a1
Commit
ebe3f6a1
authored
Nov 03, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #953 from DonLakeFlyer/LinkCleanup
LinkInterface::bytesAvailable api removal
parents
c1a1f656
dc0c3f3d
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
0 additions
and
75 deletions
+0
-75
LinkInterface.h
src/comm/LinkInterface.h
+0
-7
MAVLinkSimulationLink.cc
src/comm/MAVLinkSimulationLink.cc
+0
-8
MAVLinkSimulationLink.h
src/comm/MAVLinkSimulationLink.h
+0
-1
OpalLink.cc
src/comm/OpalLink.cc
+0
-12
OpalLink.h
src/comm/OpalLink.h
+0
-2
SerialLink.cc
src/comm/SerialLink.cc
+0
-15
SerialLink.h
src/comm/SerialLink.h
+0
-1
TCPLink.cc
src/comm/TCPLink.cc
+0
-10
TCPLink.h
src/comm/TCPLink.h
+0
-1
UDPLink.cc
src/comm/UDPLink.cc
+0
-11
UDPLink.h
src/comm/UDPLink.h
+0
-1
XbeeLink.cpp
src/comm/XbeeLink.cpp
+0
-5
XbeeLink.h
src/comm/XbeeLink.h
+0
-1
No files found.
src/comm/LinkInterface.h
View file @
ebe3f6a1
...
...
@@ -147,13 +147,6 @@ public:
**/
virtual
bool
disconnect
()
=
0
;
/**
* @brief Get the current number of bytes in buffer.
*
* @return The number of bytes ready to read
**/
virtual
qint64
bytesAvailable
()
=
0
;
public
slots
:
/**
...
...
src/comm/MAVLinkSimulationLink.cc
View file @
ebe3f6a1
...
...
@@ -632,14 +632,6 @@ void MAVLinkSimulationLink::mainloop()
}
qint64
MAVLinkSimulationLink
::
bytesAvailable
()
{
readyBufferMutex
.
lock
();
qint64
size
=
readyBuffer
.
size
();
readyBufferMutex
.
unlock
();
return
size
;
}
void
MAVLinkSimulationLink
::
writeBytes
(
const
char
*
data
,
qint64
size
)
{
// Parse bytes
...
...
src/comm/MAVLinkSimulationLink.h
View file @
ebe3f6a1
...
...
@@ -51,7 +51,6 @@ public:
MAVLinkSimulationLink
(
QString
readFile
=
""
,
QString
writeFile
=
""
,
int
rate
=
5
);
~
MAVLinkSimulationLink
();
bool
isConnected
()
const
;
qint64
bytesAvailable
();
void
run
();
void
requestReset
()
{
}
...
...
src/comm/OpalLink.cc
View file @
ebe3f6a1
...
...
@@ -58,18 +58,6 @@ OpalLink::OpalLink() :
QObject
::
connect
(
getSignalsTimer
,
SIGNAL
(
timeout
()),
this
,
SLOT
(
getSignals
()));
}
/*
*
Communication
*
*/
qint64
OpalLink
::
bytesAvailable
()
{
return
0
;
}
void
OpalLink
::
writeBytes
(
const
char
*
bytes
,
qint64
length
)
{
/* decode the message */
...
...
src/comm/OpalLink.h
View file @
ebe3f6a1
...
...
@@ -83,8 +83,6 @@ public:
bool
disconnect
();
qint64
bytesAvailable
();
void
run
();
int
getOpalInstID
()
{
...
...
src/comm/SerialLink.cc
View file @
ebe3f6a1
...
...
@@ -390,21 +390,6 @@ void SerialLink::readBytes()
}
}
/**
* @brief Get the number of bytes to read.
*
* @return The number of bytes to read
**/
qint64
SerialLink
::
bytesAvailable
()
{
if
(
m_port
)
{
return
m_port
->
bytesAvailable
();
}
else
{
return
0
;
}
}
/**
* @brief Disconnect the connection.
*
...
...
src/comm/SerialLink.h
View file @
ebe3f6a1
...
...
@@ -78,7 +78,6 @@ public:
void
requestReset
();
bool
isConnected
()
const
;
qint64
bytesAvailable
();
/**
* @brief The port handle
...
...
src/comm/TCPLink.cc
View file @
ebe3f6a1
...
...
@@ -176,16 +176,6 @@ void TCPLink::readBytes()
}
}
/**
* @brief Get the number of bytes to read.
*
* @return The number of bytes to read
**/
qint64
TCPLink
::
bytesAvailable
()
{
return
_socket
->
bytesAvailable
();
}
/**
* @brief Disconnect the connection.
*
...
...
src/comm/TCPLink.h
View file @
ebe3f6a1
...
...
@@ -67,7 +67,6 @@ public:
virtual
bool
isConnected
(
void
)
const
;
virtual
bool
connect
(
void
);
virtual
bool
disconnect
(
void
);
virtual
qint64
bytesAvailable
(
void
);
virtual
void
requestReset
(
void
)
{};
// Extensive statistics for scientific purposes
...
...
src/comm/UDPLink.cc
View file @
ebe3f6a1
...
...
@@ -267,17 +267,6 @@ void UDPLink::readBytes()
}
}
/**
* @brief Get the number of bytes to read.
*
* @return The number of bytes to read
**/
qint64
UDPLink
::
bytesAvailable
()
{
return
socket
->
pendingDatagramSize
();
}
/**
* @brief Disconnect the connection.
*
...
...
src/comm/UDPLink.h
View file @
ebe3f6a1
...
...
@@ -52,7 +52,6 @@ public:
void
requestReset
()
{
}
bool
isConnected
()
const
;
qint64
bytesAvailable
();
int
getPort
()
const
{
return
port
;
}
...
...
src/comm/XbeeLink.cpp
View file @
ebe3f6a1
...
...
@@ -189,11 +189,6 @@ bool XbeeLink::disconnect()
return
true
;
}
qint64
XbeeLink
::
bytesAvailable
()
{
return
0
;
}
void
XbeeLink
::
writeBytes
(
const
char
*
bytes
,
qint64
length
)
// TO DO: delete the data array
{
char
*
data
;
...
...
src/comm/XbeeLink.h
View file @
ebe3f6a1
...
...
@@ -36,7 +36,6 @@ public: // virtual functions from LinkInterface
bool
isConnected
()
const
;
bool
connect
();
bool
disconnect
();
qint64
bytesAvailable
();
// Extensive statistics for scientific purposes
qint64
getConnectionSpeed
()
const
;
...
...
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