mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-13 02:40:32 +00:00
Initializing class members in the constructor
This commit is contained in:
parent
793b628ad2
commit
7dcffd3401
@ -64,7 +64,7 @@ GalileoE1DllPllVemlTracking::GalileoE1DllPllVemlTracking(
|
|||||||
float early_late_space_chips;
|
float early_late_space_chips;
|
||||||
float very_early_late_space_chips;
|
float very_early_late_space_chips;
|
||||||
|
|
||||||
item_type = configuration->property(role + ".item_type",default_item_type);
|
item_type = configuration->property(role + ".item_type", default_item_type);
|
||||||
fs_in = configuration->property("GNSS-SDR.internal_fs_hz", 2048000);
|
fs_in = configuration->property("GNSS-SDR.internal_fs_hz", 2048000);
|
||||||
f_if = configuration->property(role + ".if", 0);
|
f_if = configuration->property(role + ".if", 0);
|
||||||
dump = configuration->property(role + ".dump", false);
|
dump = configuration->property(role + ".dump", false);
|
||||||
@ -96,9 +96,13 @@ GalileoE1DllPllVemlTracking::GalileoE1DllPllVemlTracking(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
item_size_ = sizeof(gr_complex);
|
||||||
LOG(WARNING) << item_type << " unknown tracking item type.";
|
LOG(WARNING) << item_type << " unknown tracking item type.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
channel_ = 0;
|
||||||
|
channel_internal_queue_ = 0;
|
||||||
|
|
||||||
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,9 +97,11 @@ GalileoE1TcpConnectorTracking::GalileoE1TcpConnectorTracking(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
item_size_ = sizeof(gr_complex);
|
||||||
LOG(WARNING) << item_type << " unknown tracking item type.";
|
LOG(WARNING) << item_type << " unknown tracking item type.";
|
||||||
}
|
}
|
||||||
|
channel_ = 0;
|
||||||
|
channel_internal_queue_ = 0;
|
||||||
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,8 +103,11 @@ GalileoE5aDllPllTracking::GalileoE5aDllPllTracking(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
item_size_ = sizeof(gr_complex);
|
||||||
LOG(WARNING) << item_type << " unknown tracking item type.";
|
LOG(WARNING) << item_type << " unknown tracking item type.";
|
||||||
}
|
}
|
||||||
|
channel_ = 0;
|
||||||
|
channel_internal_queue_ = 0;
|
||||||
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,9 +96,13 @@ GalileoVolkE1DllPllVemlTracking::GalileoVolkE1DllPllVemlTracking(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
item_size_ = sizeof(gr_complex);
|
||||||
LOG(WARNING) << item_type << " unknown tracking item type.";
|
LOG(WARNING) << item_type << " unknown tracking item type.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
channel_ = 0;
|
||||||
|
channel_internal_queue_ = 0;
|
||||||
|
|
||||||
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,8 +102,11 @@ GpsL1CaDllFllPllTracking::GpsL1CaDllFllPllTracking(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
item_size_ = sizeof(gr_complex);
|
||||||
LOG(WARNING) << item_type << " unknown tracking item type.";
|
LOG(WARNING) << item_type << " unknown tracking item type.";
|
||||||
}
|
}
|
||||||
|
channel_ = 0;
|
||||||
|
channel_internal_queue_ = 0;
|
||||||
|
|
||||||
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
||||||
}
|
}
|
||||||
|
@ -93,8 +93,12 @@ GpsL1CaDllPllOptimTracking::GpsL1CaDllPllOptimTracking(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
item_size_ = sizeof(gr_complex);
|
||||||
LOG(WARNING) << item_type << " unknown tracking item type.";
|
LOG(WARNING) << item_type << " unknown tracking item type.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
channel_ = 0;
|
||||||
|
channel_internal_queue_ = 0;
|
||||||
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,8 +93,11 @@ GpsL1CaDllPllTracking::GpsL1CaDllPllTracking(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
item_size_ = sizeof(gr_complex);
|
||||||
LOG(WARNING) << item_type << " unknown tracking item type.";
|
LOG(WARNING) << item_type << " unknown tracking item type.";
|
||||||
}
|
}
|
||||||
|
channel_ = 0;
|
||||||
|
channel_internal_queue_ = 0;
|
||||||
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,8 +94,12 @@ GpsL1CaTcpConnectorTracking::GpsL1CaTcpConnectorTracking(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
item_size_ = sizeof(gr_complex);
|
||||||
LOG(WARNING) << item_type << " unknown tracking item type.";
|
LOG(WARNING) << item_type << " unknown tracking item type.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
channel_ = 0;
|
||||||
|
channel_internal_queue_ = 0;
|
||||||
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,8 +91,11 @@ GpsL2MDllPllTracking::GpsL2MDllPllTracking(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
item_size_ = sizeof(gr_complex);
|
||||||
LOG(WARNING) << item_type << " unknown tracking item type.";
|
LOG(WARNING) << item_type << " unknown tracking item type.";
|
||||||
}
|
}
|
||||||
|
channel_ = 0;
|
||||||
|
channel_internal_queue_ = 0;
|
||||||
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
DLOG(INFO) << "tracking(" << tracking_->unique_id() << ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -174,6 +174,15 @@ galileo_e1_dll_pll_veml_tracking_cc::galileo_e1_dll_pll_veml_tracking_cc(
|
|||||||
*d_Prompt = gr_complex(0,0);
|
*d_Prompt = gr_complex(0,0);
|
||||||
*d_Late = gr_complex(0,0);
|
*d_Late = gr_complex(0,0);
|
||||||
*d_Very_Late = gr_complex(0,0);
|
*d_Very_Late = gr_complex(0,0);
|
||||||
|
|
||||||
|
d_channel_internal_queue = 0;
|
||||||
|
d_acquisition_gnss_synchro = 0;
|
||||||
|
d_channel = 0;
|
||||||
|
d_acq_code_phase_samples = 0.0;
|
||||||
|
d_acq_carrier_doppler_hz = 0.0;
|
||||||
|
d_carrier_doppler_hz = 0.0;
|
||||||
|
d_acc_carrier_phase_rad = 0.0;
|
||||||
|
d_acc_code_phase_secs = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void galileo_e1_dll_pll_veml_tracking_cc::start_tracking()
|
void galileo_e1_dll_pll_veml_tracking_cc::start_tracking()
|
||||||
|
@ -170,6 +170,17 @@ Galileo_E1_Tcp_Connector_Tracking_cc::Galileo_E1_Tcp_Connector_Tracking_cc(
|
|||||||
d_carrier_lock_fail_counter = 0;
|
d_carrier_lock_fail_counter = 0;
|
||||||
d_carrier_lock_threshold = CARRIER_LOCK_THRESHOLD;
|
d_carrier_lock_threshold = CARRIER_LOCK_THRESHOLD;
|
||||||
systemName["E"] = std::string("Galileo");
|
systemName["E"] = std::string("Galileo");
|
||||||
|
|
||||||
|
d_channel_internal_queue = 0;
|
||||||
|
d_acquisition_gnss_synchro = 0;
|
||||||
|
d_channel = 0;
|
||||||
|
d_next_rem_code_phase_samples = 0;
|
||||||
|
d_acq_code_phase_samples = 0.0;
|
||||||
|
d_acq_carrier_doppler_hz = 0.0;
|
||||||
|
d_acc_carrier_phase_rad = 0.0;
|
||||||
|
d_acc_code_phase_secs = 0.0;
|
||||||
|
d_code_phase_samples = 0;
|
||||||
|
d_next_prn_length_samples = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -191,6 +191,15 @@ gr::block("galileo_volk_e1_dll_pll_veml_tracking_cc", gr::io_signature::make(1,
|
|||||||
*d_Prompt = gr_complex(0,0);
|
*d_Prompt = gr_complex(0,0);
|
||||||
*d_Late = gr_complex(0,0);
|
*d_Late = gr_complex(0,0);
|
||||||
*d_Very_Late = gr_complex(0,0);
|
*d_Very_Late = gr_complex(0,0);
|
||||||
|
|
||||||
|
d_channel_internal_queue = 0;
|
||||||
|
d_acquisition_gnss_synchro = 0;
|
||||||
|
d_channel = 0;
|
||||||
|
d_acq_code_phase_samples = 0.0;
|
||||||
|
d_acq_carrier_doppler_hz = 0.0;
|
||||||
|
d_carrier_doppler_hz = 0.0;
|
||||||
|
d_acc_carrier_phase_rad = 0.0;
|
||||||
|
d_acc_code_phase_secs = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void galileo_volk_e1_dll_pll_veml_tracking_cc::start_tracking()
|
void galileo_volk_e1_dll_pll_veml_tracking_cc::start_tracking()
|
||||||
@ -356,7 +365,7 @@ int galileo_volk_e1_dll_pll_veml_tracking_cc::general_work (int noutput_items,gr
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GNSS_SYNCHRO OBJECT to interchange data between tracking->telemetry_decoder
|
// GNSS_SYNCHRO OBJECT to interchange data between tracking->telemetry_decoder
|
||||||
Gnss_Synchro current_synchro_data;
|
Gnss_Synchro current_synchro_data = Gnss_Synchro();
|
||||||
// Fill the acquisition data
|
// Fill the acquisition data
|
||||||
current_synchro_data = *d_acquisition_gnss_synchro;
|
current_synchro_data = *d_acquisition_gnss_synchro;
|
||||||
|
|
||||||
|
@ -158,6 +158,21 @@ Gps_L1_Ca_Dll_Fll_Pll_Tracking_cc::Gps_L1_Ca_Dll_Fll_Pll_Tracking_cc(
|
|||||||
systemName["S"] = std::string("SBAS");
|
systemName["S"] = std::string("SBAS");
|
||||||
systemName["E"] = std::string("Galileo");
|
systemName["E"] = std::string("Galileo");
|
||||||
systemName["C"] = std::string("Compass");
|
systemName["C"] = std::string("Compass");
|
||||||
|
|
||||||
|
d_channel_internal_queue = 0;
|
||||||
|
//d_acquisition_gnss_synchro = 0;
|
||||||
|
d_channel = 0;
|
||||||
|
d_acq_carrier_doppler_hz = 0.0;
|
||||||
|
d_code_freq_hz = 0.0;
|
||||||
|
d_rem_carr_phase = 0.0;
|
||||||
|
d_rem_code_phase_samples = 0.0;
|
||||||
|
d_acq_code_phase_samples = 0;
|
||||||
|
d_acq_carrier_doppler_hz = 0.0;
|
||||||
|
d_acc_carrier_phase_rad = 0.0;
|
||||||
|
d_acc_code_phase_samples = 0;
|
||||||
|
d_FLL_discriminator_hz = 0.0;
|
||||||
|
d_pull_in = false;
|
||||||
|
d_FLL_wait = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -162,6 +162,16 @@ Gps_L1_Ca_Dll_Pll_Optim_Tracking_cc::Gps_L1_Ca_Dll_Pll_Optim_Tracking_cc(
|
|||||||
d_carrier_lock_threshold = CARRIER_LOCK_THRESHOLD;
|
d_carrier_lock_threshold = CARRIER_LOCK_THRESHOLD;
|
||||||
|
|
||||||
systemName["G"] = std::string("GPS");
|
systemName["G"] = std::string("GPS");
|
||||||
|
|
||||||
|
d_channel_internal_queue = 0;
|
||||||
|
d_acquisition_gnss_synchro = 0;
|
||||||
|
d_channel = 0;
|
||||||
|
d_acq_code_phase_samples = 0.0;
|
||||||
|
d_acq_carrier_doppler_hz = 0.0;
|
||||||
|
d_carrier_doppler_hz = 0.0;
|
||||||
|
d_acc_carrier_phase_rad = 0.0;
|
||||||
|
d_code_phase_samples = 0.0;
|
||||||
|
d_acc_code_phase_secs = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -167,6 +167,15 @@ Gps_L1_Ca_Dll_Pll_Tracking_cc::Gps_L1_Ca_Dll_Pll_Tracking_cc(
|
|||||||
|
|
||||||
set_relative_rate(1.0/((double)d_vector_length*2));
|
set_relative_rate(1.0/((double)d_vector_length*2));
|
||||||
|
|
||||||
|
d_channel_internal_queue = 0;
|
||||||
|
d_acquisition_gnss_synchro = 0;
|
||||||
|
d_channel = 0;
|
||||||
|
d_acq_code_phase_samples = 0.0;
|
||||||
|
d_acq_carrier_doppler_hz = 0.0;
|
||||||
|
d_carrier_doppler_hz = 0.0;
|
||||||
|
d_acc_carrier_phase_rad = 0.0;
|
||||||
|
d_code_phase_samples = 0.0;
|
||||||
|
d_acc_code_phase_secs = 0.0;
|
||||||
//set_min_output_buffer((long int)300);
|
//set_min_output_buffer((long int)300);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -337,7 +346,7 @@ int Gps_L1_Ca_Dll_Pll_Tracking_cc::general_work (int noutput_items, gr_vector_in
|
|||||||
Gnss_Synchro **out = (Gnss_Synchro **) &output_items[0];
|
Gnss_Synchro **out = (Gnss_Synchro **) &output_items[0];
|
||||||
|
|
||||||
// GNSS_SYNCHRO OBJECT to interchange data between tracking->telemetry_decoder
|
// GNSS_SYNCHRO OBJECT to interchange data between tracking->telemetry_decoder
|
||||||
Gnss_Synchro current_synchro_data;
|
Gnss_Synchro current_synchro_data = Gnss_Synchro();
|
||||||
|
|
||||||
|
|
||||||
if (d_enable_tracking == true)
|
if (d_enable_tracking == true)
|
||||||
|
@ -174,6 +174,17 @@ Gps_L1_Ca_Tcp_Connector_Tracking_cc::Gps_L1_Ca_Tcp_Connector_Tracking_cc(
|
|||||||
systemName["S"] = std::string("SBAS");
|
systemName["S"] = std::string("SBAS");
|
||||||
systemName["E"] = std::string("Galileo");
|
systemName["E"] = std::string("Galileo");
|
||||||
systemName["C"] = std::string("Compass");
|
systemName["C"] = std::string("Compass");
|
||||||
|
|
||||||
|
d_channel_internal_queue = 0;
|
||||||
|
d_acquisition_gnss_synchro = 0;
|
||||||
|
d_channel = 0;
|
||||||
|
d_next_rem_code_phase_samples = 0;
|
||||||
|
d_acq_code_phase_samples = 0.0;
|
||||||
|
d_acq_carrier_doppler_hz = 0.0;
|
||||||
|
d_carrier_doppler_hz = 0.0;
|
||||||
|
d_acc_carrier_phase_rad = 0.0;
|
||||||
|
d_code_phase_samples = 0;
|
||||||
|
d_next_prn_length_samples = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Gps_L1_Ca_Tcp_Connector_Tracking_cc::start_tracking()
|
void Gps_L1_Ca_Tcp_Connector_Tracking_cc::start_tracking()
|
||||||
|
@ -169,7 +169,17 @@ gps_l2_m_dll_pll_tracking_cc::gps_l2_m_dll_pll_tracking_cc(
|
|||||||
set_relative_rate(1.0/((double)d_vector_length*2));
|
set_relative_rate(1.0/((double)d_vector_length*2));
|
||||||
//set_min_output_buffer((long int)300);
|
//set_min_output_buffer((long int)300);
|
||||||
|
|
||||||
LOG(INFO)<<"d_vector_length"<<d_vector_length<<std::endl;
|
d_channel_internal_queue = 0;
|
||||||
|
d_acquisition_gnss_synchro = 0;
|
||||||
|
d_channel = 0;
|
||||||
|
d_acq_code_phase_samples = 0.0;
|
||||||
|
d_acq_carrier_doppler_hz = 0.0;
|
||||||
|
d_carrier_doppler_hz = 0.0;
|
||||||
|
d_acc_carrier_phase_rad = 0.0;
|
||||||
|
d_code_phase_samples = 0.0;
|
||||||
|
d_acc_code_phase_secs = 0.0;
|
||||||
|
|
||||||
|
LOG(INFO) << "d_vector_length" << d_vector_length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -333,7 +343,7 @@ int gps_l2_m_dll_pll_tracking_cc::general_work (int noutput_items, gr_vector_int
|
|||||||
float code_error_filt_chips;
|
float code_error_filt_chips;
|
||||||
|
|
||||||
// GNSS_SYNCHRO OBJECT to interchange data between tracking->telemetry_decoder
|
// GNSS_SYNCHRO OBJECT to interchange data between tracking->telemetry_decoder
|
||||||
Gnss_Synchro current_synchro_data;
|
Gnss_Synchro current_synchro_data = Gnss_Synchro();
|
||||||
|
|
||||||
// Block input data and block output stream pointers
|
// Block input data and block output stream pointers
|
||||||
const gr_complex* in = (gr_complex*) input_items[0]; //PRN start block alignment
|
const gr_complex* in = (gr_complex*) input_items[0]; //PRN start block alignment
|
||||||
|
Loading…
Reference in New Issue
Block a user