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
03e904d5
Commit
03e904d5
authored
Dec 22, 2013
by
Bryant Mairs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved configuration constants in DebugConsole to proper static const types.
parent
2955d352
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
DebugConsole.cc
src/ui/DebugConsole.cc
+0
-5
DebugConsole.h
src/ui/DebugConsole.h
+2
-2
No files found.
src/ui/DebugConsole.cc
View file @
03e904d5
...
@@ -40,9 +40,6 @@ This file is part of the QGROUNDCONTROL project
...
@@ -40,9 +40,6 @@ This file is part of the QGROUNDCONTROL project
#include "protocol.h"
#include "protocol.h"
#include "QGC.h"
#include "QGC.h"
// Set the snapshot interval to 500ms.
#define DEBUGCONSOLE_SNAPSHOT_INTERVAL 500
DebugConsole
::
DebugConsole
(
QWidget
*
parent
)
:
DebugConsole
::
DebugConsole
(
QWidget
*
parent
)
:
QWidget
(
parent
),
QWidget
(
parent
),
currLink
(
NULL
),
currLink
(
NULL
),
...
@@ -60,9 +57,7 @@ DebugConsole::DebugConsole(QWidget *parent) :
...
@@ -60,9 +57,7 @@ DebugConsole::DebugConsole(QWidget *parent) :
lastLineBuffer
(
0
),
lastLineBuffer
(
0
),
lineBufferTimer
(),
lineBufferTimer
(),
snapShotTimer
(),
snapShotTimer
(),
snapShotInterval
(
DEBUGCONSOLE_SNAPSHOT_INTERVAL
),
lowpassInDataRate
(
0.0
f
),
lowpassInDataRate
(
0.0
f
),
inDataRateThreshold
(
0.4
),
lowpassOutDataRate
(
0.0
f
),
lowpassOutDataRate
(
0.0
f
),
commandIndex
(
0
),
commandIndex
(
0
),
m_ui
(
new
Ui
::
DebugConsole
)
m_ui
(
new
Ui
::
DebugConsole
)
...
...
src/ui/DebugConsole.h
View file @
03e904d5
...
@@ -137,9 +137,9 @@ protected:
...
@@ -137,9 +137,9 @@ protected:
quint64
lastLineBuffer
;
///< Last line buffer emission time
quint64
lastLineBuffer
;
///< Last line buffer emission time
QTimer
lineBufferTimer
;
///< Line buffer timer
QTimer
lineBufferTimer
;
///< Line buffer timer
QTimer
snapShotTimer
;
///< Timer for measuring traffic snapshots
QTimer
snapShotTimer
;
///< Timer for measuring traffic snapshots
int
snapShotInterval
;
///< Set the time between UI updates for the data rate (ms)
static
const
int
snapShotInterval
=
500
;
///< Set the time between UI updates for the data rate (ms)
float
lowpassInDataRate
;
///< Lowpass filtered data rate (kilobytes/s)
float
lowpassInDataRate
;
///< Lowpass filtered data rate (kilobytes/s)
float
inDataRateThreshold
;
///< Threshold where to enable auto-hold (kilobytes/s)
static
const
float
inDataRateThreshold
=
0
.
4
;
///< Threshold where to enable auto-hold (kilobytes/s)
float
lowpassOutDataRate
;
///< Low-pass filtered outgoing data rate (kilobytes/s)
float
lowpassOutDataRate
;
///< Low-pass filtered outgoing data rate (kilobytes/s)
QStringList
commandHistory
;
QStringList
commandHistory
;
QString
currCommand
;
QString
currCommand
;
...
...
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