From ceff78fbddd99be5ec780897d2e0e545ffdde658 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 23 May 2015 09:31:05 +0200 Subject: [PATCH] initializing members in the constructor --- ...eo_e5a_noncoherent_iq_acquisition_caf_cc.cc | 18 ++++++++++++++++-- .../galileo_pcps_8ms_acquisition_cc.cc | 11 +++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/src/algorithms/acquisition/gnuradio_blocks/galileo_e5a_noncoherent_iq_acquisition_caf_cc.cc b/src/algorithms/acquisition/gnuradio_blocks/galileo_e5a_noncoherent_iq_acquisition_caf_cc.cc index eb4aa4b18..35296c1a5 100644 --- a/src/algorithms/acquisition/gnuradio_blocks/galileo_e5a_noncoherent_iq_acquisition_caf_cc.cc +++ b/src/algorithms/acquisition/gnuradio_blocks/galileo_e5a_noncoherent_iq_acquisition_caf_cc.cc @@ -103,7 +103,7 @@ galileo_e5a_noncoherentIQ_acquisition_caf_cc::galileo_e5a_noncoherentIQ_acquisit d_input_power = 0.0; d_num_doppler_bins = 0; d_bit_transition_flag = bit_transition_flag; - d_buffer_count=0; + d_buffer_count = 0; d_both_signal_components = both_signal_components_; d_CAF_window_hz = CAF_window_hz_; @@ -137,6 +137,20 @@ galileo_e5a_noncoherentIQ_acquisition_caf_cc::galileo_e5a_noncoherentIQ_acquisit // For dumping samples into a file d_dump = dump; d_dump_filename = dump_filename; + + d_doppler_resolution = 0; + d_threshold = 0; + d_doppler_step = 250; + d_grid_doppler_wipeoffs = 0; + d_gnss_synchro = 0; + d_code_phase = 0; + d_doppler_freq = 0; + d_test_statistics = 0; + d_channel_internal_queue = 0; + d_CAF_vector_I = 0; + d_CAF_vector_Q = 0; + d_channel = 0; + d_gr_stream_buffer = 0; } galileo_e5a_noncoherentIQ_acquisition_caf_cc::~galileo_e5a_noncoherentIQ_acquisition_caf_cc() @@ -365,7 +379,7 @@ int galileo_e5a_noncoherentIQ_acquisition_caf_cc::general_work(int noutput_items // If buffer will be full in next iteration if (d_buffer_count >= d_fft_size - d_gr_stream_buffer) { - d_state=2; + d_state = 2; } d_buffer_count += buff_increment; d_sample_counter += buff_increment; // sample counter diff --git a/src/algorithms/acquisition/gnuradio_blocks/galileo_pcps_8ms_acquisition_cc.cc b/src/algorithms/acquisition/gnuradio_blocks/galileo_pcps_8ms_acquisition_cc.cc index fe9e0ac4b..f6b8e8fc5 100644 --- a/src/algorithms/acquisition/gnuradio_blocks/galileo_pcps_8ms_acquisition_cc.cc +++ b/src/algorithms/acquisition/gnuradio_blocks/galileo_pcps_8ms_acquisition_cc.cc @@ -92,6 +92,17 @@ galileo_pcps_8ms_acquisition_cc::galileo_pcps_8ms_acquisition_cc( // For dumping samples into a file d_dump = dump; d_dump_filename = dump_filename; + + d_doppler_resolution = 0; + d_threshold = 0; + d_doppler_step = 0; + d_grid_doppler_wipeoffs = 0; + d_gnss_synchro = 0; + d_code_phase = 0; + d_doppler_freq = 0; + d_test_statistics = 0; + d_channel_internal_queue = 0; + d_channel = 0; } galileo_pcps_8ms_acquisition_cc::~galileo_pcps_8ms_acquisition_cc()