diff --git a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.cc b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.cc index d73b03caa..c0e754f0f 100644 --- a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.cc +++ b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.cc @@ -1023,16 +1023,16 @@ void dll_pll_veml_tracking::run_dll_pll() } -void dll_pll_veml_tracking::check_carrier_phase_coherent_initialization(uint64_t sample_counter) +void dll_pll_veml_tracking::check_carrier_phase_coherent_initialization() { if (d_acc_carrier_phase_initialized == false) { - double T_rx = static_cast(sample_counter) / trk_parameters.fs_in; d_acc_carrier_phase_rad = -d_rem_carr_phase_rad; d_acc_carrier_phase_initialized = true; } } + void dll_pll_veml_tracking::clear_tracking_vars() { std::fill_n(d_correlator_outs.begin(), d_n_correlator_taps, gr_complex(0.0, 0.0)); @@ -1831,7 +1831,6 @@ int dll_pll_veml_tracking::general_work(int noutput_items __attribute__((unused) do_correlation_step(in); save_correlation_results(); - // check lock status if (!cn0_and_tracking_lock_status(d_code_period * static_cast(trk_parameters.extend_correlation_symbols))) { @@ -1842,7 +1841,7 @@ int dll_pll_veml_tracking::general_work(int noutput_items __attribute__((unused) { run_dll_pll(); update_tracking_vars(); - check_carrier_phase_coherent_initialization(d_sample_counter + static_cast(d_current_prn_length_samples)); + check_carrier_phase_coherent_initialization(); if (d_current_data_symbol == 0) { // enable write dump file this cycle (valid DLL/PLL cycle) diff --git a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.h b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.h index b9bb44cb6..1fbd98bb1 100644 --- a/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.h +++ b/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking.h @@ -72,14 +72,13 @@ private: bool acquire_secondary(); void do_correlation_step(const gr_complex *input_samples); void run_dll_pll(); + void check_carrier_phase_coherent_initialization(); void update_tracking_vars(); void clear_tracking_vars(); void save_correlation_results(); void log_data(); int32_t save_matfile(); - void check_carrier_phase_coherent_initialization(uint64_t sample_counter); - // tracking configuration vars Dll_Pll_Conf trk_parameters; bool d_veml;