mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
Prefer initialization to assignment in constructors
This commit is contained in:
parent
a1a4666399
commit
6e368622e2
@ -60,6 +60,7 @@ Ad9361FpgaSignalSource::Ad9361FpgaSignalSource(const ConfigurationInterface *con
|
||||
rf_gain_rx1_(configuration->property(role + ".gain_rx1", default_manual_gain_rx1)),
|
||||
rf_gain_rx2_(configuration->property(role + ".gain_rx2", default_manual_gain_rx2)),
|
||||
freq0_(configuration->property(role + ".freq", 0)),
|
||||
freq1_(configuration->property(role + ".freq1", static_cast<uint64_t>(GPS_L5_FREQ_HZ))),
|
||||
sample_rate_(configuration->property(role + ".sampling_frequency", default_bandwidth)),
|
||||
bandwidth_(configuration->property(role + ".bandwidth", default_bandwidth)),
|
||||
samples_to_skip_(0),
|
||||
@ -100,8 +101,8 @@ Ad9361FpgaSignalSource::Ad9361FpgaSignalSource(const ConfigurationInterface *con
|
||||
|
||||
if (freq0_ == 0)
|
||||
{
|
||||
// use ".freq0"
|
||||
freq0_ = configuration->property(role + ".freq0", static_cast<uint64_t>(GPS_L1_FREQ_HZ));
|
||||
freq1_ = configuration->property(role + ".freq1", static_cast<uint64_t>(GPS_L5_FREQ_HZ));
|
||||
}
|
||||
|
||||
if (filter_auto_)
|
||||
|
Loading…
Reference in New Issue
Block a user