1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-12 22:43:36 -04:00

Channel analyzer: in the scope+spectrum combo show the spectrum of the scope captured data possibly triggered and not just the free running spectrum of the channel

This commit is contained in:
f4exb
2015-07-15 01:19:39 +02:00
parent 72e461d17b
commit 347360db90
5 changed files with 45 additions and 1 deletions
+2
View File
@@ -32,6 +32,7 @@ public:
void setSampleRate(int sampleRate);
int getSampleRate() const { return m_sampleRate; }
SampleVector::const_iterator getTriggerPoint() const { return m_triggerPoint; }
private:
class MsgConfigureScopeVis : public Message {
@@ -76,6 +77,7 @@ private:
bool m_triggerOneShot;
bool m_armed;
int m_sampleRate;
SampleVector::const_iterator m_triggerPoint;
bool triggerCondition(SampleVector::const_iterator& it);
};
+2
View File
@@ -17,6 +17,7 @@ public:
void configure(MessageQueue* msgQueue, int fftSize, int overlapPercent, FFTWindow::Function window);
void feed(SampleVector::const_iterator begin, SampleVector::const_iterator end, bool positiveOnly);
void feedTriggered(SampleVector::const_iterator triggerPoint, SampleVector::const_iterator begin, SampleVector::const_iterator end, bool positiveOnly);
void start();
void stop();
bool handleMessageKeep(Message* message);
@@ -34,6 +35,7 @@ private:
size_t m_overlapSize;
size_t m_refillSize;
size_t m_fftBufferFill;
bool m_needMoreSamples;
GLSpectrum* m_glSpectrum;