mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-15 19:55:47 +00:00
Added two Carrier_rotate correlator utilities
1) Carrier_rotate_and_EPL_volk This is a very efficient VOLK based carrier wipeoff and Early/Prompt/Late correlation. The carrier wipe off is done using the VOLK rotator functions, which means there is no need to generate a local replica sinusoid. 2) Carrier_rotate_and_VEPL_Volk This adds Very Early/Early/Prompt/Late/Very Late correlation with the VOLK rotator implementation of carrier wipe-off
This commit is contained in:
parent
e6d5fe35ea
commit
b95219dbc6
@ -151,3 +151,50 @@ void Correlator::Carrier_wipeoff_and_EPL_volk_custom(int signal_length_samples,
|
||||
volk_cw_epl_corr_u(input, carrier, E_code, P_code, L_code, E_out, P_out, L_out, signal_length_samples);
|
||||
}
|
||||
#endif
|
||||
void Correlator::Carrier_rotate_and_EPL_volk(int signal_length_samples,
|
||||
const gr_complex* input,
|
||||
gr_complex *phase_as_complex,
|
||||
gr_complex phase_inc_as_complex,
|
||||
const gr_complex* E_code,
|
||||
const gr_complex* P_code,
|
||||
const gr_complex* L_code,
|
||||
gr_complex* E_out,
|
||||
gr_complex* P_out,
|
||||
gr_complex* L_out )
|
||||
{
|
||||
gr_complex* bb_signal = static_cast<gr_complex*>(volk_malloc(signal_length_samples * sizeof(gr_complex), volk_get_alignment()));
|
||||
|
||||
volk_32fc_s32fc_x2_rotator_32fc(bb_signal, input, phase_inc_as_complex, phase_as_complex, signal_length_samples);
|
||||
volk_32fc_x2_dot_prod_32fc(E_out, bb_signal, E_code, signal_length_samples);
|
||||
volk_32fc_x2_dot_prod_32fc(P_out, bb_signal, P_code, signal_length_samples);
|
||||
volk_32fc_x2_dot_prod_32fc(L_out, bb_signal, L_code, signal_length_samples);
|
||||
|
||||
volk_free(bb_signal);
|
||||
}
|
||||
|
||||
void Correlator::Carrier_rotate_and_VEPL_volk(int signal_length_samples,
|
||||
const gr_complex* input,
|
||||
gr_complex *phase_as_complex,
|
||||
gr_complex phase_inc_as_complex,
|
||||
const gr_complex* VE_code,
|
||||
const gr_complex* E_code,
|
||||
const gr_complex* P_code,
|
||||
const gr_complex* L_code,
|
||||
const gr_complex* VL_code,
|
||||
gr_complex* VE_out,
|
||||
gr_complex* E_out,
|
||||
gr_complex* P_out,
|
||||
gr_complex* L_out,
|
||||
gr_complex* VL_out )
|
||||
{
|
||||
gr_complex* bb_signal = static_cast<gr_complex*>(volk_malloc(signal_length_samples * sizeof(gr_complex), volk_get_alignment()));
|
||||
|
||||
volk_32fc_s32fc_x2_rotator_32fc(bb_signal, input, phase_inc_as_complex, phase_as_complex, signal_length_samples);
|
||||
volk_32fc_x2_dot_prod_32fc(VE_out, bb_signal, VE_code, signal_length_samples);
|
||||
volk_32fc_x2_dot_prod_32fc(E_out, bb_signal, E_code, signal_length_samples);
|
||||
volk_32fc_x2_dot_prod_32fc(P_out, bb_signal, P_code, signal_length_samples);
|
||||
volk_32fc_x2_dot_prod_32fc(L_out, bb_signal, L_code, signal_length_samples);
|
||||
volk_32fc_x2_dot_prod_32fc(VL_out, bb_signal, VL_code, signal_length_samples);
|
||||
|
||||
volk_free(bb_signal);
|
||||
}
|
||||
|
@ -67,6 +67,32 @@ public:
|
||||
void Carrier_wipeoff_and_EPL_volk_custom(int signal_length_samples, const gr_complex* input, gr_complex* carrier, gr_complex* E_code, gr_complex* P_code, gr_complex* L_code, gr_complex* E_out, gr_complex* P_out, gr_complex* L_out);
|
||||
#endif
|
||||
|
||||
void Carrier_rotate_and_EPL_volk(int signal_length_samples,
|
||||
const gr_complex* input,
|
||||
gr_complex *phase_as_complex,
|
||||
gr_complex phase_inc_as_complex,
|
||||
const gr_complex* E_code,
|
||||
const gr_complex* P_code,
|
||||
const gr_complex* L_code,
|
||||
gr_complex* E_out,
|
||||
gr_complex* P_out,
|
||||
gr_complex* L_out );
|
||||
|
||||
void Carrier_rotate_and_VEPL_volk(int signal_length_samples,
|
||||
const gr_complex* input,
|
||||
gr_complex *phase_as_complex,
|
||||
gr_complex phase_inc_as_complex,
|
||||
const gr_complex* VE_code,
|
||||
const gr_complex* E_code,
|
||||
const gr_complex* P_code,
|
||||
const gr_complex* L_code,
|
||||
const gr_complex* VL_code,
|
||||
gr_complex* VE_out,
|
||||
gr_complex* E_out,
|
||||
gr_complex* P_out,
|
||||
gr_complex* L_out,
|
||||
gr_complex* VL_out );
|
||||
|
||||
private:
|
||||
unsigned long next_power_2(unsigned long v);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user