24 #ifndef SDRBASE_DSP_PHASELOCKCOMPLEX_H_ 25 #define SDRBASE_DSP_PHASELOCKCOMPLEX_H_ 44 void setPskOrder(
unsigned int order);
46 void setSampleRate(
unsigned int sampleRate);
49 void feed(
float re,
float im);
50 const std::complex<float>&
getComplex()
const {
return m_y; }
53 bool locked()
const {
return m_pskOrder > 1 ? m_lockCount > 10 : m_lockCount > m_lockTime-2; }
62 ExpAvg() : m_a0(0.999), m_a1(0.001), m_y1(0.0f)
71 float y = m_a1*x + m_a0*m_y1;
82 static float normalizeAngle(
float angle);
96 std::complex<float>
m_y;
97 std::complex<float>
m_p;
float getDeltaPhi() const
std::complex< float > m_y
const std::complex< float > & getComplex() const
void setAlpha(const float &alpha)
std::complex< float > m_p
float feed(const float &x)