mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-07 16:00:35 +00:00
Fix call to overloded property in GCC
This commit is contained in:
parent
cec63d3aad
commit
fcf1b97c30
@ -52,7 +52,7 @@ Ad9361FpgaSignalSource::Ad9361FpgaSignalSource(const ConfigurationInterface *con
|
|||||||
uint64_t default_bandwidth = 12500000;
|
uint64_t default_bandwidth = 12500000;
|
||||||
std::string default_rf_port_select("A_BALANCED");
|
std::string default_rf_port_select("A_BALANCED");
|
||||||
freq_ = configuration->property(role + ".freq", static_cast<uint64_t>(GPS_L1_FREQ_HZ));
|
freq_ = configuration->property(role + ".freq", static_cast<uint64_t>(GPS_L1_FREQ_HZ));
|
||||||
sample_rate_ = configuration->property(role + ".sampling_frequency", 12500000ULL);
|
sample_rate_ = configuration->property(role + ".sampling_frequency", static_cast<uint64_t>(12500000));
|
||||||
bandwidth_ = configuration->property(role + ".bandwidth", default_bandwidth);
|
bandwidth_ = configuration->property(role + ".bandwidth", default_bandwidth);
|
||||||
quadrature_ = configuration->property(role + ".quadrature", true);
|
quadrature_ = configuration->property(role + ".quadrature", true);
|
||||||
rf_dc_ = configuration->property(role + ".rf_dc", true);
|
rf_dc_ = configuration->property(role + ".rf_dc", true);
|
||||||
@ -78,11 +78,11 @@ Ad9361FpgaSignalSource::Ad9361FpgaSignalSource(const ConfigurationInterface *con
|
|||||||
Fpass_ = configuration->property(role + ".Fpass", 0.0);
|
Fpass_ = configuration->property(role + ".Fpass", 0.0);
|
||||||
Fstop_ = configuration->property(role + ".Fstop", 0.0);
|
Fstop_ = configuration->property(role + ".Fstop", 0.0);
|
||||||
enable_dds_lo_ = configuration->property(role + ".enable_dds_lo", false);
|
enable_dds_lo_ = configuration->property(role + ".enable_dds_lo", false);
|
||||||
freq_dds_tx_hz_ = configuration->property(role + ".freq_dds_tx_hz", 10000ULL);
|
freq_dds_tx_hz_ = configuration->property(role + ".freq_dds_tx_hz", static_cast<uint64_t>(10000));
|
||||||
freq_rf_tx_hz_ = configuration->property(role + ".freq_rf_tx_hz", static_cast<uint64_t>(GPS_L1_FREQ_HZ - GPS_L5_FREQ_HZ - freq_dds_tx_hz_));
|
freq_rf_tx_hz_ = configuration->property(role + ".freq_rf_tx_hz", static_cast<uint64_t>(GPS_L1_FREQ_HZ - GPS_L5_FREQ_HZ - freq_dds_tx_hz_));
|
||||||
scale_dds_dbfs_ = configuration->property(role + ".scale_dds_dbfs", -3.0);
|
scale_dds_dbfs_ = configuration->property(role + ".scale_dds_dbfs", -3.0);
|
||||||
tx_attenuation_db_ = configuration->property(role + ".tx_attenuation_db", default_tx_attenuation_db);
|
tx_attenuation_db_ = configuration->property(role + ".tx_attenuation_db", default_tx_attenuation_db);
|
||||||
tx_bandwidth_ = configuration->property(role + ".tx_bandwidth", 500000ULL);
|
tx_bandwidth_ = configuration->property(role + ".tx_bandwidth", static_cast<uint64_t>(500000));
|
||||||
phase_dds_deg_ = configuration->property(role + ".phase_dds_deg", 0.0);
|
phase_dds_deg_ = configuration->property(role + ".phase_dds_deg", 0.0);
|
||||||
|
|
||||||
rf_shutdown_ = configuration->property(role + ".rf_shutdown", FLAGS_rf_shutdown);
|
rf_shutdown_ = configuration->property(role + ".rf_shutdown", FLAGS_rf_shutdown);
|
||||||
|
@ -42,8 +42,8 @@ Fmcomms2SignalSource::Fmcomms2SignalSource(const ConfigurationInterface *configu
|
|||||||
double default_tx_attenuation_db = -10.0;
|
double default_tx_attenuation_db = -10.0;
|
||||||
uri_ = configuration->property(role + ".device_address", std::string("192.168.2.1"));
|
uri_ = configuration->property(role + ".device_address", std::string("192.168.2.1"));
|
||||||
freq_ = configuration->property(role + ".freq", static_cast<uint64_t>(GPS_L1_FREQ_HZ));
|
freq_ = configuration->property(role + ".freq", static_cast<uint64_t>(GPS_L1_FREQ_HZ));
|
||||||
sample_rate_ = configuration->property(role + ".sampling_frequency", 2600000ULL);
|
sample_rate_ = configuration->property(role + ".sampling_frequency", static_cast<uint64_t>(2600000));
|
||||||
bandwidth_ = configuration->property(role + ".bandwidth", 2000000ULL);
|
bandwidth_ = configuration->property(role + ".bandwidth", static_cast<uint64_t>(2000000));
|
||||||
rx1_en_ = configuration->property(role + ".rx1_enable", true);
|
rx1_en_ = configuration->property(role + ".rx1_enable", true);
|
||||||
rx2_en_ = configuration->property(role + ".rx2_enable", false);
|
rx2_en_ = configuration->property(role + ".rx2_enable", false);
|
||||||
buffer_size_ = configuration->property(role + ".buffer_size", 0xA0000);
|
buffer_size_ = configuration->property(role + ".buffer_size", 0xA0000);
|
||||||
@ -77,12 +77,12 @@ Fmcomms2SignalSource::Fmcomms2SignalSource(const ConfigurationInterface *configu
|
|||||||
|
|
||||||
// AD9361 Local Oscillator generation for dual band operation
|
// AD9361 Local Oscillator generation for dual band operation
|
||||||
enable_dds_lo_ = configuration->property(role + ".enable_dds_lo", false);
|
enable_dds_lo_ = configuration->property(role + ".enable_dds_lo", false);
|
||||||
freq_dds_tx_hz_ = configuration->property(role + ".freq_dds_tx_hz", 10000ULL);
|
freq_dds_tx_hz_ = configuration->property(role + ".freq_dds_tx_hz", static_cast<uint64_t>(10000));
|
||||||
freq_rf_tx_hz_ = configuration->property(role + ".freq_rf_tx_hz", static_cast<uint64_t>(GPS_L1_FREQ_HZ - GPS_L2_FREQ_HZ - freq_dds_tx_hz_));
|
freq_rf_tx_hz_ = configuration->property(role + ".freq_rf_tx_hz", static_cast<uint64_t>(GPS_L1_FREQ_HZ - GPS_L2_FREQ_HZ - freq_dds_tx_hz_));
|
||||||
scale_dds_dbfs_ = configuration->property(role + ".scale_dds_dbfs", 0.0);
|
scale_dds_dbfs_ = configuration->property(role + ".scale_dds_dbfs", 0.0);
|
||||||
phase_dds_deg_ = configuration->property(role + ".phase_dds_deg", 0.0);
|
phase_dds_deg_ = configuration->property(role + ".phase_dds_deg", 0.0);
|
||||||
tx_attenuation_db_ = configuration->property(role + ".tx_attenuation_db", default_tx_attenuation_db);
|
tx_attenuation_db_ = configuration->property(role + ".tx_attenuation_db", default_tx_attenuation_db);
|
||||||
tx_bandwidth_ = configuration->property(role + ".tx_bandwidth", 500000ULL);
|
tx_bandwidth_ = configuration->property(role + ".tx_bandwidth", static_cast<uint64_t>(500000));
|
||||||
|
|
||||||
rf_shutdown_ = configuration->property(role + ".rf_shutdown", FLAGS_rf_shutdown);
|
rf_shutdown_ = configuration->property(role + ".rf_shutdown", FLAGS_rf_shutdown);
|
||||||
|
|
||||||
|
@ -35,8 +35,8 @@ PlutosdrSignalSource::PlutosdrSignalSource(const ConfigurationInterface* configu
|
|||||||
std::string default_gain_mode("slow_attack");
|
std::string default_gain_mode("slow_attack");
|
||||||
uri_ = configuration->property(role + ".device_address", std::string("192.168.2.1"));
|
uri_ = configuration->property(role + ".device_address", std::string("192.168.2.1"));
|
||||||
freq_ = configuration->property(role + ".freq", static_cast<uint64_t>(GPS_L1_FREQ_HZ));
|
freq_ = configuration->property(role + ".freq", static_cast<uint64_t>(GPS_L1_FREQ_HZ));
|
||||||
sample_rate_ = configuration->property(role + ".sampling_frequency", 3000000ULL);
|
sample_rate_ = configuration->property(role + ".sampling_frequency", static_cast<uint64_t>(3000000));
|
||||||
bandwidth_ = configuration->property(role + ".bandwidth", 2000000ULL);
|
bandwidth_ = configuration->property(role + ".bandwidth", static_cast<uint64_t>(2000000));
|
||||||
buffer_size_ = configuration->property(role + ".buffer_size", 0xA0000);
|
buffer_size_ = configuration->property(role + ".buffer_size", 0xA0000);
|
||||||
quadrature_ = configuration->property(role + ".quadrature", true);
|
quadrature_ = configuration->property(role + ".quadrature", true);
|
||||||
rf_dc_ = configuration->property(role + ".rf_dc", true);
|
rf_dc_ = configuration->property(role + ".rf_dc", true);
|
||||||
|
@ -47,7 +47,7 @@ SpirGSS6450FileSignalSource::SpirGSS6450FileSignalSource(const ConfigurationInte
|
|||||||
n_channels_ = configuration->property(role + ".total_channels", 1);
|
n_channels_ = configuration->property(role + ".total_channels", 1);
|
||||||
sel_ch_ = configuration->property(role + ".sel_ch", 1);
|
sel_ch_ = configuration->property(role + ".sel_ch", 1);
|
||||||
item_size_ = sizeof(int32_t);
|
item_size_ = sizeof(int32_t);
|
||||||
int64_t bytes_seek = configuration->property(role + ".bytes_to_skip", 65536LL);
|
int64_t bytes_seek = configuration->property(role + ".bytes_to_skip", static_cast<int64_t>(65536));
|
||||||
double sample_size_byte = static_cast<double>(adc_bits_) / 4.0;
|
double sample_size_byte = static_cast<double>(adc_bits_) / 4.0;
|
||||||
|
|
||||||
if (sel_ch_ > n_channels_)
|
if (sel_ch_ > n_channels_)
|
||||||
|
Loading…
Reference in New Issue
Block a user