Commit 03e904d5 authored by Bryant Mairs's avatar Bryant Mairs

Moved configuration constants in DebugConsole to proper static const types.

parent 2955d352
...@@ -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.0f), lowpassInDataRate(0.0f),
inDataRateThreshold(0.4),
lowpassOutDataRate(0.0f), lowpassOutDataRate(0.0f),
commandIndex(0), commandIndex(0),
m_ui(new Ui::DebugConsole) m_ui(new Ui::DebugConsole)
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment