mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-29 18:34:51 +00:00
Improved prn length estimation when performing extended correlation in the FPGA.
This commit is contained in:
parent
afb2eb16c6
commit
0e9fc67e0e
@ -1860,8 +1860,8 @@ int dll_pll_veml_tracking_fpga::general_work(int noutput_items __attribute__((un
|
|||||||
// this must be computed for the secondary prn code
|
// this must be computed for the secondary prn code
|
||||||
if (d_secondary)
|
if (d_secondary)
|
||||||
{
|
{
|
||||||
uint32_t first_prn_length = d_current_integration_length_samples - (d_fpga_integration_period - 1) * static_cast<int32_t>(std::floor(T_prn_samples));
|
uint32_t next_prn_length = d_current_integration_length_samples/d_fpga_integration_period;
|
||||||
uint32_t next_prn_length = static_cast<int32_t>(std::floor(T_prn_samples));
|
uint32_t first_prn_length = d_current_integration_length_samples - next_prn_length*(d_fpga_integration_period - 1);
|
||||||
|
|
||||||
multicorrelator_fpga->update_prn_code_length(first_prn_length, next_prn_length);
|
multicorrelator_fpga->update_prn_code_length(first_prn_length, next_prn_length);
|
||||||
}
|
}
|
||||||
@ -1913,8 +1913,8 @@ int dll_pll_veml_tracking_fpga::general_work(int noutput_items __attribute__((un
|
|||||||
// this must be computed for the secondary prn code
|
// this must be computed for the secondary prn code
|
||||||
if (d_secondary)
|
if (d_secondary)
|
||||||
{
|
{
|
||||||
uint32_t first_prn_length = d_current_integration_length_samples - (d_fpga_integration_period - 1) * static_cast<int32_t>(std::floor(T_prn_samples));
|
uint32_t next_prn_length = d_current_integration_length_samples/d_fpga_integration_period;
|
||||||
uint32_t next_prn_length = static_cast<int32_t>(std::floor(T_prn_samples));
|
uint32_t first_prn_length = d_current_integration_length_samples - next_prn_length*(d_fpga_integration_period - 1);
|
||||||
|
|
||||||
multicorrelator_fpga->update_prn_code_length(first_prn_length, next_prn_length);
|
multicorrelator_fpga->update_prn_code_length(first_prn_length, next_prn_length);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user