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
f9c5e979
Commit
f9c5e979
authored
Aug 11, 2010
by
Bryan Godbolt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filling in virtual functions
parent
cfb64a72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
OpalLink.cc
src/comm/OpalLink.cc
+24
-1
OpalLink.h
src/comm/OpalLink.h
+1
-0
No files found.
src/comm/OpalLink.cc
View file @
f9c5e979
...
...
@@ -42,8 +42,16 @@ int OpalLink::getLinkQuality()
qint64
OpalLink
::
getTotalUpstream
()
{
statisticsMutex
.
lock
();
return
bitsSentTotal
/
((
MG
::
TIME
::
getGroundTimeNow
()
-
connectionStartTime
)
/
1000
);
qint64
totalUpstream
=
bitsSentTotal
/
((
MG
::
TIME
::
getGroundTimeNow
()
-
connectionStartTime
)
/
1000
);
statisticsMutex
.
unlock
();
return
totalUpstream
;
}
qint64
OpalLink
::
getTotalDownstream
()
{
statisticsMutex
.
lock
();
qint64
totalDownstream
=
bitsReceivedTotal
/
((
MG
::
TIME
::
getGroundTimeNow
()
-
connectionStartTime
)
/
1000
);
statisticsMutex
.
unlock
();
return
totalDownstream
;
}
qint64
OpalLink
::
getCurrentUpstream
()
...
...
@@ -69,3 +77,18 @@ bool OpalLink::isFullDuplex()
{
return
false
;
}
bool
OpalLink
::
connect
()
{
return
false
;
}
bool
OpalLink
::
disconnect
()
{
return
false
;
}
qint64
OpalLink
::
bytesAvailable
()
{
return
0
;
}
src/comm/OpalLink.h
View file @
f9c5e979
...
...
@@ -29,6 +29,7 @@ class OpalLink : public LinkInterface
bool
isFullDuplex
();
int
getLinkQuality
();
qint64
getTotalUpstream
();
qint64
getTotalDownstream
();
qint64
getCurrentUpstream
();
qint64
getMaxUpstream
();
qint64
getBitsSent
();
...
...
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