Re: [Discuss-gnuradio] phase accumulator in gr_frequency_modulator_fc

2009-11-09 Thread Brian Padalino
2009/11/9 fangming he : >  Hi, All, > > I cannot understand why the phase accumulator should be limited to > [-16*pi,16*pi]. Please clarify it for me if you have some ideas on it. > > The following is the code in this class: >  if (fabs (d_phase) > 16 * M_PI){ >     double ii = trunc (d_phase / (2

[Discuss-gnuradio] phase accumulator in gr_frequency_modulator_fc

2009-11-09 Thread fangming he
Hi, All, I cannot understand why the phase accumulator should be limited to [-16*pi,16*pi]. Please clarify it for me if you have some ideas on it. The following is the code in this class: if (fabs (d_phase) > 16 * M_PI){ double ii = trunc (d_phase / (2 * M_PI)); d_phase = d_phase - (