- removed omega from TimingGenerator

git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@986 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2022-06-15 14:55:34 +00:00
parent e513ae7e40
commit 6b7ed6e41e
2 changed files with 5 additions and 13 deletions
+4 -10
View File
@@ -6,8 +6,7 @@ namespace Radio
namespace Interpolation namespace Interpolation
{ {
TimingGenerator::TimingGenerator() TimingGenerator::TimingGenerator()
: m_omega(1) : m_mu(0)
, m_mu(0)
, m_adv(0) , m_adv(0)
{ {
} }
@@ -17,20 +16,15 @@ TimingGenerator::~TimingGenerator()
} }
void TimingGenerator::setOmega(radio_float_t omega)
{
m_omega = omega;
}
void TimingGenerator::process(ComplexScalar const &iq) void TimingGenerator::process(ComplexScalar const &iq)
{ {
(void)iq; (void)iq;
update(); update(1.0);
} }
void TimingGenerator::update() void TimingGenerator::update(radio_float_t omega)
{ {
m_mu += m_omega; m_mu += omega;
m_adv = (size_t)m_mu; m_adv = (size_t)m_mu;
m_mu -= m_adv; m_mu -= m_adv;
} }
+1 -3
View File
@@ -20,15 +20,13 @@ public:
size_t getAdv() const; size_t getAdv() const;
radio_float_t getMu() const; radio_float_t getMu() const;
void setOmega(radio_float_t omega);
virtual void process(ComplexScalar const &iq); virtual void process(ComplexScalar const &iq);
protected: protected:
radio_float_t m_omega;
radio_float_t m_mu; radio_float_t m_mu;
size_t m_adv; size_t m_adv;
void update(); void update(radio_float_t omega);
}; };
} // Interpolation } // Interpolation