1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 04:30:33 +00:00

Fix inverted spectrum in unpack gss6450 block

This commit is contained in:
Javier Arribas 2018-08-01 12:13:54 +02:00
parent 7697263a03
commit 752b4396d0

View File

@ -90,8 +90,10 @@ int unpack_spir_gss6450_samples::work(int noutput_items,
i_data[k] = bs[i_shift + k]; i_data[k] = bs[i_shift + k];
q_data[k] = bs[q_shift + k]; q_data[k] = bs[q_shift + k];
} }
out[i] = gr_complex(static_cast<float>(compute_two_complement(i_data.to_ulong())) + 0.5, //out[i] = gr_complex(static_cast<float>(compute_two_complement(i_data.to_ulong())) + 0.5,
static_cast<float>(compute_two_complement(q_data.to_ulong())) + 0.5); // static_cast<float>(compute_two_complement(q_data.to_ulong())) + 0.5);
out[i] = gr_complex(static_cast<float>(compute_two_complement(q_data.to_ulong())) + 0.5,
static_cast<float>(compute_two_complement(i_data.to_ulong())) + 0.5);
n_sample++; n_sample++;
if (n_sample == samples_per_int) if (n_sample == samples_per_int)
{ {