- TimingGenerator controls decimation
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@1090 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -108,7 +108,7 @@ class TimingGeneratorGardner : public Interpolation::TimingGenerator
|
|||||||
|
|
||||||
virtual ~TimingGeneratorGardner() = default;
|
virtual ~TimingGeneratorGardner() = default;
|
||||||
|
|
||||||
void process(ComplexScalar const &iq)
|
bool process(ComplexScalar const &iq)
|
||||||
{
|
{
|
||||||
// @2 x symbolrate
|
// @2 x symbolrate
|
||||||
// Symbol timing recovery
|
// Symbol timing recovery
|
||||||
@@ -124,6 +124,9 @@ class TimingGeneratorGardner : public Interpolation::TimingGenerator
|
|||||||
is_time = not is_time;
|
is_time = not is_time;
|
||||||
|
|
||||||
update(m_dOmega);
|
update(m_dOmega);
|
||||||
|
|
||||||
|
// Control producing of samples for decimatiion
|
||||||
|
return not is_time;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -187,6 +190,8 @@ void test()
|
|||||||
remain -= size;
|
remain -= size;
|
||||||
n += size;
|
n += size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Save timing aligned data @1sps
|
||||||
wavSave("out.wav", header, iq_out);
|
wavSave("out.wav", header, iq_out);
|
||||||
cout << "End of program" << endl;
|
cout << "End of program" << endl;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user