summaryrefslogtreecommitdiff
path: root/gr-qtgui/src/lib/FrequencyDisplayPlot.h
diff options
context:
space:
mode:
authorTom Rondeau2010-05-01 19:06:13 -0400
committerTom Rondeau2010-05-01 19:06:13 -0400
commit6606af991b15174cbdbaca738669a21461b0fbe6 (patch)
tree1fc38aa738e8dccc675ac3da0938fbd3e992eca2 /gr-qtgui/src/lib/FrequencyDisplayPlot.h
parentf1b71c9525dd56e2c296a2bca4b2db9ed1a320ce (diff)
downloadgnuradio-6606af991b15174cbdbaca738669a21461b0fbe6.tar.gz
gnuradio-6606af991b15174cbdbaca738669a21461b0fbe6.tar.bz2
gnuradio-6606af991b15174cbdbaca738669a21461b0fbe6.zip
Fixes the replotting update. It's now based on a QTimer so it's in the event buffer as opposed to a best effort based on a hand-made timer. The interval between GUI updates is settable through the qtsink_X objects with set_update_time(newtime). This update makes the plotting much more stable. It also fixes the time scale of the waterfall plot to actually mean the right thing.
Diffstat (limited to 'gr-qtgui/src/lib/FrequencyDisplayPlot.h')
-rw-r--r--gr-qtgui/src/lib/FrequencyDisplayPlot.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/gr-qtgui/src/lib/FrequencyDisplayPlot.h b/gr-qtgui/src/lib/FrequencyDisplayPlot.h
index 785efe694..c78e1667e 100644
--- a/gr-qtgui/src/lib/FrequencyDisplayPlot.h
+++ b/gr-qtgui/src/lib/FrequencyDisplayPlot.h
@@ -30,7 +30,7 @@ public:
void PlotNewData(const double* dataPoints, const int64_t numDataPoints,
const double noiseFloorAmplitude, const double peakFrequency,
- const double peakAmplitude);
+ const double peakAmplitude, const double timeInterval);
void ClearMaxData();
void ClearMinData();
@@ -86,8 +86,6 @@ private:
timespec _lastReplot;
bool _useCenterFrequencyFlag;
-
- double _displayIntervalTime;
};
#endif /* FREQUENCY_DISPLAY_PLOT_HPP */