1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-12 05:13:04 +00:00

refactoring: removed unnecessary class members

This commit is contained in:
Alexander V. Joura
2022-09-07 19:58:23 +03:00
parent 45e1fa3ade
commit 1957ebfd42
2 changed files with 2 additions and 6 deletions

View File

@@ -74,8 +74,6 @@ gps_l1_ca_telemetry_decoder_gs::gps_l1_ca_telemetry_decoder_gs(
d_sample_counter(0ULL), d_sample_counter(0ULL),
d_preamble_index(0ULL), d_preamble_index(0ULL),
d_last_valid_preamble(0), d_last_valid_preamble(0),
d_bits_per_preamble(GPS_CA_PREAMBLE_LENGTH_BITS),
d_samples_per_preamble(GPS_CA_PREAMBLE_LENGTH_BITS),
d_preamble_period_symbols(GPS_SUBFRAME_BITS), d_preamble_period_symbols(GPS_SUBFRAME_BITS),
d_CRC_error_counter(0), d_CRC_error_counter(0),
d_channel(0), d_channel(0),
@@ -117,7 +115,7 @@ gps_l1_ca_telemetry_decoder_gs::gps_l1_ca_telemetry_decoder_gs(
// preamble bits to sampled symbols // preamble bits to sampled symbols
d_max_symbols_without_valid_frame = d_required_symbols * 20; // rise alarm 120 segs without valid tlm d_max_symbols_without_valid_frame = d_required_symbols * 20; // rise alarm 120 segs without valid tlm
int32_t n = 0; int32_t n = 0;
for (int32_t i = 0; i < d_bits_per_preamble; i++) for (int32_t i = 0; i < GPS_CA_PREAMBLE_LENGTH_BITS; i++)
{ {
if (GPS_CA_PREAMBLE[i] == '1') if (GPS_CA_PREAMBLE[i] == '1')
{ {
@@ -486,7 +484,7 @@ int gps_l1_ca_telemetry_decoder_gs::general_work(int noutput_items __attribute__
} }
} }
} }
if (abs(corr_value) >= d_samples_per_preamble) if (abs(corr_value) >= GPS_CA_PREAMBLE_LENGTH_BITS)
{ {
d_preamble_index = d_sample_counter; // record the preamble sample stamp d_preamble_index = d_sample_counter; // record the preamble sample stamp
if (corr_value < 0) if (corr_value < 0)

View File

@@ -92,8 +92,6 @@ private:
uint64_t d_preamble_index; uint64_t d_preamble_index;
uint64_t d_last_valid_preamble; uint64_t d_last_valid_preamble;
int32_t d_bits_per_preamble;
int32_t d_samples_per_preamble;
int32_t d_preamble_period_symbols; int32_t d_preamble_period_symbols;
int32_t d_CRC_error_counter; int32_t d_CRC_error_counter;
int32_t d_channel; int32_t d_channel;