Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
03e904d5
Commit
03e904d5
authored
Dec 22, 2013
by
Bryant Mairs
Browse files
Moved configuration constants in DebugConsole to proper static const types.
parent
2955d352
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ui/DebugConsole.cc
View file @
03e904d5
...
...
@@ -40,9 +40,6 @@ This file is part of the QGROUNDCONTROL project
#include
"protocol.h"
#include
"QGC.h"
// Set the snapshot interval to 500ms.
#define DEBUGCONSOLE_SNAPSHOT_INTERVAL 500
DebugConsole
::
DebugConsole
(
QWidget
*
parent
)
:
QWidget
(
parent
),
currLink
(
NULL
),
...
...
@@ -60,9 +57,7 @@ DebugConsole::DebugConsole(QWidget *parent) :
lastLineBuffer
(
0
),
lineBufferTimer
(),
snapShotTimer
(),
snapShotInterval
(
DEBUGCONSOLE_SNAPSHOT_INTERVAL
),
lowpassInDataRate
(
0.0
f
),
inDataRateThreshold
(
0.4
),
lowpassOutDataRate
(
0.0
f
),
commandIndex
(
0
),
m_ui
(
new
Ui
::
DebugConsole
)
...
...
src/ui/DebugConsole.h
View file @
03e904d5
...
...
@@ -137,9 +137,9 @@ protected:
quint64
lastLineBuffer
;
///< Last line buffer emission time
QTimer
lineBufferTimer
;
///< Line buffer timer
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
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)
QStringList
commandHistory
;
QString
currCommand
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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