mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-10-31 23:26:22 +00:00
Merge branch 'next' of https://github.com/gnss-sdr/gnss-sdr into next
This commit is contained in:
commit
29d94b9d32
@ -44,7 +44,7 @@ GalileoE1PcpsAmbiguousAcquisitionFpga::GalileoE1PcpsAmbiguousAcquisitionFpga(
|
|||||||
out_streams_(out_streams),
|
out_streams_(out_streams),
|
||||||
acquire_pilot_(configuration->property(role + ".acquire_pilot", false))
|
acquire_pilot_(configuration->property(role + ".acquire_pilot", false))
|
||||||
{
|
{
|
||||||
acq_parameters_.SetFromConfiguration(configuration, role_, fpga_downsampling_factor, fpga_buff_num, fpga_blk_exp, GALILEO_E1_CODE_CHIP_RATE_CPS, GALILEO_E1_B_CODE_LENGTH_CHIPS);
|
acq_parameters_.SetFromConfiguration(configuration, role_, fpga_buff_num, fpga_blk_exp, GALILEO_E1_CODE_CHIP_RATE_CPS, GALILEO_E1_B_CODE_LENGTH_CHIPS);
|
||||||
|
|
||||||
if (FLAGS_doppler_max != 0)
|
if (FLAGS_doppler_max != 0)
|
||||||
{
|
{
|
||||||
|
@ -181,9 +181,8 @@ public:
|
|||||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const uint32_t fpga_downsampling_factor = 4; // downampling factor in the FPGA
|
static const uint32_t fpga_buff_num = 0; // L1/E1 band
|
||||||
static const uint32_t fpga_buff_num = 0; // L1/E1 band
|
static const uint32_t fpga_blk_exp = 13; // default block exponent
|
||||||
static const uint32_t fpga_blk_exp = 13; // default block exponent
|
|
||||||
|
|
||||||
// the following flags are FPGA-specific and they are using arrange the values of the fft of the local code in the way the FPGA
|
// the following flags are FPGA-specific and they are using arrange the values of the fft of the local code in the way the FPGA
|
||||||
// expects. This arrangement is done in the initialisation to avoid consuming unnecessary clock cycles during tracking.
|
// expects. This arrangement is done in the initialisation to avoid consuming unnecessary clock cycles during tracking.
|
||||||
|
@ -43,7 +43,7 @@ GalileoE5aPcpsAcquisitionFpga::GalileoE5aPcpsAcquisitionFpga(
|
|||||||
acq_pilot_(configuration->property(role + ".acquire_pilot", false)),
|
acq_pilot_(configuration->property(role + ".acquire_pilot", false)),
|
||||||
acq_iq_(configuration->property(role + ".acquire_iq", false))
|
acq_iq_(configuration->property(role + ".acquire_iq", false))
|
||||||
{
|
{
|
||||||
acq_parameters_.SetFromConfiguration(configuration, role_, fpga_downsampling_factor, fpga_buff_num, fpga_blk_exp, GALILEO_E5A_CODE_CHIP_RATE_CPS, GALILEO_E5A_CODE_LENGTH_CHIPS);
|
acq_parameters_.SetFromConfiguration(configuration, role_, fpga_buff_num, fpga_blk_exp, GALILEO_E5A_CODE_CHIP_RATE_CPS, GALILEO_E5A_CODE_LENGTH_CHIPS);
|
||||||
|
|
||||||
if (FLAGS_doppler_max != 0)
|
if (FLAGS_doppler_max != 0)
|
||||||
{
|
{
|
||||||
|
@ -188,9 +188,8 @@ public:
|
|||||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const uint32_t fpga_downsampling_factor = 1; // downampling factor in the FPGA
|
static const uint32_t fpga_buff_num = 1; // L5/E5a band
|
||||||
static const uint32_t fpga_buff_num = 1; // L5/E5a band
|
static const uint32_t fpga_blk_exp = 13; // default block exponent
|
||||||
static const uint32_t fpga_blk_exp = 13; // default block exponent
|
|
||||||
|
|
||||||
// the following flags are FPGA-specific and they are using arrange the values of the fft of the local code in the way the FPGA
|
// the following flags are FPGA-specific and they are using arrange the values of the fft of the local code in the way the FPGA
|
||||||
// expects. This arrangement is done in the initialisation to avoid consuming unnecessary clock cycles during tracking.
|
// expects. This arrangement is done in the initialisation to avoid consuming unnecessary clock cycles during tracking.
|
||||||
|
@ -43,7 +43,7 @@ GalileoE5bPcpsAcquisitionFpga::GalileoE5bPcpsAcquisitionFpga(const Configuration
|
|||||||
acq_pilot_(configuration->property(role + ".acquire_pilot", false)),
|
acq_pilot_(configuration->property(role + ".acquire_pilot", false)),
|
||||||
acq_iq_(configuration->property(role + ".acquire_iq", false))
|
acq_iq_(configuration->property(role + ".acquire_iq", false))
|
||||||
{
|
{
|
||||||
acq_parameters_.SetFromConfiguration(configuration, role_, fpga_downsampling_factor, fpga_buff_num, fpga_blk_exp, GALILEO_E5B_CODE_CHIP_RATE_CPS, GALILEO_E5B_CODE_LENGTH_CHIPS);
|
acq_parameters_.SetFromConfiguration(configuration, role_, fpga_buff_num, fpga_blk_exp, GALILEO_E5B_CODE_CHIP_RATE_CPS, GALILEO_E5B_CODE_LENGTH_CHIPS);
|
||||||
if (FLAGS_doppler_max != 0)
|
if (FLAGS_doppler_max != 0)
|
||||||
{
|
{
|
||||||
acq_parameters_.doppler_max = FLAGS_doppler_max;
|
acq_parameters_.doppler_max = FLAGS_doppler_max;
|
||||||
|
@ -187,9 +187,8 @@ public:
|
|||||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const uint32_t fpga_downsampling_factor = 1; // downampling factor in the FPGA
|
static const uint32_t fpga_buff_num = 1; // E5b band
|
||||||
static const uint32_t fpga_buff_num = 1; // E5b band
|
static const uint32_t fpga_blk_exp = 13; // default block exponent
|
||||||
static const uint32_t fpga_blk_exp = 13; // default block exponent
|
|
||||||
|
|
||||||
// the following flags are FPGA-specific and they are using arrange the values of the fft of the local code in the way the FPGA
|
// the following flags are FPGA-specific and they are using arrange the values of the fft of the local code in the way the FPGA
|
||||||
// expects. This arrangement is done in the initialisation to avoid consuming unnecessary clock cycles during tracking.
|
// expects. This arrangement is done in the initialisation to avoid consuming unnecessary clock cycles during tracking.
|
||||||
|
@ -43,7 +43,7 @@ GpsL1CaPcpsAcquisitionFpga::GpsL1CaPcpsAcquisitionFpga(
|
|||||||
in_streams_(in_streams),
|
in_streams_(in_streams),
|
||||||
out_streams_(out_streams)
|
out_streams_(out_streams)
|
||||||
{
|
{
|
||||||
acq_parameters_.SetFromConfiguration(configuration, role, fpga_downsampling_factor, fpga_buff_num, fpga_blk_exp, GPS_L1_CA_CODE_RATE_CPS, GPS_L1_CA_CODE_LENGTH_CHIPS);
|
acq_parameters_.SetFromConfiguration(configuration, role, fpga_buff_num, fpga_blk_exp, GPS_L1_CA_CODE_RATE_CPS, GPS_L1_CA_CODE_LENGTH_CHIPS);
|
||||||
|
|
||||||
DLOG(INFO) << "role " << role;
|
DLOG(INFO) << "role " << role;
|
||||||
|
|
||||||
|
@ -186,9 +186,8 @@ public:
|
|||||||
private:
|
private:
|
||||||
static const uint32_t NUM_PRNs = 32;
|
static const uint32_t NUM_PRNs = 32;
|
||||||
|
|
||||||
static const uint32_t fpga_downsampling_factor = 4; // downampling factor in the FPGA
|
static const uint32_t fpga_buff_num = 0; // L1/E1 band
|
||||||
static const uint32_t fpga_buff_num = 0; // L1/E1 band
|
static const uint32_t fpga_blk_exp = 10; // default block exponent
|
||||||
static const uint32_t fpga_blk_exp = 10; // default block exponent
|
|
||||||
|
|
||||||
// the following flags are FPGA-specific and they are using arrange the values of the fft of the local code in the way the FPGA
|
// the following flags are FPGA-specific and they are using arrange the values of the fft of the local code in the way the FPGA
|
||||||
// expects. This arrangement is done in the initialisation to avoid consuming unnecessary clock cycles during tracking.
|
// expects. This arrangement is done in the initialisation to avoid consuming unnecessary clock cycles during tracking.
|
||||||
|
@ -43,7 +43,7 @@ GpsL2MPcpsAcquisitionFpga::GpsL2MPcpsAcquisitionFpga(
|
|||||||
in_streams_(in_streams),
|
in_streams_(in_streams),
|
||||||
out_streams_(out_streams)
|
out_streams_(out_streams)
|
||||||
{
|
{
|
||||||
acq_parameters_.SetFromConfiguration(configuration, role, fpga_downsampling_factor, fpga_buff_num, fpga_blk_exp, GPS_L2_M_CODE_RATE_CPS, GPS_L2_M_CODE_LENGTH_CHIPS);
|
acq_parameters_.SetFromConfiguration(configuration, role, fpga_buff_num, fpga_blk_exp, GPS_L2_M_CODE_RATE_CPS, GPS_L2_M_CODE_LENGTH_CHIPS);
|
||||||
|
|
||||||
LOG(INFO) << "role " << role;
|
LOG(INFO) << "role " << role;
|
||||||
|
|
||||||
|
@ -149,9 +149,8 @@ public:
|
|||||||
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override{};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const uint32_t fpga_downsampling_factor = 4; // downampling factor in the FPGA
|
static const uint32_t fpga_buff_num = 0; // L2 band
|
||||||
static const uint32_t fpga_buff_num = 0; // L2 band
|
static const uint32_t fpga_blk_exp = 13; // default block exponent
|
||||||
static const uint32_t fpga_blk_exp = 13; // default block exponent
|
|
||||||
|
|
||||||
static const uint32_t NUM_PRNs = 32;
|
static const uint32_t NUM_PRNs = 32;
|
||||||
static const uint32_t QUANT_BITS_LOCAL_CODE = 16;
|
static const uint32_t QUANT_BITS_LOCAL_CODE = 16;
|
||||||
|
@ -44,7 +44,7 @@ GpsL5iPcpsAcquisitionFpga::GpsL5iPcpsAcquisitionFpga(
|
|||||||
in_streams_(in_streams),
|
in_streams_(in_streams),
|
||||||
out_streams_(out_streams)
|
out_streams_(out_streams)
|
||||||
{
|
{
|
||||||
acq_parameters_.SetFromConfiguration(configuration, role, fpga_downsampling_factor, fpga_buff_num, fpga_blk_exp, GPS_L5I_CODE_RATE_CPS, GPS_L5I_CODE_LENGTH_CHIPS);
|
acq_parameters_.SetFromConfiguration(configuration, role, fpga_buff_num, fpga_blk_exp, GPS_L5I_CODE_RATE_CPS, GPS_L5I_CODE_LENGTH_CHIPS);
|
||||||
|
|
||||||
LOG(INFO) << "role " << role;
|
LOG(INFO) << "role " << role;
|
||||||
|
|
||||||
|
@ -186,9 +186,8 @@ public:
|
|||||||
private:
|
private:
|
||||||
static const uint32_t NUM_PRNs = 32;
|
static const uint32_t NUM_PRNs = 32;
|
||||||
|
|
||||||
static const uint32_t fpga_downsampling_factor = 1; // downampling factor in the FPGA
|
static const uint32_t fpga_buff_num = 1; // L5/E5a band
|
||||||
static const uint32_t fpga_buff_num = 1; // L5/E5a band
|
static const uint32_t fpga_blk_exp = 13; // default block exponent
|
||||||
static const uint32_t fpga_blk_exp = 13; // default block exponent
|
|
||||||
|
|
||||||
// the following flags are FPGA-specific and they are using arrange the values of the fft of the local code in the way the FPGA
|
// the following flags are FPGA-specific and they are using arrange the values of the fft of the local code in the way the FPGA
|
||||||
// expects. This arrangement is done in the initialisation to avoid consuming unnecessary clock cycles during tracking.
|
// expects. This arrangement is done in the initialisation to avoid consuming unnecessary clock cycles during tracking.
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
void Acq_Conf_Fpga::SetFromConfiguration(const ConfigurationInterface *configuration,
|
void Acq_Conf_Fpga::SetFromConfiguration(const ConfigurationInterface *configuration,
|
||||||
const std::string &role, uint32_t downs_factor, uint32_t sel_queue_fpga, uint32_t blk_exp, double chip_rate, double code_length_chips)
|
const std::string &role, uint32_t sel_queue_fpga, uint32_t blk_exp, double chip_rate, double code_length_chips)
|
||||||
{
|
{
|
||||||
// sampling frequency
|
// sampling frequency
|
||||||
const int64_t fs_in_deprecated = configuration->property("GNSS-SDR.internal_fs_hz", fs_in);
|
const int64_t fs_in_deprecated = configuration->property("GNSS-SDR.internal_fs_hz", fs_in);
|
||||||
@ -33,7 +33,8 @@ void Acq_Conf_Fpga::SetFromConfiguration(const ConfigurationInterface *configura
|
|||||||
doppler_max = configuration->property(role + ".doppler_max", doppler_max);
|
doppler_max = configuration->property(role + ".doppler_max", doppler_max);
|
||||||
|
|
||||||
// downsampling factor
|
// downsampling factor
|
||||||
uint32_t downsampling_factor = configuration->property(role + ".downsampling_factor", downs_factor);
|
downsampling_factor = configuration->property(role + ".downsampling_factor", downsampling_factor);
|
||||||
|
|
||||||
fs_in = fs_in / downsampling_factor;
|
fs_in = fs_in / downsampling_factor;
|
||||||
|
|
||||||
// code length in samples
|
// code length in samples
|
||||||
|
@ -35,7 +35,7 @@ class Acq_Conf_Fpga
|
|||||||
public:
|
public:
|
||||||
Acq_Conf_Fpga() = default;
|
Acq_Conf_Fpga() = default;
|
||||||
|
|
||||||
void SetFromConfiguration(const ConfigurationInterface *configuration, const std::string &role, uint32_t downs_factor, uint32_t sel_queue_fpga, uint32_t blk_exp, double chip_rate, double code_length_chips);
|
void SetFromConfiguration(const ConfigurationInterface *configuration, const std::string &role, uint32_t sel_queue_fpga, uint32_t blk_exp, double chip_rate, double code_length_chips);
|
||||||
|
|
||||||
/* PCPS Acquisition configuration */
|
/* PCPS Acquisition configuration */
|
||||||
std::string device_name = "uio0";
|
std::string device_name = "uio0";
|
||||||
|
Loading…
Reference in New Issue
Block a user