mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-06-27 15:42:53 +00:00
Fixing phase
This commit is contained in:
parent
90ae04ee19
commit
454d0c0208
@ -38,7 +38,7 @@
|
|||||||
void complex_exp_gen(std::complex<float>* _dest, double _f, double _fs, unsigned int _samps)
|
void complex_exp_gen(std::complex<float>* _dest, double _f, double _fs, unsigned int _samps)
|
||||||
{
|
{
|
||||||
gr::fxpt_nco d_nco;
|
gr::fxpt_nco d_nco;
|
||||||
d_nco.set_freq(-(GPS_TWO_PI * _f) / _fs);
|
d_nco.set_freq((GPS_TWO_PI * _f) / _fs);
|
||||||
d_nco.sincos(_dest, _samps, 1);
|
d_nco.sincos(_dest, _samps, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user