discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] atsc_cpll *almost* works


From: Achilleas Anastasopoulos
Subject: [Discuss-gnuradio] atsc_cpll *almost* works
Date: Thu, 22 May 2008 11:41:37 -0400
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Chuck,

Isn't this line

>   gr_complex filtered_IQ = afc.filter(gr_complex(I,Q));

supposed to be

>   gr_complex filtered_IQ = afc.filter(IQ);

instead?

Achilleas

Almost working:

  gr_complex input = agc.scale(in[k]);
  gr_sincosf(d_phase,&a_sin,&a_cos);

  gr_complex IQ = input * gr_complex(a_cos,-a_sin);

  out[k] = IQ.real();
  gr_complex filtered_IQ = afc.filter(gr_complex(I,Q));
  float x = phase_detector(filtered_IQ,0);
  static const float alpha = 0.001;
  static const float beta = alpha * alpha / 4;
  d_freq = d_freq + beta * x;
  d_phase = mod_2pi(d_phase + d_freq + alpha * x);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]