mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Made the changes.
This commit is contained in:
parent
2700c1c262
commit
bc0b32bc64
@ -130,7 +130,7 @@ void galileo_e5_a_code_gen_complex_sampled(own::span<std::complex<float>> _dest,
|
||||
|
||||
void galileo_e5_b_code_gen_complex_primary(own::span<std::complex<float>> _dest,
|
||||
int32_t _prn,
|
||||
const std::array<char, 4>& _Signal) // to differentiate between E5a and E5b signal
|
||||
const std::array<char, 3>& _Signal)
|
||||
{
|
||||
uint32_t prn = _prn - 1;
|
||||
uint32_t index = 0;
|
||||
@ -139,7 +139,7 @@ void galileo_e5_b_code_gen_complex_primary(own::span<std::complex<float>> _dest,
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (_Signal[0] == '5' && _Signal[1] == 'b' && _Signal[2] == 'Q')
|
||||
if (_Signal[0] == '5' && _Signal[1] == 'Q')
|
||||
{
|
||||
for (size_t i = 0; i < GALILEO_E5B_Q_PRIMARY_CODE[prn].length() - 1; i++)
|
||||
{
|
||||
@ -154,8 +154,10 @@ void galileo_e5_b_code_gen_complex_primary(own::span<std::complex<float>> _dest,
|
||||
hex_to_binary_converter(a, GALILEO_E5B_Q_PRIMARY_CODE[prn][GALILEO_E5B_Q_PRIMARY_CODE[prn].length() - 1]);
|
||||
_dest[index] = std::complex<float>(static_cast<float>(a[0]), 0.0);
|
||||
_dest[index + 1] = std::complex<float>(static_cast<float>(a[1]), 0.0);
|
||||
_dest[index + 2] = std::complex<float>(0.0, 0.0);
|
||||
_dest[index + 3] = std::complex<float>(0.0, 0.0);
|
||||
}
|
||||
else if (_Signal[0] == '5' && _Signal[1] == 'b' && _Signal[2] == 'I')
|
||||
else if (_Signal[0] == '5' && _Signal[1] == 'I')
|
||||
{
|
||||
for (size_t i = 0; i < GALILEO_E5B_I_PRIMARY_CODE[prn].length() - 1; i++)
|
||||
{
|
||||
@ -170,8 +172,10 @@ void galileo_e5_b_code_gen_complex_primary(own::span<std::complex<float>> _dest,
|
||||
hex_to_binary_converter(a, GALILEO_E5B_I_PRIMARY_CODE[prn][GALILEO_E5B_I_PRIMARY_CODE[prn].length() - 1]);
|
||||
_dest[index] = std::complex<float>(static_cast<float>(a[0]), 0.0);
|
||||
_dest[index + 1] = std::complex<float>(static_cast<float>(a[1]), 0.0);
|
||||
_dest[index + 2] = std::complex<float>(0.0, 0.0);
|
||||
_dest[index + 3] = std::complex<float>(0.0, 0.0);
|
||||
}
|
||||
else if (_Signal[0] == '5' && _Signal[1] == 'b' && _Signal[2] == 'X')
|
||||
else if (_Signal[0] == '5' && _Signal[1] == 'X')
|
||||
{
|
||||
std::array<int32_t, 4> b{};
|
||||
for (size_t i = 0; i < GALILEO_E5B_I_PRIMARY_CODE[prn].length() - 1; i++)
|
||||
@ -189,13 +193,15 @@ void galileo_e5_b_code_gen_complex_primary(own::span<std::complex<float>> _dest,
|
||||
hex_to_binary_converter(b, GALILEO_E5B_Q_PRIMARY_CODE[prn][GALILEO_E5B_Q_PRIMARY_CODE[prn].length() - 1]);
|
||||
_dest[index] = std::complex<float>(static_cast<float>(a[0]), static_cast<float>(b[0]));
|
||||
_dest[index + 1] = std::complex<float>(static_cast<float>(a[1]), static_cast<float>(b[1]));
|
||||
_dest[index + 2] = std::complex<float>(0.0, 0.0);
|
||||
_dest[index + 3] = std::complex<float>(0.0, 0.0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void galileo_e5_b_code_gen_complex_sampled(own::span<std::complex<float>> _dest,
|
||||
uint32_t _prn,
|
||||
const std::array<char, 4>& _Signal,
|
||||
const std::array<char, 3>& _Signal,
|
||||
int32_t _fs,
|
||||
uint32_t _chip_shift)
|
||||
{
|
||||
|
@ -59,7 +59,7 @@ void galileo_e5_a_code_gen_complex_sampled(own::span<std::complex<float>> _dest,
|
||||
*/
|
||||
void galileo_e5_b_code_gen_complex_primary(own::span<std::complex<float>> _dest,
|
||||
int32_t _prn,
|
||||
const std::array<char, 4>& _Signal);
|
||||
const std::array<char, 3>& _Signal);
|
||||
|
||||
|
||||
/*!
|
||||
@ -68,7 +68,7 @@ void galileo_e5_b_code_gen_complex_primary(own::span<std::complex<float>> _dest,
|
||||
*/
|
||||
void galileo_e5_b_code_gen_complex_sampled(own::span<std::complex<float>> _dest,
|
||||
uint32_t _prn,
|
||||
const std::array<char, 4>& _Signal,
|
||||
const std::array<char, 3>& _Signal,
|
||||
int32_t _fs,
|
||||
uint32_t _chip_shift);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user