From 60fea64b5e2069ad460ed5dd57222c7047d36d1b Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 14 Sep 2014 18:53:51 +0200 Subject: [PATCH] Code cleaning --- .../gnuradio_blocks/gps_l1_ca_dll_fll_pll_tracking_cc.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/algorithms/tracking/gnuradio_blocks/gps_l1_ca_dll_fll_pll_tracking_cc.cc b/src/algorithms/tracking/gnuradio_blocks/gps_l1_ca_dll_fll_pll_tracking_cc.cc index 888395664..7759bfa1b 100644 --- a/src/algorithms/tracking/gnuradio_blocks/gps_l1_ca_dll_fll_pll_tracking_cc.cc +++ b/src/algorithms/tracking/gnuradio_blocks/gps_l1_ca_dll_fll_pll_tracking_cc.cc @@ -351,7 +351,7 @@ int Gps_L1_Ca_Dll_Fll_Pll_Tracking_cc::general_work (int noutput_items, gr_vecto int samples_offset; double acq_trk_shif_correction_samples; int acq_to_trk_delay_samples; - acq_to_trk_delay_samples = d_sample_counter-d_acq_sample_stamp; + acq_to_trk_delay_samples = d_sample_counter - d_acq_sample_stamp; acq_trk_shif_correction_samples = d_current_prn_length_samples - fmod(static_cast(acq_to_trk_delay_samples), static_cast(d_current_prn_length_samples)); samples_offset = round(d_acq_code_phase_samples + acq_trk_shif_correction_samples); // /todo: Check if the sample counter sent to the next block as a time reference should be incremented AFTER sended or BEFORE @@ -403,7 +403,7 @@ int Gps_L1_Ca_Dll_Fll_Pll_Tracking_cc::general_work (int noutput_items, gr_vecto current_synchro_data.CN0_dB_hz = 0.0; current_synchro_data.Flag_valid_tracking = false; - *out[0] =current_synchro_data; + *out[0] = current_synchro_data; return 1; } @@ -490,7 +490,7 @@ int Gps_L1_Ca_Dll_Fll_Pll_Tracking_cc::general_work (int noutput_items, gr_vecto { if (floor(d_sample_counter/d_fs_in) != d_last_seg) { - d_last_seg = floor(d_sample_counter/d_fs_in); + d_last_seg = floor(d_sample_counter / d_fs_in); std::cout << "Current input signal time = " << d_last_seg << " [s]" << std::endl; LOG(INFO) << "Tracking CH " << d_channel << ": Satellite " << Gnss_Satellite(systemName[sys], d_acquisition_gnss_synchro->PRN) << ", CN0 = " << d_CN0_SNV_dB_Hz << " [dB-Hz]"; }