From 382034553938e5fec93231a1faac337c8b941b89 Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 19 Dec 2016 08:26:48 +0100 Subject: [PATCH] Channel Analyzer: use precision NCO --- plugins/channelrx/chanalyzer/chanalyzer.cpp | 1 - plugins/channelrx/chanalyzer/chanalyzer.h | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/channelrx/chanalyzer/chanalyzer.cpp b/plugins/channelrx/chanalyzer/chanalyzer.cpp index 3fbbc8528..bf3da6141 100644 --- a/plugins/channelrx/chanalyzer/chanalyzer.cpp +++ b/plugins/channelrx/chanalyzer/chanalyzer.cpp @@ -35,7 +35,6 @@ ChannelAnalyzer::ChannelAnalyzer(BasebandSampleSink* sampleSink) : m_sampleRate = 96000; m_frequency = 0; m_nco.setFreq(m_frequency, m_sampleRate); - m_nco_test.setFreq(m_frequency, m_sampleRate); m_undersampleCount = 0; m_sum = 0; m_usb = true; diff --git a/plugins/channelrx/chanalyzer/chanalyzer.h b/plugins/channelrx/chanalyzer/chanalyzer.h index a2003e6fe..adc2c1361 100644 --- a/plugins/channelrx/chanalyzer/chanalyzer.h +++ b/plugins/channelrx/chanalyzer/chanalyzer.h @@ -20,7 +20,7 @@ #include #include #include -#include "dsp/nco.h" +#include "dsp/ncof.h" #include "dsp/fftfilt.h" #include "audio/audiofifo.h" #include "util/message.h" @@ -93,8 +93,7 @@ private: bool m_ssb; Real m_magsq; - NCO m_nco; - NCO m_nco_test; + NCOF m_nco; fftfilt* SSBFilter; fftfilt* DSBFilter;