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:
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user