diff --git a/src/algorithms/libs/galileo_e1_signal_processing.cc b/src/algorithms/libs/galileo_e1_signal_processing.cc index ac423e594..537776368 100644 --- a/src/algorithms/libs/galileo_e1_signal_processing.cc +++ b/src/algorithms/libs/galileo_e1_signal_processing.cc @@ -212,7 +212,7 @@ void galileo_e1_code_gen_float_sampled(gsl::span _dest, const std::array< { for (unsigned k = 0; k < _samplesPerCode; k++) { - _signal_E1C_secondary_span[i * _samplesPerCode + k] = _signal_E1_span_aux[k] * (GALILEO_E1_C_SECONDARY_CODE.at(i) == '0' ? 1.0F : -1.0F); + _signal_E1C_secondary_span[i * _samplesPerCode + k] = _signal_E1_span_aux[k] * (GALILEO_E1_C_SECONDARY_CODE[i] == '0' ? 1.0F : -1.0F); } } diff --git a/src/algorithms/libs/galileo_e5_signal_processing.cc b/src/algorithms/libs/galileo_e5_signal_processing.cc index 3e5345bf0..faec6ff05 100644 --- a/src/algorithms/libs/galileo_e5_signal_processing.cc +++ b/src/algorithms/libs/galileo_e5_signal_processing.cc @@ -4,8 +4,6 @@ * as replica code generation * \author Marc Sales, 2014. marcsales92(at)gmail.com * - * Detailed description of the file here if needed. - * * ------------------------------------------------------------------------- * * Copyright (C) 2010-2019 (see AUTHORS file for a list of contributors) @@ -52,7 +50,7 @@ void galileo_e5_a_code_gen_complex_primary(gsl::span> _dest, { for (size_t i = 0; i < GALILEO_E5A_Q_PRIMARY_CODE[prn].length() - 1; i++) { - hex_to_binary_converter(a, GALILEO_E5A_Q_PRIMARY_CODE[prn].at(i)); + hex_to_binary_converter(a, GALILEO_E5A_Q_PRIMARY_CODE[prn][i]); _dest[index] = std::complex(0.0, static_cast(a[0])); _dest[index + 1] = std::complex(0.0, static_cast(a[1])); _dest[index + 2] = std::complex(0.0, static_cast(a[2])); @@ -60,7 +58,7 @@ void galileo_e5_a_code_gen_complex_primary(gsl::span> _dest, index = index + 4; } // last 2 bits are filled up zeros - hex_to_binary_converter(a, GALILEO_E5A_Q_PRIMARY_CODE[prn].at(GALILEO_E5A_Q_PRIMARY_CODE[prn].length() - 1)); + hex_to_binary_converter(a, GALILEO_E5A_Q_PRIMARY_CODE[prn][GALILEO_E5A_Q_PRIMARY_CODE[prn].length() - 1]); _dest[index] = std::complex(0.0, static_cast(a[0])); _dest[index + 1] = std::complex(0.0, static_cast(a[1])); } @@ -68,7 +66,7 @@ void galileo_e5_a_code_gen_complex_primary(gsl::span> _dest, { for (size_t i = 0; i < GALILEO_E5A_I_PRIMARY_CODE[prn].length() - 1; i++) { - hex_to_binary_converter(a, GALILEO_E5A_I_PRIMARY_CODE[prn].at(i)); + hex_to_binary_converter(a, GALILEO_E5A_I_PRIMARY_CODE[prn][i]); _dest[index] = std::complex(static_cast(a[0]), 0.0); _dest[index + 1] = std::complex(static_cast(a[1]), 0.0); _dest[index + 2] = std::complex(static_cast(a[2]), 0.0); @@ -76,7 +74,7 @@ void galileo_e5_a_code_gen_complex_primary(gsl::span> _dest, index = index + 4; } // last 2 bits are filled up zeros - hex_to_binary_converter(a, GALILEO_E5A_I_PRIMARY_CODE[prn].at(GALILEO_E5A_I_PRIMARY_CODE[prn].length() - 1)); + hex_to_binary_converter(a, GALILEO_E5A_I_PRIMARY_CODE[prn][GALILEO_E5A_I_PRIMARY_CODE[prn].length() - 1]); _dest[index] = std::complex(static_cast(a[0]), 0.0); _dest[index + 1] = std::complex(static_cast(a[1]), 0.0); } @@ -85,8 +83,8 @@ void galileo_e5_a_code_gen_complex_primary(gsl::span> _dest, std::array b{}; for (size_t i = 0; i < GALILEO_E5A_I_PRIMARY_CODE[prn].length() - 1; i++) { - hex_to_binary_converter(a, GALILEO_E5A_I_PRIMARY_CODE[prn].at(i)); - hex_to_binary_converter(b, GALILEO_E5A_Q_PRIMARY_CODE[prn].at(i)); + hex_to_binary_converter(a, GALILEO_E5A_I_PRIMARY_CODE[prn][i]); + hex_to_binary_converter(b, GALILEO_E5A_Q_PRIMARY_CODE[prn][i]); _dest[index] = std::complex(static_cast(a[0]), static_cast(b[0])); _dest[index + 1] = std::complex(static_cast(a[1]), static_cast(b[1])); _dest[index + 2] = std::complex(static_cast(a[2]), static_cast(b[2])); @@ -94,8 +92,8 @@ void galileo_e5_a_code_gen_complex_primary(gsl::span> _dest, index = index + 4; } // last 2 bits are filled up zeros - hex_to_binary_converter(a, GALILEO_E5A_I_PRIMARY_CODE[prn].at(GALILEO_E5A_I_PRIMARY_CODE[prn].length() - 1)); - hex_to_binary_converter(b, GALILEO_E5A_Q_PRIMARY_CODE[prn].at(GALILEO_E5A_Q_PRIMARY_CODE[prn].length() - 1)); + hex_to_binary_converter(a, GALILEO_E5A_I_PRIMARY_CODE[prn][GALILEO_E5A_I_PRIMARY_CODE[prn].length() - 1]); + hex_to_binary_converter(b, GALILEO_E5A_Q_PRIMARY_CODE[prn][GALILEO_E5A_Q_PRIMARY_CODE[prn].length() - 1]); _dest[index] = std::complex(static_cast(a[0]), static_cast(b[0])); _dest[index + 1] = std::complex(static_cast(a[1]), static_cast(b[1])); }