29 static const int pilot_frequency = 19000;
60 void configure(
Real freq,
Real bandwidth,
Real minsignal);
67 void process(
const std::vector<Real>& samples_in, std::vector<Real>& samples_out);
76 void process(
const Real& sample_in,
Real *samples_out);
77 void process(
const Real& real_in,
const Real& imag_in,
Real *samples_out);
82 return m_lock_cnt >= m_lock_delay;
88 return 2 * m_pilot_level;
117 void process_phasor(
Real& phasor_i,
Real& phasor_q);
133 samples_out[0] = m_psin;
134 samples_out[1] = m_pcos;
151 samples_out[0] = m_psin;
154 samples_out[1] = 2.0 * m_psin * m_pcos;
156 samples_out[2] = (2.0 * m_pcos * m_pcos) - 1.0;
174 samples_out[0] = m_psin;
177 samples_out[1] = 2.0 * m_psin * m_pcos;
179 samples_out[2] = (2.0 * m_pcos * m_pcos) - 1.0;
180 samples_out[3] = m_phase;
virtual void processPhase(Real *samples_out) const
SimplePhaseLock(Real freq, Real bandwidth, Real minsignal)
std::vector< PpsEvent > m_pps_events
virtual ~SimplePhaseLock()
Real get_pilot_level() const
virtual void processPhase(Real *samples_out) const
virtual void processPhase(Real *samples_out) const
RDSPhaseLock(Real freq, Real bandwidth, Real minsignal)
virtual void processPhase(Real *samples_out) const
virtual ~StereoPhaseLock()
StereoPhaseLock(Real freq, Real bandwidth, Real minsignal)