From 46f68dfd8bfb81b5dbe05cce3459c030d61b1550 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 23 May 2015 11:50:11 +0200 Subject: [PATCH] initialize members in constructor --- .../galileo_e5a_telemetry_decoder_cc.cc | 11 ++++++++++- .../galileo_e5a_telemetry_decoder_cc.h | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_e5a_telemetry_decoder_cc.cc b/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_e5a_telemetry_decoder_cc.cc index 8f9ee1419..6df00099a 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_e5a_telemetry_decoder_cc.cc +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_e5a_telemetry_decoder_cc.cc @@ -247,7 +247,7 @@ galileo_e5a_telemetry_decoder_cc::galileo_e5a_telemetry_decoder_cc( // d_sample_counter = 0; d_state = 0; - d_preamble_lock=false; + d_preamble_lock = false; d_preamble_index = 0; d_preamble_time_seconds = 0; d_flag_frame_sync = false; @@ -260,6 +260,15 @@ galileo_e5a_telemetry_decoder_cc::galileo_e5a_telemetry_decoder_cc( d_CRC_error_counter = 0; d_sign_init = 0; + + d_flag_preamble = false; + d_ephemeris_queue = 0; + d_iono_queue = 0; + d_utc_model_queue = 0; + d_almanac_queue = 0; + d_channel = 0; + Prn_timestamp_at_preamble_ms = 0; + flag_TOW_set = false; } galileo_e5a_telemetry_decoder_cc::~galileo_e5a_telemetry_decoder_cc() diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_e5a_telemetry_decoder_cc.h b/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_e5a_telemetry_decoder_cc.h index 2b4fc55a7..4edb88492 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_e5a_telemetry_decoder_cc.h +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_e5a_telemetry_decoder_cc.h @@ -104,7 +104,7 @@ private: signed int d_preamble_bits[GALILEO_FNAV_PREAMBLE_LENGTH_BITS]; // signed int d_page_symbols[GALILEO_FNAV_SYMBOLS_PER_PAGE + GALILEO_FNAV_PREAMBLE_LENGTH_BITS]; double d_page_symbols[GALILEO_FNAV_SYMBOLS_PER_PAGE + GALILEO_FNAV_PREAMBLE_LENGTH_BITS]; - signed int *d_preamble_symbols; + // signed int *d_preamble_symbols; double d_current_symbol; long unsigned int d_symbol_counter; int d_prompt_counter;