18 #ifndef INCLUDE_FREQTRACKER_H 19 #define INCLUDE_FREQTRACKER_H 23 #include <QNetworkRequest> 41 class QNetworkAccessManager;
93 m_sampleRate(sampleRate),
94 m_centerFrequency(centerFrequency)
112 m_sampleRate(sampleRate),
113 m_frequencyOffset(frequencyOffset)
124 virtual void feed(
const SampleVector::const_iterator& begin,
const SampleVector::const_iterator& end,
bool po);
125 virtual void start();
142 (void) sinkElseSource;
148 QString& errorMessage);
152 const QStringList& channelSettingsKeys,
154 QString& errorMessage);
158 QString& errorMessage);
264 #endif // INCLUDE_FREQTRACKER_H
void applySettings(const FreqTrackerSettings &settings, bool force=false)
virtual void getIdentifier(QString &id)
FreqTracker(DeviceAPI *deviceAPI)
virtual void getTitle(QString &title)
int getFrequencyOffset() const
virtual qint64 getCenterFrequency() const
Applies to a default stream.
ThreadedBasebandSampleSink * m_threadedChannelizer
MsgSampleRateNotification(int sampleRate, int frequencyOffset)
void webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings &response, const FreqTrackerSettings &settings)
void webapiFormatChannelReport(SWGSDRangel::SWGChannelReport &response)
static MsgSampleRateNotification * create(int sampleRate, int frequencyOffset)
int getSampleRate() const
uint32_t m_deviceSampleRate
void getMagSqLevels(double &avg, double &peak, int &nbSamples)
bool getPllLocked() const
uint32_t m_squelchGate
Squelch gate in samples.
static const QString m_channelIdURI
qint32 m_inputFrequencyOffset
MovingAverageUtil< Real, double, 16 > m_movingAverage
virtual void feed(const SampleVector::const_iterator &begin, const SampleVector::const_iterator &end, bool po)
Real m_interpolatorDistance
virtual int getNbSourceStreams() const
static const QString m_channelId
#define MESSAGE_CLASS_DECLARATION
TrackerType m_trackerType
bool getSquelchOpen() const
uint32_t getSampleRate() const
void processOneSample(Complex &ci)
int m_inputFrequencyOffset
virtual QByteArray serialize() const
virtual bool handleMessage(const Message &cmd)
Processing of a message. Returns true if message has actually been processed.
Interpolator m_interpolator
FreqTrackerSettings m_settings
static const int m_udpBlockSize
virtual bool deserialize(const QByteArray &data)
virtual qint64 getStreamCenterFrequency(int streamIndex, bool sinkElseSource) const
void networkManagerFinished(QNetworkReply *reply)
virtual int webapiSettingsGet(SWGSDRangel::SWGChannelSettings &response, QString &errorMessage)
void webapiReverseSendSettings(QList< QString > &channelSettingsKeys, const FreqTrackerSettings &settings, bool force)
MagSqLevelsStore m_magSqLevelStore
Real m_interpolatorDistanceRemain
virtual int getNbSinkStreams() const
void configureChannelizer()
uint32_t m_channelSampleRate
Real getFrequency() const
std::complex< Real > Complex
DownChannelizer * m_channelizer
Real getAvgDeltaFreq() const
QNetworkAccessManager * m_networkManager
QNetworkRequest m_networkRequest
void applyChannelSettings(int inputSampleRate, int inputFrequencyOffset, bool force=false)
virtual int webapiSettingsPutPatch(bool force, const QStringList &channelSettingsKeys, SWGSDRangel::SWGChannelSettings &response, QString &errorMessage)
virtual int webapiReportGet(SWGSDRangel::SWGChannelReport &response, QString &errorMessage)