1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-09-11 07:16:05 +00:00

Added IF freq to update_local_carrier in DE

Note that this is not used at present, but important to treat non-zero
IF properly in case we need to revert to using the local carrier instead
of the gnuradio rotator (for example if we use 16 bit ints as input)
This commit is contained in:
Cillian O'Driscoll
2015-10-22 10:35:35 +01:00
parent e1537ed4cd
commit e33c2edb01

View File

@@ -323,7 +323,7 @@ void galileo_e1_de_tracking_cc::update_local_code()
void galileo_e1_de_tracking_cc::update_local_carrier()
{
float sin_f, cos_f;
float phase_step_rad = static_cast<float>(2 * GALILEO_PI) * d_carrier_doppler_hz / static_cast<float>(d_fs_in);
float phase_step_rad = static_cast<float>(2 * GALILEO_PI) * ( d_if_freq + d_carrier_doppler_hz ) / static_cast<float>(d_fs_in);
int phase_step_rad_i = gr::fxpt::float_to_fixed(phase_step_rad);
int phase_rad_i = gr::fxpt::float_to_fixed(d_rem_carr_phase_rad);