- 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:
2022-06-26 20:46:52 +00:00
parent 55774978a5
commit fe4adae75b
+6 -1
View File
@@ -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;