2011-10-01 18:45:20 +00:00
|
|
|
/*!
|
|
|
|
* \file gnss_block_factory.cc
|
|
|
|
* \brief This class implements a factory that returns instances of GNSS blocks.
|
|
|
|
* \author Carlos Aviles, 2010. carlos.avilesr(at)googlemail.com
|
2012-02-24 16:06:14 +00:00
|
|
|
* Luis Esteve, 2012. luis(at)epsilon-formacion.com
|
- Major changes:
- The executable file and the default configuration file is now changed from "./install/mercurio" and "./conf/mercurio.conf" to "./install/gnss-sdr" and "./conf/gnss-sdr.conf", respectively.
- Configuration file structure changed to define in a single entry the internal sampling frequency (after the signal conditioner). NOTICE that this change affects the all the adapters (acquisition, tracking, telemetry_decoder, observables, and PVT). All the adapters are now modified to work with this feature.
- Moved several in-line GPS L1 CA parameters (a.k.a magic numbers..) to ./src/core/system_parameters/GPS_L1_CA.h definition file.
- Tracking blocks now uses DOUBLE values in their outputs.
- Observables and PVT now are separated. PVT and their associated libraries are moved to ./src/algorithms/PVT
- Temporarily disabled the RINEX output (I am working on that!)
- GNSS-SDR screen output now gives extended debug information of the receiver status and events. In the future, this output will be redirected to a log file.
- Bug fixes:
- FILE_SIGNAL_SOURCE now works correctly when the user configures GNSS-SDR to process the entire file.
- GPS_L1_CA_DLL_PLL now computes correctly the PRN start values.
- GPS_L1_CA_DLL_FLL_PLL now computes correctly the PRN start values.
- Several modifications in GPS_L1_CA_Telemetry_Decoder, GPS_L1_CA_Observables, and GPS_L1_CA_PVT modules to fix the GPS position computation.
- New features
- Tracking blocks perform a signal integrity check against NaN outliers before the correlation process.
- Tracking and PVT binary dump options are now documented and we provide MATLAB libraries and sample files to read it. Available in ./utils/matlab" and "./utils/matlab/libs"
- Observables output rate can be configured. This option enables the GPS L1 CA PVT computation at a maximum rate of 1ms.
- GPS_L1_CA_PVT now can perform a moving average Latitude, Longitude, and Altitude output for each of the Observables output. It is configurable using the configuration file.
- Added Google Earth compatible Keyhole Markup Language (KML) output writer class (./src/algorithms/PVT/libs/kml_printer.h and ./src/algorithms/PVT/libs/kml_printer.cc ). You can see the receiver position directly using Google Earth.
- We provide a master configuration file which includes an in-line documentation with all the new (and old) options. It can be found in ./conf/master.conf
git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@84 64b25241-fba3-4117-9849-534c7e92360d
2011-12-07 17:59:34 +00:00
|
|
|
* Javier Arribas, 2011. jarribas(at)cttc.es
|
2011-10-01 18:45:20 +00:00
|
|
|
*
|
|
|
|
* This class encapsulates the complexity behind the instantiation
|
|
|
|
* of GNSS blocks.
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*
|
2018-05-13 20:49:11 +00:00
|
|
|
* Copyright (C) 2010-2018 (see AUTHORS file for a list of contributors)
|
2011-10-01 18:45:20 +00:00
|
|
|
*
|
|
|
|
* GNSS-SDR is a software defined Global Navigation
|
|
|
|
* Satellite Systems receiver
|
|
|
|
*
|
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
|
|
|
* GNSS-SDR is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
2015-01-08 18:49:59 +00:00
|
|
|
* (at your option) any later version.
|
2011-10-01 18:45:20 +00:00
|
|
|
*
|
|
|
|
* GNSS-SDR is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2018-05-13 20:49:11 +00:00
|
|
|
* along with GNSS-SDR. If not, see <https://www.gnu.org/licenses/>.
|
2011-10-01 18:45:20 +00:00
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2014-04-11 18:18:59 +00:00
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
#include "gnss_block_factory.h"
|
2018-05-16 09:36:37 +00:00
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
#include "configuration_interface.h"
|
2016-08-15 09:57:12 +00:00
|
|
|
#include "in_memory_configuration.h"
|
2011-10-01 18:45:20 +00:00
|
|
|
#include "gnss_block_interface.h"
|
|
|
|
#include "pass_through.h"
|
|
|
|
#include "file_signal_source.h"
|
2013-10-14 16:51:47 +00:00
|
|
|
#include "nsr_file_signal_source.h"
|
2015-07-02 15:59:43 +00:00
|
|
|
#include "two_bit_cpx_file_signal_source.h"
|
2015-01-14 16:26:41 +00:00
|
|
|
#include "spir_file_signal_source.h"
|
2018-01-16 16:20:55 +00:00
|
|
|
#include "spir_gss6450_file_signal_source.h"
|
2015-05-08 06:59:38 +00:00
|
|
|
#include "rtl_tcp_signal_source.h"
|
2015-10-08 11:08:43 +00:00
|
|
|
#include "two_bit_packed_file_signal_source.h"
|
2018-01-23 16:31:42 +00:00
|
|
|
#include "labsat_signal_source.h"
|
2011-10-01 18:45:20 +00:00
|
|
|
#include "channel.h"
|
2012-02-19 17:45:51 +00:00
|
|
|
#include "signal_conditioner.h"
|
2014-02-18 19:40:44 +00:00
|
|
|
#include "array_signal_conditioner.h"
|
2015-02-03 18:40:26 +00:00
|
|
|
#include "byte_to_short.h"
|
2015-02-02 23:58:21 +00:00
|
|
|
#include "ibyte_to_cbyte.h"
|
2016-01-19 17:37:30 +00:00
|
|
|
#include "ibyte_to_cshort.h"
|
2015-02-03 18:40:26 +00:00
|
|
|
#include "ibyte_to_complex.h"
|
|
|
|
#include "ishort_to_cshort.h"
|
|
|
|
#include "ishort_to_complex.h"
|
2012-02-19 17:45:51 +00:00
|
|
|
#include "direct_resampler_conditioner.h"
|
2018-02-03 09:49:03 +00:00
|
|
|
#include "mmse_resampler_conditioner.h"
|
2012-02-24 16:06:14 +00:00
|
|
|
#include "fir_filter.h"
|
2012-07-18 13:29:18 +00:00
|
|
|
#include "freq_xlating_fir_filter.h"
|
2014-02-18 19:40:44 +00:00
|
|
|
#include "beamformer_filter.h"
|
2017-02-21 10:35:18 +00:00
|
|
|
#include "pulse_blanking_filter.h"
|
2017-06-09 12:11:20 +00:00
|
|
|
#include "notch_filter.h"
|
2017-08-21 11:11:18 +00:00
|
|
|
#include "notch_filter_lite.h"
|
2011-10-01 18:45:20 +00:00
|
|
|
#include "gps_l1_ca_pcps_acquisition.h"
|
2015-04-24 17:11:45 +00:00
|
|
|
#include "gps_l2_m_pcps_acquisition.h"
|
2017-12-04 16:07:54 +00:00
|
|
|
#include "gps_l5i_pcps_acquisition.h"
|
2013-08-28 17:17:57 +00:00
|
|
|
#include "gps_l1_ca_pcps_tong_acquisition.h"
|
2013-03-20 18:19:26 +00:00
|
|
|
#include "gps_l1_ca_pcps_assisted_acquisition.h"
|
2013-08-20 18:05:26 +00:00
|
|
|
#include "gps_l1_ca_pcps_acquisition_fine_doppler.h"
|
2014-07-23 23:38:58 +00:00
|
|
|
#include "gps_l1_ca_pcps_quicksync_acquisition.h"
|
2012-09-03 11:58:28 +00:00
|
|
|
#include "galileo_e1_pcps_ambiguous_acquisition.h"
|
2013-08-28 17:17:57 +00:00
|
|
|
#include "galileo_e1_pcps_8ms_ambiguous_acquisition.h"
|
|
|
|
#include "galileo_e1_pcps_tong_ambiguous_acquisition.h"
|
|
|
|
#include "galileo_e1_pcps_cccwsr_ambiguous_acquisition.h"
|
2014-07-23 23:38:58 +00:00
|
|
|
#include "galileo_e1_pcps_quicksync_ambiguous_acquisition.h"
|
2014-08-05 00:01:37 +00:00
|
|
|
#include "galileo_e5a_noncoherent_iq_acquisition_caf.h"
|
2018-02-07 13:26:25 +00:00
|
|
|
#include "galileo_e5a_pcps_acquisition.h"
|
2017-06-01 23:53:17 +00:00
|
|
|
#include "glonass_l1_ca_pcps_acquisition.h"
|
2018-03-24 18:42:04 +00:00
|
|
|
#include "glonass_l2_ca_pcps_acquisition.h"
|
2011-10-01 18:45:20 +00:00
|
|
|
#include "gps_l1_ca_dll_pll_tracking.h"
|
2015-11-30 10:41:42 +00:00
|
|
|
#include "gps_l1_ca_dll_pll_c_aid_tracking.h"
|
2012-03-16 10:55:58 +00:00
|
|
|
#include "gps_l1_ca_tcp_connector_tracking.h"
|
2012-09-03 11:58:28 +00:00
|
|
|
#include "galileo_e1_dll_pll_veml_tracking.h"
|
2012-10-19 13:38:25 +00:00
|
|
|
#include "galileo_e1_tcp_connector_tracking.h"
|
2014-06-20 16:23:44 +00:00
|
|
|
#include "galileo_e5a_dll_pll_tracking.h"
|
2015-04-30 15:48:21 +00:00
|
|
|
#include "gps_l2_m_dll_pll_tracking.h"
|
2017-07-24 01:49:15 +00:00
|
|
|
#include "glonass_l1_ca_dll_pll_tracking.h"
|
2017-08-17 14:08:12 +00:00
|
|
|
#include "glonass_l1_ca_dll_pll_c_aid_tracking.h"
|
2018-03-24 18:42:04 +00:00
|
|
|
#include "glonass_l2_ca_dll_pll_tracking.h"
|
|
|
|
#include "glonass_l2_ca_dll_pll_c_aid_tracking.h"
|
2018-04-28 10:33:46 +00:00
|
|
|
#include "gps_l5_dll_pll_tracking.h"
|
2011-10-01 18:45:20 +00:00
|
|
|
#include "gps_l1_ca_telemetry_decoder.h"
|
2016-11-03 18:33:04 +00:00
|
|
|
#include "gps_l2c_telemetry_decoder.h"
|
2017-11-29 14:51:30 +00:00
|
|
|
#include "gps_l5_telemetry_decoder.h"
|
2013-07-15 17:07:10 +00:00
|
|
|
#include "galileo_e1b_telemetry_decoder.h"
|
2014-08-05 00:01:37 +00:00
|
|
|
#include "galileo_e5a_telemetry_decoder.h"
|
2017-08-21 04:23:57 +00:00
|
|
|
#include "glonass_l1_ca_telemetry_decoder.h"
|
2018-03-24 18:42:04 +00:00
|
|
|
#include "glonass_l2_ca_telemetry_decoder.h"
|
2013-11-09 23:11:46 +00:00
|
|
|
#include "sbas_l1_telemetry_decoder.h"
|
2014-06-10 16:58:17 +00:00
|
|
|
#include "hybrid_observables.h"
|
2017-04-20 14:10:12 +00:00
|
|
|
#include "rtklib_pvt.h"
|
2011-10-01 18:45:20 +00:00
|
|
|
|
2018-05-16 09:36:37 +00:00
|
|
|
#if RAW_UDP
|
|
|
|
#include "custom_udp_signal_source.h"
|
|
|
|
#endif
|
|
|
|
|
2017-05-05 14:37:29 +00:00
|
|
|
#if ENABLE_FPGA
|
|
|
|
#include "gps_l1_ca_pcps_acquisition_fpga.h"
|
2018-03-02 16:40:13 +00:00
|
|
|
#include "gps_l1_ca_dll_pll_tracking_fpga.h"
|
2017-05-05 14:37:29 +00:00
|
|
|
#endif
|
|
|
|
|
2014-03-15 01:21:17 +00:00
|
|
|
#if OPENCL_BLOCKS
|
2015-05-11 19:36:39 +00:00
|
|
|
#include "gps_l1_ca_pcps_opencl_acquisition.h"
|
2013-10-01 20:32:04 +00:00
|
|
|
#endif
|
|
|
|
|
2012-07-30 15:46:07 +00:00
|
|
|
#if GN3S_DRIVER
|
2015-05-11 19:36:39 +00:00
|
|
|
#include "gn3s_signal_source.h"
|
2012-07-30 15:46:07 +00:00
|
|
|
#endif
|
|
|
|
|
2014-02-17 18:53:45 +00:00
|
|
|
#if RAW_ARRAY_DRIVER
|
2015-05-11 19:36:39 +00:00
|
|
|
#include "raw_array_signal_source.h"
|
2014-02-17 18:53:45 +00:00
|
|
|
#endif
|
|
|
|
|
2014-12-15 16:39:22 +00:00
|
|
|
#if OSMOSDR_DRIVER
|
2015-05-11 19:36:39 +00:00
|
|
|
#include "osmosdr_signal_source.h"
|
2012-08-01 13:11:02 +00:00
|
|
|
#endif
|
|
|
|
|
2014-11-14 20:42:22 +00:00
|
|
|
#if UHD_DRIVER
|
2015-05-11 19:36:39 +00:00
|
|
|
#include "uhd_signal_source.h"
|
2014-11-14 20:42:22 +00:00
|
|
|
#endif
|
|
|
|
|
2017-10-29 05:51:22 +00:00
|
|
|
#if PLUTOSDR_DRIVER
|
|
|
|
#include "plutosdr_signal_source.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if FMCOMMS2_DRIVER
|
|
|
|
#include "fmcomms2_signal_source.h"
|
|
|
|
#endif
|
|
|
|
|
2018-03-02 10:30:36 +00:00
|
|
|
#if AD9361_DRIVER
|
|
|
|
#include "ad9361_fpga_signal_source.h"
|
|
|
|
#endif
|
|
|
|
|
2015-03-03 17:07:26 +00:00
|
|
|
#if FLEXIBAND_DRIVER
|
2015-05-11 19:36:39 +00:00
|
|
|
#include "flexiband_signal_source.h"
|
2015-03-03 17:07:26 +00:00
|
|
|
#endif
|
|
|
|
|
2015-08-25 15:07:36 +00:00
|
|
|
#if CUDA_GPU_ACCEL
|
|
|
|
#include "gps_l1_ca_dll_pll_tracking_gpu.h"
|
|
|
|
#endif
|
|
|
|
|
2018-02-26 02:15:53 +00:00
|
|
|
#include <glog/logging.h>
|
|
|
|
#include <string>
|
|
|
|
#include <sstream>
|
|
|
|
#include <iostream>
|
|
|
|
|
2014-11-14 20:42:22 +00:00
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
using google::LogMessage;
|
|
|
|
|
2011-12-26 05:04:27 +00:00
|
|
|
|
2018-03-03 01:03:39 +00:00
|
|
|
GNSSBlockFactory::GNSSBlockFactory() {}
|
|
|
|
GNSSBlockFactory::~GNSSBlockFactory() {}
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetSignalSource(
|
2018-03-03 01:03:39 +00:00
|
|
|
std::shared_ptr<ConfigurationInterface> configuration, gr::msg_queue::sptr queue, int ID)
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
|
|
|
std::string default_implementation = "File_Signal_Source";
|
2018-03-03 01:03:39 +00:00
|
|
|
std::string role = "SignalSource"; //backwards compatibility for old conf files
|
2018-05-01 21:32:52 +00:00
|
|
|
try
|
2015-02-27 17:21:25 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
if (ID != -1)
|
|
|
|
{
|
|
|
|
role = "SignalSource" + std::to_string(ID);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (const std::exception &e)
|
|
|
|
{
|
|
|
|
LOG(WARNING) << e.what();
|
2015-02-27 17:21:25 +00:00
|
|
|
}
|
2015-02-12 17:56:05 +00:00
|
|
|
std::string implementation = configuration->property(role + ".implementation", default_implementation);
|
2014-03-16 19:58:29 +00:00
|
|
|
LOG(INFO) << "Getting SignalSource with implementation " << implementation;
|
2015-02-12 17:56:05 +00:00
|
|
|
return GetBlock(configuration, role, implementation, 0, 1, queue);
|
2011-10-01 18:45:20 +00:00
|
|
|
}
|
|
|
|
|
2012-11-01 17:40:26 +00:00
|
|
|
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetSignalConditioner(
|
2018-03-03 01:03:39 +00:00
|
|
|
std::shared_ptr<ConfigurationInterface> configuration, int ID)
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
|
|
|
std::string default_implementation = "Pass_Through";
|
2015-02-12 17:56:05 +00:00
|
|
|
//backwards compatibility for old conf files
|
2018-03-03 01:03:39 +00:00
|
|
|
std::string role_conditioner = "SignalConditioner";
|
2015-02-27 17:21:25 +00:00
|
|
|
std::string role_datatypeadapter = "DataTypeAdapter";
|
|
|
|
std::string role_inputfilter = "InputFilter";
|
|
|
|
std::string role_resampler = "Resampler";
|
2018-05-01 21:32:52 +00:00
|
|
|
try
|
2015-02-27 17:21:25 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
if (ID != -1)
|
|
|
|
{
|
|
|
|
role_conditioner = "SignalConditioner" + std::to_string(ID);
|
|
|
|
role_datatypeadapter = "DataTypeAdapter" + std::to_string(ID);
|
|
|
|
role_inputfilter = "InputFilter" + std::to_string(ID);
|
|
|
|
role_resampler = "Resampler" + std::to_string(ID);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (const std::exception &e)
|
|
|
|
{
|
|
|
|
LOG(WARNING) << e.what();
|
2015-02-27 17:21:25 +00:00
|
|
|
}
|
2016-05-09 23:32:26 +00:00
|
|
|
std::string signal_conditioner = configuration->property(role_conditioner + ".implementation", default_implementation);
|
2015-02-12 17:56:05 +00:00
|
|
|
|
2012-07-18 13:29:18 +00:00
|
|
|
std::string data_type_adapter;
|
|
|
|
std::string input_filter;
|
|
|
|
std::string resampler;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (signal_conditioner.compare("Pass_Through") == 0)
|
2012-07-18 13:29:18 +00:00
|
|
|
{
|
|
|
|
data_type_adapter = "Pass_Through";
|
|
|
|
input_filter = "Pass_Through";
|
|
|
|
resampler = "Pass_Through";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-05-09 23:32:26 +00:00
|
|
|
data_type_adapter = configuration->property(role_datatypeadapter + ".implementation", default_implementation);
|
|
|
|
input_filter = configuration->property(role_inputfilter + ".implementation", default_implementation);
|
|
|
|
resampler = configuration->property(role_resampler + ".implementation", default_implementation);
|
2012-07-18 13:29:18 +00:00
|
|
|
}
|
|
|
|
|
2014-03-16 19:58:29 +00:00
|
|
|
LOG(INFO) << "Getting SignalConditioner with DataTypeAdapter implementation: "
|
2018-03-03 01:03:39 +00:00
|
|
|
<< data_type_adapter << ", InputFilter implementation: "
|
|
|
|
<< input_filter << ", and Resampler implementation: "
|
|
|
|
<< resampler;
|
2012-02-19 17:45:51 +00:00
|
|
|
|
2018-03-03 01:03:39 +00:00
|
|
|
if (signal_conditioner.compare("Array_Signal_Conditioner") == 0)
|
2014-03-16 19:58:29 +00:00
|
|
|
{
|
|
|
|
//instantiate the array version
|
2016-11-03 11:02:25 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> conditioner_(new ArraySignalConditioner(configuration.get(),
|
2018-06-03 12:50:22 +00:00
|
|
|
GetBlock(configuration, role_datatypeadapter, data_type_adapter, 1, 1),
|
|
|
|
GetBlock(configuration, role_inputfilter, input_filter, 1, 1),
|
|
|
|
GetBlock(configuration, role_resampler, resampler, 1, 1),
|
2016-05-09 16:53:48 +00:00
|
|
|
role_conditioner, "Signal_Conditioner"));
|
2014-04-11 18:18:59 +00:00
|
|
|
return conditioner_;
|
2014-03-16 19:58:29 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
//single-antenna version
|
2016-05-02 15:26:32 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> conditioner_(new SignalConditioner(configuration.get(),
|
2018-06-03 12:50:22 +00:00
|
|
|
GetBlock(configuration, role_datatypeadapter, data_type_adapter, 1, 1),
|
|
|
|
GetBlock(configuration, role_inputfilter, input_filter, 1, 1),
|
|
|
|
GetBlock(configuration, role_resampler, resampler, 1, 1),
|
2016-05-09 16:53:48 +00:00
|
|
|
role_conditioner, "Signal_Conditioner"));
|
2014-04-11 18:18:59 +00:00
|
|
|
return conditioner_;
|
2014-03-16 19:58:29 +00:00
|
|
|
}
|
2011-10-01 18:45:20 +00:00
|
|
|
}
|
|
|
|
|
2012-11-01 17:40:26 +00:00
|
|
|
|
2016-05-09 23:32:26 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetObservables(std::shared_ptr<ConfigurationInterface> configuration)
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
2017-04-12 15:04:51 +00:00
|
|
|
std::string default_implementation = "Hybrid_Observables";
|
2014-03-16 19:58:29 +00:00
|
|
|
std::string implementation = configuration->property("Observables.implementation", default_implementation);
|
|
|
|
LOG(INFO) << "Getting Observables with implementation " << implementation;
|
2016-04-21 16:54:08 +00:00
|
|
|
unsigned int Galileo_channels = configuration->property("Channels_1B.count", 0);
|
2015-05-07 19:34:37 +00:00
|
|
|
Galileo_channels += configuration->property("Channels_5X.count", 0);
|
2016-04-21 16:54:08 +00:00
|
|
|
unsigned int GPS_channels = configuration->property("Channels_1C.count", 0);
|
2015-05-06 23:51:34 +00:00
|
|
|
GPS_channels += configuration->property("Channels_2S.count", 0);
|
2017-12-11 11:17:01 +00:00
|
|
|
GPS_channels += configuration->property("Channels_L5.count", 0);
|
2017-06-05 19:58:20 +00:00
|
|
|
unsigned int Glonass_channels = configuration->property("Channels_1G.count", 0);
|
2018-04-28 10:33:46 +00:00
|
|
|
unsigned int extra_channels = 1; // For monitor channel sample counter
|
2018-02-13 17:16:03 +00:00
|
|
|
return GetBlock(configuration, "Observables", implementation,
|
2018-04-28 10:33:46 +00:00
|
|
|
Galileo_channels +
|
2018-02-13 17:16:03 +00:00
|
|
|
GPS_channels +
|
|
|
|
Glonass_channels +
|
|
|
|
extra_channels,
|
2018-04-28 10:33:46 +00:00
|
|
|
Galileo_channels +
|
2018-02-13 17:16:03 +00:00
|
|
|
GPS_channels +
|
|
|
|
Glonass_channels);
|
2011-10-01 18:45:20 +00:00
|
|
|
}
|
|
|
|
|
2012-11-01 17:40:26 +00:00
|
|
|
|
2016-05-09 23:32:26 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetPVT(std::shared_ptr<ConfigurationInterface> configuration)
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
2017-04-29 17:12:27 +00:00
|
|
|
std::string default_implementation = "RTKLIB_PVT";
|
2014-03-16 19:58:29 +00:00
|
|
|
std::string implementation = configuration->property("PVT.implementation", default_implementation);
|
|
|
|
LOG(INFO) << "Getting PVT with implementation " << implementation;
|
2017-04-29 17:12:27 +00:00
|
|
|
unsigned int Galileo_channels = configuration->property("Channels_1B.count", 0);
|
2015-05-07 19:34:37 +00:00
|
|
|
Galileo_channels += configuration->property("Channels_5X.count", 0);
|
2017-04-29 17:12:27 +00:00
|
|
|
unsigned int GPS_channels = configuration->property("Channels_1C.count", 0);
|
2015-05-06 23:51:34 +00:00
|
|
|
GPS_channels += configuration->property("Channels_2S.count", 0);
|
2017-12-11 11:17:01 +00:00
|
|
|
GPS_channels += configuration->property("Channels_L5.count", 0);
|
2017-06-05 19:58:20 +00:00
|
|
|
unsigned int Glonass_channels = configuration->property("Channels_1G.count", 0);
|
|
|
|
return GetBlock(configuration, "PVT", implementation, Galileo_channels + GPS_channels + Glonass_channels, 0);
|
2011-10-01 18:45:20 +00:00
|
|
|
}
|
|
|
|
|
2012-11-01 17:40:26 +00:00
|
|
|
|
2015-05-06 23:51:34 +00:00
|
|
|
//********* GPS L1 C/A CHANNEL *****************
|
|
|
|
std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetChannel_1C(
|
2018-03-03 01:03:39 +00:00
|
|
|
std::shared_ptr<ConfigurationInterface> configuration,
|
|
|
|
std::string acq, std::string trk, std::string tlm, int channel,
|
|
|
|
gr::msg_queue::sptr queue)
|
2015-05-06 23:51:34 +00:00
|
|
|
{
|
2016-05-06 15:01:11 +00:00
|
|
|
//"appendix" is added to the "role" with the aim of Acquisition, Tracking and Telemetry Decoder adapters
|
2016-11-03 11:02:25 +00:00
|
|
|
//can find their specific configurations when they read the config
|
2016-04-21 16:54:08 +00:00
|
|
|
//TODO: REMOVE APPENDIX!! AND CHECK ALTERNATIVE MECHANISM TO GET PARTICULARIZED PARAMETERS
|
2015-05-06 23:51:34 +00:00
|
|
|
LOG(INFO) << "Instantiating Channel " << channel << " with Acquisition Implementation: "
|
2018-03-03 01:03:39 +00:00
|
|
|
<< acq << ", Tracking Implementation: " << trk << ", Telemetry Decoder implementation: " << tlm;
|
2015-05-06 23:51:34 +00:00
|
|
|
|
2018-05-01 21:32:52 +00:00
|
|
|
std::string aux = configuration->property("Acquisition_1C" + std::to_string(channel) + ".implementation", std::string("W"));
|
2015-05-11 15:18:26 +00:00
|
|
|
std::string appendix1;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2015-05-11 15:18:26 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix1 = std::to_string(channel);
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-11-03 11:02:25 +00:00
|
|
|
appendix1 = "";
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
2018-05-01 21:32:52 +00:00
|
|
|
aux = configuration->property("Tracking_1C" + std::to_string(channel) + ".implementation", std::string("W"));
|
2015-05-11 15:18:26 +00:00
|
|
|
std::string appendix2;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2015-05-11 15:18:26 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix2 = std::to_string(channel);
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-11-03 11:02:25 +00:00
|
|
|
appendix2 = "";
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
2018-05-01 21:32:52 +00:00
|
|
|
aux = configuration->property("TelemetryDecoder_1C" + std::to_string(channel) + ".implementation", std::string("W"));
|
2015-05-11 15:18:26 +00:00
|
|
|
std::string appendix3;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2015-05-11 15:18:26 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix3 = std::to_string(channel);
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-11-03 11:02:25 +00:00
|
|
|
appendix3 = "";
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
2016-08-15 09:57:12 +00:00
|
|
|
// Automatically detect input data type
|
|
|
|
std::shared_ptr<InMemoryConfiguration> config;
|
|
|
|
config = std::make_shared<InMemoryConfiguration>();
|
|
|
|
std::string default_item_type = "gr_complex";
|
|
|
|
std::string acq_item_type = configuration->property("Acquisition_1C" + appendix1 + ".item_type", default_item_type);
|
|
|
|
std::string trk_item_type = configuration->property("Tracking_1C" + appendix2 + ".item_type", default_item_type);
|
2018-03-03 01:03:39 +00:00
|
|
|
if (acq_item_type.compare(trk_item_type))
|
2016-08-15 09:57:12 +00:00
|
|
|
{
|
|
|
|
LOG(ERROR) << "Acquisition and Tracking blocks must have the same input data type!";
|
|
|
|
}
|
|
|
|
config->set_property("Channel.item_type", acq_item_type);
|
2015-05-11 15:18:26 +00:00
|
|
|
|
2016-08-15 09:57:12 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> pass_through_ = GetBlock(config, "Channel", "Pass_Through", 1, 1, queue);
|
2016-05-09 14:44:54 +00:00
|
|
|
std::unique_ptr<AcquisitionInterface> acq_ = GetAcqBlock(configuration, "Acquisition_1C" + appendix1, acq, 1, 0);
|
2018-03-03 01:03:39 +00:00
|
|
|
std::unique_ptr<TrackingInterface> trk_ = GetTrkBlock(configuration, "Tracking_1C" + appendix2, trk, 1, 1);
|
2016-04-13 15:18:29 +00:00
|
|
|
std::unique_ptr<TelemetryDecoderInterface> tlm_ = GetTlmBlock(configuration, "TelemetryDecoder_1C" + appendix3, tlm, 1, 1);
|
2015-05-06 23:51:34 +00:00
|
|
|
|
2016-05-02 15:26:32 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> channel_(new Channel(configuration.get(), channel, std::move(pass_through_),
|
2018-03-03 01:03:39 +00:00
|
|
|
std::move(acq_),
|
|
|
|
std::move(trk_),
|
|
|
|
std::move(tlm_),
|
|
|
|
"Channel", "1C", queue));
|
2015-05-06 23:51:34 +00:00
|
|
|
|
|
|
|
return channel_;
|
|
|
|
}
|
|
|
|
|
2018-01-26 11:49:04 +00:00
|
|
|
|
2015-05-06 23:51:34 +00:00
|
|
|
//********* GPS L2C (M) CHANNEL *****************
|
|
|
|
std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetChannel_2S(
|
2018-03-03 01:03:39 +00:00
|
|
|
std::shared_ptr<ConfigurationInterface> configuration,
|
|
|
|
std::string acq, std::string trk, std::string tlm, int channel,
|
|
|
|
gr::msg_queue::sptr queue)
|
2015-05-06 23:51:34 +00:00
|
|
|
{
|
|
|
|
LOG(INFO) << "Instantiating Channel " << channel << " with Acquisition Implementation: "
|
2018-03-03 01:03:39 +00:00
|
|
|
<< acq << ", Tracking Implementation: " << trk << ", Telemetry Decoder implementation: " << tlm;
|
2018-05-01 21:32:52 +00:00
|
|
|
std::string aux = configuration->property("Acquisition_2S" + std::to_string(channel) + ".implementation", std::string("W"));
|
2015-05-11 15:18:26 +00:00
|
|
|
std::string appendix1;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2015-05-11 15:18:26 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix1 = std::to_string(channel);
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-11-03 11:02:25 +00:00
|
|
|
appendix1 = "";
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
2018-05-01 21:32:52 +00:00
|
|
|
aux = configuration->property("Tracking_2S" + std::to_string(channel) + ".implementation", std::string("W"));
|
2015-05-11 15:18:26 +00:00
|
|
|
std::string appendix2;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2015-05-11 15:18:26 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix2 = std::to_string(channel);
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-11-03 11:02:25 +00:00
|
|
|
appendix2 = "";
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
2018-05-01 21:32:52 +00:00
|
|
|
aux = configuration->property("TelemetryDecoder_2S" + std::to_string(channel) + ".implementation", std::string("W"));
|
2015-05-11 15:18:26 +00:00
|
|
|
std::string appendix3;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2015-05-11 15:18:26 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix3 = std::to_string(channel);
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-11-03 11:02:25 +00:00
|
|
|
appendix3 = "";
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
2016-08-15 09:57:12 +00:00
|
|
|
// Automatically detect input data type
|
|
|
|
std::shared_ptr<InMemoryConfiguration> config;
|
|
|
|
config = std::make_shared<InMemoryConfiguration>();
|
|
|
|
std::string default_item_type = "gr_complex";
|
|
|
|
std::string acq_item_type = configuration->property("Acquisition_2S" + appendix1 + ".item_type", default_item_type);
|
|
|
|
std::string trk_item_type = configuration->property("Tracking_2S" + appendix2 + ".item_type", default_item_type);
|
2018-03-03 01:03:39 +00:00
|
|
|
if (acq_item_type.compare(trk_item_type))
|
2016-08-15 09:57:12 +00:00
|
|
|
{
|
|
|
|
LOG(ERROR) << "Acquisition and Tracking blocks must have the same input data type!";
|
|
|
|
}
|
|
|
|
config->set_property("Channel.item_type", acq_item_type);
|
2015-05-06 23:51:34 +00:00
|
|
|
|
|
|
|
std::unique_ptr<GNSSBlockInterface> pass_through_ = GetBlock(configuration, "Channel", "Pass_Through", 1, 1, queue);
|
2018-03-03 01:03:39 +00:00
|
|
|
std::unique_ptr<AcquisitionInterface> acq_ = GetAcqBlock(configuration, "Acquisition_2S" + appendix1, acq, 1, 0);
|
2016-05-09 09:51:42 +00:00
|
|
|
std::unique_ptr<TrackingInterface> trk_ = GetTrkBlock(configuration, "Tracking_2S" + appendix2, trk, 1, 1);
|
2016-04-13 15:18:29 +00:00
|
|
|
std::unique_ptr<TelemetryDecoderInterface> tlm_ = GetTlmBlock(configuration, "TelemetryDecoder_2S" + appendix3, tlm, 1, 1);
|
2015-05-06 23:51:34 +00:00
|
|
|
|
2016-05-02 15:26:32 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> channel_(new Channel(configuration.get(), channel, std::move(pass_through_),
|
2018-03-03 01:03:39 +00:00
|
|
|
std::move(acq_),
|
|
|
|
std::move(trk_),
|
|
|
|
std::move(tlm_),
|
|
|
|
"Channel", "2S", queue));
|
2015-05-06 23:51:34 +00:00
|
|
|
|
|
|
|
return channel_;
|
|
|
|
}
|
2012-11-01 17:40:26 +00:00
|
|
|
|
2018-01-26 11:49:04 +00:00
|
|
|
|
2015-05-06 23:51:34 +00:00
|
|
|
//********* GALILEO E1 B CHANNEL *****************
|
|
|
|
std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetChannel_1B(
|
2018-03-03 01:03:39 +00:00
|
|
|
std::shared_ptr<ConfigurationInterface> configuration,
|
|
|
|
std::string acq, std::string trk, std::string tlm, int channel,
|
|
|
|
gr::msg_queue::sptr queue)
|
2015-05-06 23:51:34 +00:00
|
|
|
{
|
|
|
|
std::stringstream stream;
|
|
|
|
stream << channel;
|
|
|
|
std::string id = stream.str();
|
|
|
|
LOG(INFO) << "Instantiating Channel " << id << " with Acquisition Implementation: "
|
2018-03-03 01:03:39 +00:00
|
|
|
<< acq << ", Tracking Implementation: " << trk << ", Telemetry Decoder implementation: " << tlm;
|
2018-05-01 21:32:52 +00:00
|
|
|
std::string aux = configuration->property("Acquisition_1B" + std::to_string(channel) + ".implementation", std::string("W"));
|
2015-05-11 15:18:26 +00:00
|
|
|
std::string appendix1;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2015-05-11 15:18:26 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix1 = std::to_string(channel);
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-11-03 11:02:25 +00:00
|
|
|
appendix1 = "";
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
2018-05-01 21:32:52 +00:00
|
|
|
aux = configuration->property("Tracking_1B" + std::to_string(channel) + ".implementation", std::string("W"));
|
2015-05-11 15:18:26 +00:00
|
|
|
std::string appendix2;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2015-05-11 15:18:26 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix2 = std::to_string(channel);
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-11-03 11:02:25 +00:00
|
|
|
appendix2 = "";
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
2018-05-01 21:32:52 +00:00
|
|
|
aux = configuration->property("TelemetryDecoder_1B" + std::to_string(channel) + ".implementation", std::string("W"));
|
2015-05-11 15:18:26 +00:00
|
|
|
std::string appendix3;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2015-05-11 15:18:26 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix3 = std::to_string(channel);
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-11-03 11:02:25 +00:00
|
|
|
appendix3 = "";
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
2016-08-15 09:57:12 +00:00
|
|
|
// Automatically detect input data type
|
|
|
|
std::shared_ptr<InMemoryConfiguration> config;
|
|
|
|
config = std::make_shared<InMemoryConfiguration>();
|
|
|
|
std::string default_item_type = "gr_complex";
|
|
|
|
std::string acq_item_type = configuration->property("Acquisition_1B" + appendix1 + ".item_type", default_item_type);
|
|
|
|
std::string trk_item_type = configuration->property("Tracking_1B" + appendix2 + ".item_type", default_item_type);
|
2018-03-03 01:03:39 +00:00
|
|
|
if (acq_item_type.compare(trk_item_type))
|
2016-08-15 09:57:12 +00:00
|
|
|
{
|
|
|
|
LOG(ERROR) << "Acquisition and Tracking blocks must have the same input data type!";
|
|
|
|
}
|
|
|
|
config->set_property("Channel.item_type", acq_item_type);
|
2015-05-06 23:51:34 +00:00
|
|
|
|
|
|
|
std::unique_ptr<GNSSBlockInterface> pass_through_ = GetBlock(configuration, "Channel", "Pass_Through", 1, 1, queue);
|
2016-05-09 14:44:54 +00:00
|
|
|
std::unique_ptr<AcquisitionInterface> acq_ = GetAcqBlock(configuration, "Acquisition_1B" + appendix1, acq, 1, 0);
|
2016-05-09 09:51:42 +00:00
|
|
|
std::unique_ptr<TrackingInterface> trk_ = GetTrkBlock(configuration, "Tracking_1B" + appendix2, trk, 1, 1);
|
2016-04-13 15:18:29 +00:00
|
|
|
std::unique_ptr<TelemetryDecoderInterface> tlm_ = GetTlmBlock(configuration, "TelemetryDecoder_1B" + appendix3, tlm, 1, 1);
|
2015-05-06 23:51:34 +00:00
|
|
|
|
2016-05-02 15:26:32 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> channel_(new Channel(configuration.get(), channel, std::move(pass_through_),
|
2018-03-03 01:03:39 +00:00
|
|
|
std::move(acq_),
|
|
|
|
std::move(trk_),
|
|
|
|
std::move(tlm_),
|
|
|
|
"Channel", "1B", queue));
|
2015-05-06 23:51:34 +00:00
|
|
|
|
|
|
|
return channel_;
|
|
|
|
}
|
|
|
|
|
2018-01-26 11:49:04 +00:00
|
|
|
|
2015-05-06 23:51:34 +00:00
|
|
|
//********* GALILEO E5a CHANNEL *****************
|
2015-05-07 19:34:37 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetChannel_5X(
|
2018-03-03 01:03:39 +00:00
|
|
|
std::shared_ptr<ConfigurationInterface> configuration,
|
|
|
|
std::string acq, std::string trk, std::string tlm, int channel,
|
|
|
|
gr::msg_queue::sptr queue)
|
2015-05-06 23:51:34 +00:00
|
|
|
{
|
|
|
|
std::stringstream stream;
|
|
|
|
stream << channel;
|
|
|
|
std::string id = stream.str();
|
|
|
|
LOG(INFO) << "Instantiating Channel " << id << " with Acquisition Implementation: "
|
2018-03-03 01:03:39 +00:00
|
|
|
<< acq << ", Tracking Implementation: " << trk << ", Telemetry Decoder implementation: " << tlm;
|
2018-05-01 21:32:52 +00:00
|
|
|
std::string aux = configuration->property("Acquisition_5X" + std::to_string(channel) + ".implementation", std::string("W"));
|
2015-05-11 15:18:26 +00:00
|
|
|
std::string appendix1;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2015-05-11 15:18:26 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix1 = std::to_string(channel);
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-11-03 11:02:25 +00:00
|
|
|
appendix1 = "";
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
2018-05-01 21:32:52 +00:00
|
|
|
aux = configuration->property("Tracking_5X" + std::to_string(channel) + ".implementation", std::string("W"));
|
2015-05-11 15:18:26 +00:00
|
|
|
std::string appendix2;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2015-05-11 15:18:26 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix2 = std::to_string(channel);
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-11-03 11:02:25 +00:00
|
|
|
appendix2 = "";
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
2018-05-01 21:32:52 +00:00
|
|
|
aux = configuration->property("TelemetryDecoder_5X" + std::to_string(channel) + ".implementation", std::string("W"));
|
2015-05-11 15:18:26 +00:00
|
|
|
std::string appendix3;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2015-05-11 15:18:26 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix3 = std::to_string(channel);
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-11-03 11:02:25 +00:00
|
|
|
appendix3 = "";
|
2015-05-11 15:18:26 +00:00
|
|
|
}
|
2016-08-15 09:57:12 +00:00
|
|
|
// Automatically detect input data type
|
|
|
|
std::shared_ptr<InMemoryConfiguration> config;
|
|
|
|
config = std::make_shared<InMemoryConfiguration>();
|
|
|
|
std::string default_item_type = "gr_complex";
|
|
|
|
std::string acq_item_type = configuration->property("Acquisition_5X" + appendix1 + ".item_type", default_item_type);
|
|
|
|
std::string trk_item_type = configuration->property("Tracking_5X" + appendix2 + ".item_type", default_item_type);
|
2018-03-03 01:03:39 +00:00
|
|
|
if (acq_item_type.compare(trk_item_type))
|
2016-08-15 09:57:12 +00:00
|
|
|
{
|
|
|
|
LOG(ERROR) << "Acquisition and Tracking blocks must have the same input data type!";
|
|
|
|
}
|
|
|
|
config->set_property("Channel.item_type", acq_item_type);
|
2015-05-06 23:51:34 +00:00
|
|
|
|
|
|
|
std::unique_ptr<GNSSBlockInterface> pass_through_ = GetBlock(configuration, "Channel", "Pass_Through", 1, 1, queue);
|
2016-05-09 14:44:54 +00:00
|
|
|
std::unique_ptr<AcquisitionInterface> acq_ = GetAcqBlock(configuration, "Acquisition_5X" + appendix1, acq, 1, 0);
|
2016-05-09 09:51:42 +00:00
|
|
|
std::unique_ptr<TrackingInterface> trk_ = GetTrkBlock(configuration, "Tracking_5X" + appendix2, trk, 1, 1);
|
2016-04-13 15:18:29 +00:00
|
|
|
std::unique_ptr<TelemetryDecoderInterface> tlm_ = GetTlmBlock(configuration, "TelemetryDecoder_5X" + appendix3, tlm, 1, 1);
|
2015-05-06 23:51:34 +00:00
|
|
|
|
2016-05-02 15:26:32 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> channel_(new Channel(configuration.get(), channel, std::move(pass_through_),
|
2018-03-03 01:03:39 +00:00
|
|
|
std::move(acq_),
|
|
|
|
std::move(trk_),
|
|
|
|
std::move(tlm_),
|
|
|
|
"Channel", "5X", queue));
|
2015-05-06 23:51:34 +00:00
|
|
|
|
|
|
|
return channel_;
|
|
|
|
}
|
|
|
|
|
2018-01-26 11:49:04 +00:00
|
|
|
|
2017-06-01 23:53:17 +00:00
|
|
|
//********* GLONASS L1 C/A CHANNEL *****************
|
|
|
|
std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetChannel_1G(
|
2018-03-03 01:03:39 +00:00
|
|
|
std::shared_ptr<ConfigurationInterface> configuration,
|
|
|
|
std::string acq, std::string trk, std::string tlm, int channel,
|
|
|
|
boost::shared_ptr<gr::msg_queue> queue)
|
2017-06-01 23:53:17 +00:00
|
|
|
{
|
|
|
|
std::stringstream stream;
|
|
|
|
stream << channel;
|
|
|
|
std::string id = stream.str();
|
|
|
|
LOG(INFO) << "Instantiating Channel " << channel << " with Acquisition Implementation: "
|
2018-03-03 01:03:39 +00:00
|
|
|
<< acq << ", Tracking Implementation: " << trk << ", Telemetry Decoder Implementation: " << tlm;
|
2017-06-01 23:53:17 +00:00
|
|
|
|
2018-05-01 21:32:52 +00:00
|
|
|
std::string aux = configuration->property("Acquisition_1G" + std::to_string(channel) + ".implementation", std::string("W"));
|
2017-06-01 23:53:17 +00:00
|
|
|
std::string appendix1;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2017-06-01 23:53:17 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix1 = std::to_string(channel);
|
2017-06-01 23:53:17 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
appendix1 = "";
|
|
|
|
}
|
2018-05-01 21:32:52 +00:00
|
|
|
aux = configuration->property("Tracking_1G" + std::to_string(channel) + ".implementation", std::string("W"));
|
2017-06-01 23:53:17 +00:00
|
|
|
std::string appendix2;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2017-06-01 23:53:17 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix2 = std::to_string(channel);
|
2017-06-01 23:53:17 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
appendix2 = "";
|
|
|
|
}
|
2018-05-01 21:32:52 +00:00
|
|
|
aux = configuration->property("TelemetryDecoder_1G" + std::to_string(channel) + ".implementation", std::string("W"));
|
2017-06-01 23:53:17 +00:00
|
|
|
std::string appendix3;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2017-06-01 23:53:17 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix3 = std::to_string(channel);
|
2017-06-01 23:53:17 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
appendix3 = "";
|
|
|
|
}
|
|
|
|
// Automatically detect input data type
|
|
|
|
std::shared_ptr<InMemoryConfiguration> config;
|
|
|
|
config = std::make_shared<InMemoryConfiguration>();
|
|
|
|
std::string default_item_type = "gr_complex";
|
|
|
|
std::string acq_item_type = configuration->property("Acquisition_1G" + appendix1 + ".item_type", default_item_type);
|
|
|
|
std::string trk_item_type = configuration->property("Tracking_1G" + appendix2 + ".item_type", default_item_type);
|
2018-03-03 01:03:39 +00:00
|
|
|
if (acq_item_type.compare(trk_item_type))
|
2017-06-01 23:53:17 +00:00
|
|
|
{
|
|
|
|
LOG(ERROR) << "Acquisition and Tracking blocks must have the same input data type!";
|
|
|
|
}
|
|
|
|
config->set_property("Channel.item_type", acq_item_type);
|
|
|
|
|
|
|
|
std::unique_ptr<GNSSBlockInterface> pass_through_ = GetBlock(config, "Channel", "Pass_Through", 1, 1, queue);
|
|
|
|
std::unique_ptr<AcquisitionInterface> acq_ = GetAcqBlock(configuration, "Acquisition_1G" + appendix1, acq, 1, 0);
|
2018-03-03 01:03:39 +00:00
|
|
|
std::unique_ptr<TrackingInterface> trk_ = GetTrkBlock(configuration, "Tracking_1G" + appendix2, trk, 1, 1);
|
2017-06-01 23:53:17 +00:00
|
|
|
std::unique_ptr<TelemetryDecoderInterface> tlm_ = GetTlmBlock(configuration, "TelemetryDecoder_1G" + appendix3, tlm, 1, 1);
|
|
|
|
|
|
|
|
std::unique_ptr<GNSSBlockInterface> channel_(new Channel(configuration.get(), channel, std::move(pass_through_),
|
2018-03-03 01:03:39 +00:00
|
|
|
std::move(acq_),
|
|
|
|
std::move(trk_),
|
|
|
|
std::move(tlm_),
|
|
|
|
"Channel", "1G", queue));
|
2017-06-01 23:53:17 +00:00
|
|
|
|
|
|
|
return channel_;
|
|
|
|
}
|
|
|
|
|
2015-05-06 23:51:34 +00:00
|
|
|
|
2018-03-24 18:42:04 +00:00
|
|
|
//********* GLONASS L2 C/A CHANNEL *****************
|
|
|
|
std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetChannel_2G(
|
|
|
|
std::shared_ptr<ConfigurationInterface> configuration,
|
|
|
|
std::string acq, std::string trk, std::string tlm, int channel,
|
|
|
|
boost::shared_ptr<gr::msg_queue> queue)
|
|
|
|
{
|
|
|
|
std::stringstream stream;
|
|
|
|
stream << channel;
|
|
|
|
std::string id = stream.str();
|
|
|
|
LOG(INFO) << "Instantiating Channel " << channel << " with Acquisition Implementation: "
|
|
|
|
<< acq << ", Tracking Implementation: " << trk << ", Telemetry Decoder Implementation: " << tlm;
|
|
|
|
|
2018-05-01 21:32:52 +00:00
|
|
|
std::string aux = configuration->property("Acquisition_2G" + std::to_string(channel) + ".implementation", std::string("W"));
|
2018-03-24 18:42:04 +00:00
|
|
|
std::string appendix1;
|
|
|
|
if (aux.compare("W") != 0)
|
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix1 = std::to_string(channel);
|
2018-03-24 18:42:04 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
appendix1 = "";
|
|
|
|
}
|
2018-05-01 21:32:52 +00:00
|
|
|
aux = configuration->property("Tracking_2G" + std::to_string(channel) + ".implementation", std::string("W"));
|
2018-03-24 18:42:04 +00:00
|
|
|
std::string appendix2;
|
|
|
|
if (aux.compare("W") != 0)
|
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix2 = std::to_string(channel);
|
2018-03-24 18:42:04 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
appendix2 = "";
|
|
|
|
}
|
2018-05-01 21:32:52 +00:00
|
|
|
aux = configuration->property("TelemetryDecoder_2G" + std::to_string(channel) + ".implementation", std::string("W"));
|
2018-03-24 18:42:04 +00:00
|
|
|
std::string appendix3;
|
|
|
|
if (aux.compare("W") != 0)
|
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix3 = std::to_string(channel);
|
2018-03-24 18:42:04 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
appendix3 = "";
|
|
|
|
}
|
|
|
|
// Automatically detect input data type
|
|
|
|
std::shared_ptr<InMemoryConfiguration> config;
|
|
|
|
config = std::make_shared<InMemoryConfiguration>();
|
|
|
|
std::string default_item_type = "gr_complex";
|
|
|
|
std::string acq_item_type = configuration->property("Acquisition_2G" + appendix1 + ".item_type", default_item_type);
|
|
|
|
std::string trk_item_type = configuration->property("Tracking_2G" + appendix2 + ".item_type", default_item_type);
|
|
|
|
if (acq_item_type.compare(trk_item_type))
|
|
|
|
{
|
|
|
|
LOG(ERROR) << "Acquisition and Tracking blocks must have the same input data type!";
|
|
|
|
}
|
|
|
|
config->set_property("Channel.item_type", acq_item_type);
|
|
|
|
|
|
|
|
std::unique_ptr<GNSSBlockInterface> pass_through_ = GetBlock(config, "Channel", "Pass_Through", 1, 1, queue);
|
|
|
|
std::unique_ptr<AcquisitionInterface> acq_ = GetAcqBlock(configuration, "Acquisition_2G" + appendix1, acq, 1, 0);
|
|
|
|
std::unique_ptr<TrackingInterface> trk_ = GetTrkBlock(configuration, "Tracking_2G" + appendix2, trk, 1, 1);
|
|
|
|
std::unique_ptr<TelemetryDecoderInterface> tlm_ = GetTlmBlock(configuration, "TelemetryDecoder_2G" + appendix3, tlm, 1, 1);
|
|
|
|
|
|
|
|
std::unique_ptr<GNSSBlockInterface> channel_(new Channel(configuration.get(), channel, std::move(pass_through_),
|
|
|
|
std::move(acq_),
|
|
|
|
std::move(trk_),
|
|
|
|
std::move(tlm_),
|
|
|
|
"Channel", "2G", queue));
|
|
|
|
|
|
|
|
return channel_;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-11-30 16:42:19 +00:00
|
|
|
//********* GPS L5 CHANNEL *****************
|
|
|
|
std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetChannel_L5(
|
2018-03-03 01:03:39 +00:00
|
|
|
std::shared_ptr<ConfigurationInterface> configuration,
|
|
|
|
std::string acq, std::string trk, std::string tlm, int channel,
|
|
|
|
gr::msg_queue::sptr queue)
|
2017-11-30 16:42:19 +00:00
|
|
|
{
|
|
|
|
std::stringstream stream;
|
|
|
|
stream << channel;
|
|
|
|
std::string id = stream.str();
|
|
|
|
LOG(INFO) << "Instantiating Channel " << id << " with Acquisition Implementation: "
|
2018-03-03 01:03:39 +00:00
|
|
|
<< acq << ", Tracking Implementation: " << trk << ", Telemetry Decoder implementation: " << tlm;
|
2018-05-01 21:32:52 +00:00
|
|
|
std::string aux = configuration->property("Acquisition_L5" + std::to_string(channel) + ".implementation", std::string("W"));
|
2017-11-30 16:42:19 +00:00
|
|
|
std::string appendix1;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2017-11-30 16:42:19 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix1 = std::to_string(channel);
|
2017-11-30 16:42:19 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
appendix1 = "";
|
|
|
|
}
|
2018-05-01 21:32:52 +00:00
|
|
|
aux = configuration->property("Tracking_L5" + std::to_string(channel) + ".implementation", std::string("W"));
|
2017-11-30 16:42:19 +00:00
|
|
|
std::string appendix2;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2017-11-30 16:42:19 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix2 = std::to_string(channel);
|
2017-11-30 16:42:19 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
appendix2 = "";
|
|
|
|
}
|
2018-05-01 21:32:52 +00:00
|
|
|
aux = configuration->property("TelemetryDecoder_L5" + std::to_string(channel) + ".implementation", std::string("W"));
|
2017-11-30 16:42:19 +00:00
|
|
|
std::string appendix3;
|
2018-03-03 01:03:39 +00:00
|
|
|
if (aux.compare("W") != 0)
|
2017-11-30 16:42:19 +00:00
|
|
|
{
|
2018-05-01 21:32:52 +00:00
|
|
|
appendix3 = std::to_string(channel);
|
2017-11-30 16:42:19 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
appendix3 = "";
|
|
|
|
}
|
|
|
|
// Automatically detect input data type
|
|
|
|
std::shared_ptr<InMemoryConfiguration> config;
|
|
|
|
config = std::make_shared<InMemoryConfiguration>();
|
|
|
|
std::string default_item_type = "gr_complex";
|
|
|
|
std::string acq_item_type = configuration->property("Acquisition_L5" + appendix1 + ".item_type", default_item_type);
|
|
|
|
std::string trk_item_type = configuration->property("Tracking_L5" + appendix2 + ".item_type", default_item_type);
|
2018-03-03 01:03:39 +00:00
|
|
|
if (acq_item_type.compare(trk_item_type))
|
2017-11-30 16:42:19 +00:00
|
|
|
{
|
|
|
|
LOG(ERROR) << "Acquisition and Tracking blocks must have the same input data type!";
|
|
|
|
}
|
|
|
|
config->set_property("Channel.item_type", acq_item_type);
|
|
|
|
|
|
|
|
std::unique_ptr<GNSSBlockInterface> pass_through_ = GetBlock(configuration, "Channel", "Pass_Through", 1, 1, queue);
|
|
|
|
std::unique_ptr<AcquisitionInterface> acq_ = GetAcqBlock(configuration, "Acquisition_L5" + appendix1, acq, 1, 0);
|
|
|
|
std::unique_ptr<TrackingInterface> trk_ = GetTrkBlock(configuration, "Tracking_L5" + appendix2, trk, 1, 1);
|
|
|
|
std::unique_ptr<TelemetryDecoderInterface> tlm_ = GetTlmBlock(configuration, "TelemetryDecoder_L5" + appendix3, tlm, 1, 1);
|
|
|
|
|
|
|
|
std::unique_ptr<GNSSBlockInterface> channel_(new Channel(configuration.get(), channel, std::move(pass_through_),
|
2018-03-03 01:03:39 +00:00
|
|
|
std::move(acq_),
|
|
|
|
std::move(trk_),
|
|
|
|
std::move(tlm_),
|
|
|
|
"Channel", "L5", queue));
|
2017-11-30 16:42:19 +00:00
|
|
|
|
|
|
|
return channel_;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<std::vector<std::unique_ptr<GNSSBlockInterface>>> GNSSBlockFactory::GetChannels(
|
2018-03-03 01:03:39 +00:00
|
|
|
std::shared_ptr<ConfigurationInterface> configuration, gr::msg_queue::sptr queue)
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
2012-01-23 00:52:05 +00:00
|
|
|
std::string default_implementation = "Pass_Through";
|
2015-04-30 15:48:21 +00:00
|
|
|
std::string tracking_implementation;
|
2015-05-06 17:11:45 +00:00
|
|
|
std::string telemetry_decoder_implementation;
|
2014-06-10 16:58:17 +00:00
|
|
|
std::string acquisition_implementation;
|
2014-04-11 18:18:59 +00:00
|
|
|
|
2016-04-21 16:54:08 +00:00
|
|
|
unsigned int channel_absolute_id = 0;
|
2015-05-08 23:48:16 +00:00
|
|
|
|
2016-05-01 23:28:37 +00:00
|
|
|
unsigned int Channels_1C_count = configuration->property("Channels_1C.count", 0);
|
|
|
|
unsigned int Channels_1B_count = configuration->property("Channels_1B.count", 0);
|
2017-06-01 23:53:17 +00:00
|
|
|
unsigned int Channels_1G_count = configuration->property("Channels_1G.count", 0);
|
2018-03-24 18:42:04 +00:00
|
|
|
unsigned int Channels_2G_count = configuration->property("Channels_2G.count", 0);
|
2018-05-01 21:32:52 +00:00
|
|
|
unsigned int Channels_2S_count = configuration->property("Channels_2S.count", 0);
|
|
|
|
unsigned int Channels_5X_count = configuration->property("Channels_5X.count", 0);
|
2017-11-30 16:42:19 +00:00
|
|
|
unsigned int Channels_L5_count = configuration->property("Channels_L5.count", 0);
|
2015-05-08 23:48:16 +00:00
|
|
|
|
2016-04-21 16:54:08 +00:00
|
|
|
unsigned int total_channels = Channels_1C_count +
|
2018-03-03 01:03:39 +00:00
|
|
|
Channels_1B_count +
|
|
|
|
Channels_1G_count +
|
2018-05-01 21:32:52 +00:00
|
|
|
Channels_2S_count +
|
2018-04-28 10:33:46 +00:00
|
|
|
Channels_2G_count +
|
2018-05-01 21:32:52 +00:00
|
|
|
Channels_5X_count +
|
2018-03-03 01:03:39 +00:00
|
|
|
Channels_L5_count;
|
2018-01-23 23:52:09 +00:00
|
|
|
|
2015-05-10 21:17:17 +00:00
|
|
|
std::unique_ptr<std::vector<std::unique_ptr<GNSSBlockInterface>>> channels(new std::vector<std::unique_ptr<GNSSBlockInterface>>(total_channels));
|
2018-05-01 21:32:52 +00:00
|
|
|
try
|
|
|
|
{
|
|
|
|
//**************** GPS L1 C/A CHANNELS **********************
|
|
|
|
LOG(INFO) << "Getting " << Channels_1C_count << " GPS L1 C/A channels";
|
|
|
|
acquisition_implementation = configuration->property("Acquisition_1C.implementation", default_implementation);
|
|
|
|
tracking_implementation = configuration->property("Tracking_1C.implementation", default_implementation);
|
|
|
|
telemetry_decoder_implementation = configuration->property("TelemetryDecoder_1C.implementation", default_implementation);
|
|
|
|
|
|
|
|
for (unsigned int i = 0; i < Channels_1C_count; i++)
|
|
|
|
{
|
|
|
|
//(i.e. Acquisition_1C0.implementation=xxxx)
|
|
|
|
std::string acquisition_implementation_specific = configuration->property(
|
|
|
|
"Acquisition_1C" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
acquisition_implementation);
|
|
|
|
//(i.e. Tracking_1C0.implementation=xxxx)
|
|
|
|
std::string tracking_implementation_specific = configuration->property(
|
|
|
|
"Tracking_1C" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
tracking_implementation);
|
|
|
|
std::string telemetry_decoder_implementation_specific = configuration->property(
|
|
|
|
"TelemetryDecoder_1C" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
telemetry_decoder_implementation);
|
|
|
|
|
|
|
|
// Push back the channel to the vector of channels
|
2018-06-03 12:50:22 +00:00
|
|
|
channels->at(channel_absolute_id) = GetChannel_1C(configuration,
|
2018-05-01 21:32:52 +00:00
|
|
|
acquisition_implementation_specific,
|
|
|
|
tracking_implementation_specific,
|
|
|
|
telemetry_decoder_implementation_specific,
|
|
|
|
channel_absolute_id,
|
2018-06-03 12:50:22 +00:00
|
|
|
queue);
|
2018-05-01 21:32:52 +00:00
|
|
|
channel_absolute_id++;
|
|
|
|
}
|
|
|
|
|
|
|
|
//**************** GPS L2C (M) CHANNELS **********************
|
|
|
|
LOG(INFO) << "Getting " << Channels_2S_count << " GPS L2C (M) channels";
|
|
|
|
tracking_implementation = configuration->property("Tracking_2S.implementation", default_implementation);
|
|
|
|
telemetry_decoder_implementation = configuration->property("TelemetryDecoder_2S.implementation", default_implementation);
|
|
|
|
acquisition_implementation = configuration->property("Acquisition_2S.implementation", default_implementation);
|
|
|
|
for (unsigned int i = 0; i < Channels_2S_count; i++)
|
|
|
|
{
|
|
|
|
//(i.e. Acquisition_1C0.implementation=xxxx)
|
|
|
|
std::string acquisition_implementation_specific = configuration->property(
|
|
|
|
"Acquisition_2S" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
acquisition_implementation);
|
|
|
|
//(i.e. Tracking_1C0.implementation=xxxx)
|
|
|
|
std::string tracking_implementation_specific = configuration->property(
|
|
|
|
"Tracking_2S" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
tracking_implementation);
|
|
|
|
std::string telemetry_decoder_implementation_specific = configuration->property(
|
|
|
|
"TelemetryDecoder_2S" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
telemetry_decoder_implementation);
|
|
|
|
|
|
|
|
// Push back the channel to the vector of channels
|
2018-06-03 12:50:22 +00:00
|
|
|
channels->at(channel_absolute_id) = GetChannel_2S(configuration,
|
2018-05-01 21:32:52 +00:00
|
|
|
acquisition_implementation_specific,
|
|
|
|
tracking_implementation_specific,
|
|
|
|
telemetry_decoder_implementation_specific,
|
|
|
|
channel_absolute_id,
|
2018-06-03 12:50:22 +00:00
|
|
|
queue);
|
2018-05-01 21:32:52 +00:00
|
|
|
channel_absolute_id++;
|
|
|
|
}
|
|
|
|
|
|
|
|
//**************** GPS L5 CHANNELS **********************
|
|
|
|
LOG(INFO) << "Getting " << Channels_L5_count << " GPS L5 channels";
|
|
|
|
tracking_implementation = configuration->property("Tracking_L5.implementation", default_implementation);
|
|
|
|
telemetry_decoder_implementation = configuration->property("TelemetryDecoder_L5.implementation", default_implementation);
|
|
|
|
acquisition_implementation = configuration->property("Acquisition_L5.implementation", default_implementation);
|
|
|
|
for (unsigned int i = 0; i < Channels_L5_count; i++)
|
|
|
|
{
|
|
|
|
//(i.e. Acquisition_1C0.implementation=xxxx)
|
|
|
|
std::string acquisition_implementation_specific = configuration->property(
|
|
|
|
"Acquisition_L5" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
acquisition_implementation);
|
|
|
|
//(i.e. Tracking_1C0.implementation=xxxx)
|
|
|
|
std::string tracking_implementation_specific = configuration->property(
|
|
|
|
"Tracking_L5" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
tracking_implementation);
|
|
|
|
std::string telemetry_decoder_implementation_specific = configuration->property(
|
|
|
|
"TelemetryDecoder_L5" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
telemetry_decoder_implementation);
|
|
|
|
|
|
|
|
// Push back the channel to the vector of channels
|
2018-06-03 12:50:22 +00:00
|
|
|
channels->at(channel_absolute_id) = GetChannel_L5(configuration,
|
2018-05-01 21:32:52 +00:00
|
|
|
acquisition_implementation_specific,
|
|
|
|
tracking_implementation_specific,
|
|
|
|
telemetry_decoder_implementation_specific,
|
|
|
|
channel_absolute_id,
|
2018-06-03 12:50:22 +00:00
|
|
|
queue);
|
2018-05-01 21:32:52 +00:00
|
|
|
channel_absolute_id++;
|
|
|
|
}
|
|
|
|
|
|
|
|
//**************** GALILEO E1 B (I/NAV OS) CHANNELS **********************
|
|
|
|
LOG(INFO) << "Getting " << Channels_1B_count << " GALILEO E1 B (I/NAV OS) channels";
|
|
|
|
tracking_implementation = configuration->property("Tracking_1B.implementation", default_implementation);
|
|
|
|
telemetry_decoder_implementation = configuration->property("TelemetryDecoder_1B.implementation", default_implementation);
|
|
|
|
acquisition_implementation = configuration->property("Acquisition_1B.implementation", default_implementation);
|
|
|
|
for (unsigned int i = 0; i < Channels_1B_count; i++)
|
|
|
|
{
|
|
|
|
//(i.e. Acquisition_1C0.implementation=xxxx)
|
|
|
|
std::string acquisition_implementation_specific = configuration->property(
|
|
|
|
"Acquisition_1B" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
acquisition_implementation);
|
|
|
|
//(i.e. Tracking_1C0.implementation=xxxx)
|
|
|
|
std::string tracking_implementation_specific = configuration->property(
|
|
|
|
"Tracking_1B" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
tracking_implementation);
|
|
|
|
std::string telemetry_decoder_implementation_specific = configuration->property(
|
|
|
|
"TelemetryDecoder_1B" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
telemetry_decoder_implementation);
|
|
|
|
|
|
|
|
// Push back the channel to the vector of channels
|
2018-06-03 12:50:22 +00:00
|
|
|
channels->at(channel_absolute_id) = GetChannel_1B(configuration,
|
2018-05-01 21:32:52 +00:00
|
|
|
acquisition_implementation_specific,
|
|
|
|
tracking_implementation_specific,
|
|
|
|
telemetry_decoder_implementation_specific,
|
|
|
|
channel_absolute_id,
|
2018-06-03 12:50:22 +00:00
|
|
|
queue);
|
2018-05-01 21:32:52 +00:00
|
|
|
channel_absolute_id++;
|
|
|
|
}
|
|
|
|
|
|
|
|
//**************** GALILEO E5a I (F/NAV OS) CHANNELS **********************
|
|
|
|
LOG(INFO) << "Getting " << Channels_5X_count << " GALILEO E5a I (F/NAV OS) channels";
|
|
|
|
tracking_implementation = configuration->property("Tracking_5X.implementation", default_implementation);
|
|
|
|
telemetry_decoder_implementation = configuration->property("TelemetryDecoder_5X.implementation", default_implementation);
|
|
|
|
acquisition_implementation = configuration->property("Acquisition_5X.implementation", default_implementation);
|
|
|
|
for (unsigned int i = 0; i < Channels_5X_count; i++)
|
|
|
|
{
|
|
|
|
//(i.e. Acquisition_1C0.implementation=xxxx)
|
|
|
|
std::string acquisition_implementation_specific = configuration->property(
|
|
|
|
"Acquisition_5X" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
acquisition_implementation);
|
|
|
|
//(i.e. Tracking_1C0.implementation=xxxx)
|
|
|
|
std::string tracking_implementation_specific = configuration->property(
|
|
|
|
"Tracking_5X" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
tracking_implementation);
|
|
|
|
std::string telemetry_decoder_implementation_specific = configuration->property(
|
|
|
|
"TelemetryDecoder_5X" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
telemetry_decoder_implementation);
|
|
|
|
|
|
|
|
// Push back the channel to the vector of channels
|
2018-06-03 12:50:22 +00:00
|
|
|
channels->at(channel_absolute_id) = GetChannel_5X(configuration,
|
2018-05-01 21:32:52 +00:00
|
|
|
acquisition_implementation_specific,
|
|
|
|
tracking_implementation_specific,
|
|
|
|
telemetry_decoder_implementation_specific,
|
|
|
|
channel_absolute_id,
|
2018-06-03 12:50:22 +00:00
|
|
|
queue);
|
2018-05-01 21:32:52 +00:00
|
|
|
channel_absolute_id++;
|
|
|
|
}
|
|
|
|
|
|
|
|
//**************** GLONASS L1 C/A CHANNELS **********************
|
|
|
|
LOG(INFO) << "Getting " << Channels_1G_count << " GLONASS L1 C/A channels";
|
|
|
|
acquisition_implementation = configuration->property("Acquisition_1G.implementation", default_implementation);
|
|
|
|
tracking_implementation = configuration->property("Tracking_1G.implementation", default_implementation);
|
|
|
|
telemetry_decoder_implementation = configuration->property("TelemetryDecoder_1G.implementation", default_implementation);
|
|
|
|
|
|
|
|
for (unsigned int i = 0; i < Channels_1G_count; i++)
|
|
|
|
{
|
|
|
|
//(i.e. Acquisition_1G0.implementation=xxxx)
|
|
|
|
std::string acquisition_implementation_specific = configuration->property(
|
|
|
|
"Acquisition_1G" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
acquisition_implementation);
|
|
|
|
//(i.e. Tracking_1G0.implementation=xxxx)
|
|
|
|
std::string tracking_implementation_specific = configuration->property(
|
|
|
|
"Tracking_1G" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
tracking_implementation);
|
|
|
|
std::string telemetry_decoder_implementation_specific = configuration->property(
|
|
|
|
"TelemetryDecoder_1G" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
telemetry_decoder_implementation);
|
|
|
|
|
|
|
|
// Push back the channel to the vector of channels
|
2018-06-03 12:50:22 +00:00
|
|
|
channels->at(channel_absolute_id) = GetChannel_1G(configuration,
|
2018-05-01 21:32:52 +00:00
|
|
|
acquisition_implementation_specific,
|
|
|
|
tracking_implementation_specific,
|
|
|
|
telemetry_decoder_implementation_specific,
|
|
|
|
channel_absolute_id,
|
2018-06-03 12:50:22 +00:00
|
|
|
queue);
|
2018-05-01 21:32:52 +00:00
|
|
|
channel_absolute_id++;
|
|
|
|
}
|
|
|
|
|
|
|
|
//**************** GLONASS L2 C/A CHANNELS **********************
|
|
|
|
LOG(INFO) << "Getting " << Channels_2G_count << " GLONASS L2 C/A channels";
|
|
|
|
acquisition_implementation = configuration->property("Acquisition_2G.implementation", default_implementation);
|
|
|
|
tracking_implementation = configuration->property("Tracking_2G.implementation", default_implementation);
|
|
|
|
telemetry_decoder_implementation = configuration->property("TelemetryDecoder_2G.implementation", default_implementation);
|
|
|
|
|
|
|
|
for (unsigned int i = 0; i < Channels_2G_count; i++)
|
|
|
|
{
|
|
|
|
//(i.e. Acquisition_2G0.implementation=xxxx)
|
|
|
|
std::string acquisition_implementation_specific = configuration->property(
|
|
|
|
"Acquisition_2G" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
acquisition_implementation);
|
|
|
|
//(i.e. Tracking_2G0.implementation=xxxx)
|
|
|
|
std::string tracking_implementation_specific = configuration->property(
|
|
|
|
"Tracking_2G" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
tracking_implementation);
|
|
|
|
std::string telemetry_decoder_implementation_specific = configuration->property(
|
|
|
|
"TelemetryDecoder_2G" + std::to_string(channel_absolute_id) + ".implementation",
|
|
|
|
telemetry_decoder_implementation);
|
|
|
|
|
|
|
|
// Push back the channel to the vector of channels
|
2018-06-03 12:50:22 +00:00
|
|
|
channels->at(channel_absolute_id) = GetChannel_2G(configuration,
|
2018-05-01 21:32:52 +00:00
|
|
|
acquisition_implementation_specific,
|
|
|
|
tracking_implementation_specific,
|
|
|
|
telemetry_decoder_implementation_specific,
|
|
|
|
channel_absolute_id,
|
2018-06-03 12:50:22 +00:00
|
|
|
queue);
|
2018-05-01 21:32:52 +00:00
|
|
|
channel_absolute_id++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (const std::exception &e)
|
|
|
|
{
|
|
|
|
LOG(WARNING) << e.what();
|
2018-03-24 18:42:04 +00:00
|
|
|
}
|
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
return channels;
|
|
|
|
}
|
|
|
|
|
2018-01-26 11:49:04 +00:00
|
|
|
|
2014-03-16 19:58:29 +00:00
|
|
|
/*
|
|
|
|
* Returns the block with the required configuration and implementation
|
|
|
|
*
|
|
|
|
* PLEASE ADD YOUR NEW BLOCK HERE!!
|
2014-04-23 23:53:55 +00:00
|
|
|
*
|
|
|
|
* IMPORTANT NOTE: Acquisition, Tracking and telemetry blocks are only included here for testing purposes.
|
|
|
|
* To be included in a channel they must be also be included in GetAcqBlock(), GetTrkBlock() and GetTlmBlock()
|
|
|
|
* (see below)
|
2014-03-16 19:58:29 +00:00
|
|
|
*/
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetBlock(
|
2018-03-03 01:03:39 +00:00
|
|
|
std::shared_ptr<ConfigurationInterface> configuration,
|
|
|
|
std::string role,
|
|
|
|
std::string implementation, unsigned int in_streams,
|
|
|
|
unsigned int out_streams, gr::msg_queue::sptr queue)
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block;
|
2011-12-27 21:21:12 +00:00
|
|
|
|
2012-02-19 17:45:51 +00:00
|
|
|
//PASS THROUGH ----------------------------------------------------------------
|
|
|
|
if (implementation.compare("Pass_Through") == 0)
|
2012-11-01 17:40:26 +00:00
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new Pass_Through(configuration.get(), role, in_streams, out_streams));
|
|
|
|
block = std::move(block_);
|
2012-11-01 17:40:26 +00:00
|
|
|
}
|
2012-02-19 17:45:51 +00:00
|
|
|
|
2011-12-28 21:36:45 +00:00
|
|
|
// SIGNAL SOURCES -------------------------------------------------------------
|
2012-02-19 17:45:51 +00:00
|
|
|
else if (implementation.compare("File_Signal_Source") == 0)
|
2012-07-15 11:08:10 +00:00
|
|
|
{
|
2012-11-01 17:40:26 +00:00
|
|
|
try
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new FileSignalSource(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams, queue));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2018-03-03 01:03:39 +00:00
|
|
|
}
|
2014-04-11 18:18:59 +00:00
|
|
|
|
2018-05-01 19:25:15 +00:00
|
|
|
catch (const std::exception &e)
|
|
|
|
{
|
|
|
|
std::cout << "GNSS-SDR program ended." << std::endl;
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
}
|
2018-05-16 09:36:37 +00:00
|
|
|
#if RAW_UDP
|
|
|
|
else if (implementation.compare("Custom_UDP_Signal_Source") == 0)
|
2018-05-01 19:25:15 +00:00
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
2018-05-16 09:36:37 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new CustomUDPSignalSource(configuration.get(), role, in_streams,
|
2018-05-01 19:25:15 +00:00
|
|
|
out_streams, queue));
|
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
|
2012-11-01 17:40:26 +00:00
|
|
|
catch (const std::exception &e)
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
2012-11-01 17:40:26 +00:00
|
|
|
std::cout << "GNSS-SDR program ended." << std::endl;
|
|
|
|
exit(1);
|
2018-03-03 01:03:39 +00:00
|
|
|
}
|
2011-12-28 21:36:45 +00:00
|
|
|
}
|
2018-05-16 09:36:37 +00:00
|
|
|
#endif
|
2013-10-14 16:51:47 +00:00
|
|
|
else if (implementation.compare("Nsr_File_Signal_Source") == 0)
|
|
|
|
{
|
|
|
|
try
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new NsrFileSignalSource(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams, queue));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2018-03-03 01:03:39 +00:00
|
|
|
}
|
2015-07-02 15:59:43 +00:00
|
|
|
catch (const std::exception &e)
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
2015-07-02 15:59:43 +00:00
|
|
|
std::cout << "GNSS-SDR program ended." << std::endl;
|
|
|
|
exit(1);
|
2018-03-03 01:03:39 +00:00
|
|
|
}
|
2015-07-02 15:59:43 +00:00
|
|
|
}
|
2015-07-17 18:25:56 +00:00
|
|
|
#if MODERN_GNURADIO
|
2015-07-02 15:59:43 +00:00
|
|
|
else if (implementation.compare("Two_Bit_Cpx_File_Signal_Source") == 0)
|
|
|
|
{
|
|
|
|
try
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
2015-07-02 15:59:43 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new TwoBitCpxFileSignalSource(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams, queue));
|
2015-07-02 15:59:43 +00:00
|
|
|
block = std::move(block_);
|
2018-03-03 01:03:39 +00:00
|
|
|
}
|
2015-01-14 16:26:41 +00:00
|
|
|
catch (const std::exception &e)
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
2015-01-14 16:26:41 +00:00
|
|
|
std::cout << "GNSS-SDR program ended." << std::endl;
|
|
|
|
exit(1);
|
2018-03-03 01:03:39 +00:00
|
|
|
}
|
2015-01-14 16:26:41 +00:00
|
|
|
}
|
2018-03-03 01:03:39 +00:00
|
|
|
else if (implementation.compare("Two_Bit_Packed_File_Signal_Source") == 0)
|
2015-10-08 11:08:43 +00:00
|
|
|
{
|
|
|
|
try
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new TwoBitPackedFileSignalSource(configuration.get(), role, in_streams,
|
|
|
|
out_streams, queue));
|
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
catch (const std::exception &e)
|
|
|
|
{
|
|
|
|
std::cout << "GNSS-SDR program ended." << std::endl;
|
|
|
|
exit(1);
|
|
|
|
}
|
2015-10-08 11:08:43 +00:00
|
|
|
}
|
2015-07-17 18:25:56 +00:00
|
|
|
#endif
|
2015-01-14 16:26:41 +00:00
|
|
|
else if (implementation.compare("Spir_File_Signal_Source") == 0)
|
|
|
|
{
|
|
|
|
try
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
2015-01-14 16:26:41 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new SpirFileSignalSource(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams, queue));
|
2015-01-14 16:26:41 +00:00
|
|
|
block = std::move(block_);
|
2018-03-03 01:03:39 +00:00
|
|
|
}
|
2018-01-16 16:20:55 +00:00
|
|
|
catch (const std::exception &e)
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
2018-01-16 16:20:55 +00:00
|
|
|
std::cout << "GNSS-SDR program ended." << std::endl;
|
|
|
|
exit(1);
|
2018-03-03 01:03:39 +00:00
|
|
|
}
|
2018-01-16 16:20:55 +00:00
|
|
|
}
|
|
|
|
else if (implementation.compare("Spir_GSS6450_File_Signal_Source") == 0)
|
|
|
|
{
|
|
|
|
try
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
2018-01-16 16:20:55 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new SpirGSS6450FileSignalSource(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams, queue));
|
2018-01-16 16:20:55 +00:00
|
|
|
block = std::move(block_);
|
2018-03-03 01:03:39 +00:00
|
|
|
}
|
2015-05-08 06:59:38 +00:00
|
|
|
catch (const std::exception &e)
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
2015-05-08 06:59:38 +00:00
|
|
|
std::cout << "GNSS-SDR program ended." << std::endl;
|
|
|
|
exit(1);
|
2018-03-03 01:03:39 +00:00
|
|
|
}
|
2015-05-08 06:59:38 +00:00
|
|
|
}
|
|
|
|
else if (implementation.compare("RtlTcp_Signal_Source") == 0)
|
|
|
|
{
|
|
|
|
try
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
2015-05-08 06:59:38 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new RtlTcpSignalSource(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams, queue));
|
2015-01-14 16:26:41 +00:00
|
|
|
block = std::move(block_);
|
2018-03-03 01:03:39 +00:00
|
|
|
}
|
2018-01-23 16:31:42 +00:00
|
|
|
catch (const std::exception &e)
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
2018-01-23 16:31:42 +00:00
|
|
|
std::cout << "GNSS-SDR program ended." << std::endl;
|
|
|
|
exit(1);
|
2018-03-03 01:03:39 +00:00
|
|
|
}
|
2018-01-23 16:31:42 +00:00
|
|
|
}
|
|
|
|
else if (implementation.compare("Labsat_Signal_Source") == 0)
|
|
|
|
{
|
|
|
|
try
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
2018-01-23 16:31:42 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new LabsatSignalSource(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams, queue));
|
2018-01-23 16:31:42 +00:00
|
|
|
block = std::move(block_);
|
2018-03-03 01:03:39 +00:00
|
|
|
}
|
2018-01-23 16:31:42 +00:00
|
|
|
|
2013-10-14 16:51:47 +00:00
|
|
|
catch (const std::exception &e)
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
2013-10-14 16:51:47 +00:00
|
|
|
std::cout << "GNSS-SDR program ended." << std::endl;
|
|
|
|
exit(1);
|
2018-03-03 01:03:39 +00:00
|
|
|
}
|
2013-10-14 16:51:47 +00:00
|
|
|
}
|
2014-11-14 20:42:22 +00:00
|
|
|
#if UHD_DRIVER
|
2012-11-01 17:40:26 +00:00
|
|
|
else if (implementation.compare("UHD_Signal_Source") == 0)
|
2012-03-02 18:50:21 +00:00
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new UhdSignalSource(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams, queue));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2012-03-02 18:50:21 +00:00
|
|
|
}
|
2014-11-14 20:42:22 +00:00
|
|
|
#endif
|
2012-07-30 15:46:07 +00:00
|
|
|
#if GN3S_DRIVER
|
2012-11-01 17:40:26 +00:00
|
|
|
else if (implementation.compare("GN3S_Signal_Source") == 0)
|
2012-07-30 15:46:07 +00:00
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new Gn3sSignalSource(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams, queue));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2012-07-30 15:46:07 +00:00
|
|
|
}
|
|
|
|
#endif
|
2011-12-27 21:21:12 +00:00
|
|
|
|
2014-02-17 18:53:45 +00:00
|
|
|
#if RAW_ARRAY_DRIVER
|
|
|
|
else if (implementation.compare("Raw_Array_Signal_Source") == 0)
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new RawArraySignalSource(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams, queue));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2014-02-17 18:53:45 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2014-12-15 16:39:22 +00:00
|
|
|
#if OSMOSDR_DRIVER
|
|
|
|
else if (implementation.compare("Osmosdr_Signal_Source") == 0)
|
2012-08-01 13:11:02 +00:00
|
|
|
{
|
2014-12-15 16:39:22 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new OsmosdrSignalSource(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams, queue));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2012-08-01 13:11:02 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-10-29 05:51:22 +00:00
|
|
|
#if PLUTOSDR_DRIVER
|
|
|
|
else if (implementation.compare("Plutosdr_Signal_Source") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new PlutosdrSignalSource(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams, queue));
|
2017-10-29 05:51:22 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if FMCOMMS2_DRIVER
|
|
|
|
else if (implementation.compare("Fmcomms2_Signal_Source") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new Fmcomms2SignalSource(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams, queue));
|
2018-03-02 10:30:36 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if AD9361_DRIVER
|
|
|
|
else if (implementation.compare("Ad9361_Fpga_Signal_Source") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new Ad9361FpgaSignalSource(configuration.get(), role, in_streams,
|
2018-04-30 17:23:35 +00:00
|
|
|
out_streams, queue));
|
2017-10-29 05:51:22 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-03-03 17:07:26 +00:00
|
|
|
#if FLEXIBAND_DRIVER
|
|
|
|
else if (implementation.compare("Flexiband_Signal_Source") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new FlexibandSignalSource(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams, queue));
|
2015-03-03 17:07:26 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-02-19 17:45:51 +00:00
|
|
|
// DATA TYPE ADAPTER -----------------------------------------------------------
|
2015-02-03 18:40:26 +00:00
|
|
|
else if (implementation.compare("Byte_To_Short") == 0)
|
2012-11-01 17:40:26 +00:00
|
|
|
{
|
2018-03-03 01:03:39 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new ByteToShort(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
2015-02-03 18:40:26 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("Ibyte_To_Cbyte") == 0)
|
|
|
|
{
|
2018-03-03 01:03:39 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new IbyteToCbyte(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2012-11-01 17:40:26 +00:00
|
|
|
}
|
2016-01-19 17:37:30 +00:00
|
|
|
else if (implementation.compare("Ibyte_To_Cshort") == 0)
|
|
|
|
{
|
2018-03-03 01:03:39 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new IbyteToCshort(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
2016-01-19 17:37:30 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2014-10-27 12:00:10 +00:00
|
|
|
else if (implementation.compare("Ibyte_To_Complex") == 0)
|
|
|
|
{
|
2018-03-03 01:03:39 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new IbyteToComplex(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
2014-10-27 12:00:10 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2015-02-03 18:40:26 +00:00
|
|
|
else if (implementation.compare("Ishort_To_Cshort") == 0)
|
2015-02-02 23:58:21 +00:00
|
|
|
{
|
2018-03-03 01:03:39 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new IshortToCshort(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
2015-02-03 18:40:26 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("Ishort_To_Complex") == 0)
|
|
|
|
{
|
2018-03-03 01:03:39 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new IshortToComplex(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
2015-02-02 23:58:21 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2015-02-03 18:40:26 +00:00
|
|
|
|
2012-02-19 17:45:51 +00:00
|
|
|
// INPUT FILTER ----------------------------------------------------------------
|
2012-02-24 16:06:14 +00:00
|
|
|
else if (implementation.compare("Fir_Filter") == 0)
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new FirFilter(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2012-02-24 16:06:14 +00:00
|
|
|
}
|
2012-07-18 13:29:18 +00:00
|
|
|
else if (implementation.compare("Freq_Xlating_Fir_Filter") == 0)
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new FreqXlatingFirFilter(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2012-07-18 13:29:18 +00:00
|
|
|
}
|
2014-02-18 19:40:44 +00:00
|
|
|
else if (implementation.compare("Beamformer_Filter") == 0)
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new BeamformerFilter(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2014-02-18 19:40:44 +00:00
|
|
|
}
|
2017-02-21 10:35:18 +00:00
|
|
|
else if (implementation.compare("Pulse_Blanking_Filter") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new PulseBlankingFilter(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-02-21 10:35:18 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-06-19 13:22:54 +00:00
|
|
|
else if (implementation.compare("Notch_Filter") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new NotchFilter(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-06-19 13:22:54 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-08-21 11:11:18 +00:00
|
|
|
else if (implementation.compare("Notch_Filter_Lite") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new NotchFilterLite(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-08-21 11:11:18 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-02-21 10:35:18 +00:00
|
|
|
|
2012-02-19 17:45:51 +00:00
|
|
|
// RESAMPLER -------------------------------------------------------------------
|
|
|
|
else if (implementation.compare("Direct_Resampler") == 0)
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new DirectResamplerConditioner(configuration.get(), role,
|
2018-03-03 01:03:39 +00:00
|
|
|
in_streams, out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2012-02-19 17:45:51 +00:00
|
|
|
}
|
2011-12-27 21:21:12 +00:00
|
|
|
|
2018-02-03 09:49:03 +00:00
|
|
|
else if ((implementation.compare("Fractional_Resampler") == 0) || (implementation.compare("Mmse_Resampler") == 0))
|
2018-01-31 09:46:41 +00:00
|
|
|
{
|
2018-02-03 09:49:03 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new MmseResamplerConditioner(configuration.get(), role,
|
2018-03-03 01:03:39 +00:00
|
|
|
in_streams, out_streams));
|
2018-01-31 09:46:41 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
|
2011-12-28 21:36:45 +00:00
|
|
|
// ACQUISITION BLOCKS ---------------------------------------------------------
|
2011-10-01 18:45:20 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_Acquisition") == 0)
|
2011-12-28 21:36:45 +00:00
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GpsL1CaPcpsAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2011-12-28 21:36:45 +00:00
|
|
|
}
|
2017-05-05 14:37:29 +00:00
|
|
|
|
|
|
|
#if ENABLE_FPGA
|
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_Acquisition_Fpga") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GpsL1CaPcpsAcquisitionFpga(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-05-05 14:37:29 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
#endif
|
2013-03-20 18:19:26 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_Assisted_Acquisition") == 0)
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GpsL1CaPcpsAssistedAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2013-03-20 18:19:26 +00:00
|
|
|
}
|
2013-08-28 17:17:57 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_Tong_Acquisition") == 0)
|
2012-09-03 11:58:28 +00:00
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GpsL1CaPcpsTongAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2013-08-28 17:17:57 +00:00
|
|
|
}
|
2013-10-01 20:32:04 +00:00
|
|
|
|
2014-03-15 01:21:17 +00:00
|
|
|
#if OPENCL_BLOCKS
|
2013-10-01 20:32:04 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_OpenCl_Acquisition") == 0)
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GpsL1CaPcpsOpenClAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2013-10-01 20:32:04 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-08-20 18:05:26 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_Acquisition_Fine_Doppler") == 0)
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GpsL1CaPcpsAcquisitionFineDoppler(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2013-08-20 18:05:26 +00:00
|
|
|
}
|
2014-07-23 23:38:58 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_QuickSync_Acquisition") == 0)
|
|
|
|
{
|
2018-03-03 01:03:39 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GpsL1CaPcpsQuickSyncAcquisition(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
2014-07-23 23:38:58 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-12-04 16:07:54 +00:00
|
|
|
else if (implementation.compare("GPS_L2_M_PCPS_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GpsL2MPcpsAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-12-04 16:07:54 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("GPS_L5i_PCPS_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GpsL5iPcpsAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-12-04 16:07:54 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2013-08-28 17:17:57 +00:00
|
|
|
else if (implementation.compare("Galileo_E1_PCPS_Ambiguous_Acquisition") == 0)
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GalileoE1PcpsAmbiguousAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2013-08-28 17:17:57 +00:00
|
|
|
}
|
|
|
|
else if (implementation.compare("Galileo_E1_PCPS_8ms_Ambiguous_Acquisition") == 0)
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GalileoE1Pcps8msAmbiguousAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2013-08-28 17:17:57 +00:00
|
|
|
}
|
|
|
|
else if (implementation.compare("Galileo_E1_PCPS_Tong_Ambiguous_Acquisition") == 0)
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GalileoE1PcpsTongAmbiguousAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2013-08-28 17:17:57 +00:00
|
|
|
}
|
|
|
|
else if (implementation.compare("Galileo_E1_PCPS_CCCWSR_Ambiguous_Acquisition") == 0)
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GalileoE1PcpsCccwsrAmbiguousAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2013-08-28 17:17:57 +00:00
|
|
|
}
|
2014-08-05 00:01:37 +00:00
|
|
|
else if (implementation.compare("Galileo_E5a_Noncoherent_IQ_Acquisition_CAF") == 0)
|
2014-06-05 10:00:24 +00:00
|
|
|
{
|
2014-08-05 00:01:37 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GalileoE5aNoncoherentIQAcquisitionCaf(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-07-07 19:06:26 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2018-02-07 13:26:25 +00:00
|
|
|
else if (implementation.compare("Galileo_E5a_Pcps_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GalileoE5aPcpsAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2018-02-07 13:26:25 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2014-07-23 23:38:58 +00:00
|
|
|
else if (implementation.compare("Galileo_E1_PCPS_QuickSync_Ambiguous_Acquisition") == 0)
|
|
|
|
{
|
2018-03-03 01:03:39 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GalileoE1PcpsQuickSyncAmbiguousAcquisition(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
2014-07-23 23:38:58 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-06-01 23:53:17 +00:00
|
|
|
else if (implementation.compare("GLONASS_L1_CA_PCPS_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GlonassL1CaPcpsAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-06-01 23:53:17 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2018-03-24 18:42:04 +00:00
|
|
|
else if (implementation.compare("GLONASS_L2_CA_PCPS_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GlonassL2CaPcpsAcquisition(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2011-12-28 21:36:45 +00:00
|
|
|
// TRACKING BLOCKS -------------------------------------------------------------
|
2011-10-01 18:45:20 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_DLL_PLL_Tracking") == 0)
|
2011-12-28 21:36:45 +00:00
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GpsL1CaDllPllTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2011-12-28 21:36:45 +00:00
|
|
|
}
|
2015-11-30 10:41:42 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_DLL_PLL_C_Aid_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TrackingInterface> block_(new GpsL1CaDllPllCAidTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2015-11-30 10:41:42 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-05-05 14:37:29 +00:00
|
|
|
#if ENABLE_FPGA
|
2018-03-02 16:40:13 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_DLL_PLL_Tracking_Fpga") == 0)
|
2017-05-05 14:37:29 +00:00
|
|
|
{
|
2018-03-02 16:40:13 +00:00
|
|
|
std::unique_ptr<TrackingInterface> block_(new GpsL1CaDllPllTrackingFpga(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-05-05 14:37:29 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
#endif
|
2012-03-16 10:55:58 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_TCP_CONNECTOR_Tracking") == 0)
|
2012-10-19 13:38:25 +00:00
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GpsL1CaTcpConnectorTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2012-10-19 13:38:25 +00:00
|
|
|
}
|
2016-05-09 09:51:42 +00:00
|
|
|
else if (implementation.compare("GPS_L2_M_DLL_PLL_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GpsL2MDllPllTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2016-05-09 09:51:42 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2018-04-28 10:33:46 +00:00
|
|
|
else if ((implementation.compare("GPS_L5i_DLL_PLL_Tracking") == 0) or (implementation.compare("GPS_L5_DLL_PLL_Tracking") == 0))
|
2017-12-04 16:07:54 +00:00
|
|
|
{
|
2018-04-28 10:33:46 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GpsL5DllPllTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-12-04 16:07:54 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2016-05-09 09:51:42 +00:00
|
|
|
#if CUDA_GPU_ACCEL
|
|
|
|
else if (implementation.compare("GPS_L1_CA_DLL_PLL_Tracking_GPU") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GpsL1CaDllPllTrackingGPU(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2016-05-09 09:51:42 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
#endif
|
2012-09-03 11:58:28 +00:00
|
|
|
else if (implementation.compare("Galileo_E1_DLL_PLL_VEML_Tracking") == 0)
|
2012-10-19 13:38:25 +00:00
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GalileoE1DllPllVemlTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2012-10-19 13:38:25 +00:00
|
|
|
}
|
|
|
|
else if (implementation.compare("Galileo_E1_TCP_CONNECTOR_Tracking") == 0)
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GalileoE1TcpConnectorTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2012-10-19 13:38:25 +00:00
|
|
|
}
|
2014-06-20 16:23:44 +00:00
|
|
|
else if (implementation.compare("Galileo_E5a_DLL_PLL_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GalileoE5aDllPllTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-06-20 16:23:44 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-07-24 01:49:15 +00:00
|
|
|
else if (implementation.compare("GLONASS_L1_CA_DLL_PLL_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GlonassL1CaDllPllTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-07-24 01:49:15 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-08-17 14:08:12 +00:00
|
|
|
else if (implementation.compare("GLONASS_L1_CA_DLL_PLL_C_Aid_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GlonassL1CaDllPllCAidTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-08-17 14:08:12 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2018-03-24 18:42:04 +00:00
|
|
|
else if (implementation.compare("GLONASS_L2_CA_DLL_PLL_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GlonassL2CaDllPllTracking(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("GLONASS_L2_CA_DLL_PLL_C_Aid_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GlonassL2CaDllPllCAidTracking(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2011-12-28 21:36:45 +00:00
|
|
|
// TELEMETRY DECODERS ----------------------------------------------------------
|
2011-10-01 18:45:20 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_Telemetry_Decoder") == 0)
|
2011-12-28 21:36:45 +00:00
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GpsL1CaTelemetryDecoder(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2011-12-28 21:36:45 +00:00
|
|
|
}
|
2016-11-03 18:33:04 +00:00
|
|
|
else if (implementation.compare("GPS_L2C_Telemetry_Decoder") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GpsL2CTelemetryDecoder(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2016-11-03 18:33:04 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-11-29 14:51:30 +00:00
|
|
|
else if (implementation.compare("GPS_L5_Telemetry_Decoder") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GpsL5TelemetryDecoder(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-11-29 14:51:30 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2013-07-15 17:07:10 +00:00
|
|
|
else if (implementation.compare("Galileo_E1B_Telemetry_Decoder") == 0)
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GalileoE1BTelemetryDecoder(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2013-07-15 17:07:10 +00:00
|
|
|
}
|
2013-11-09 23:11:46 +00:00
|
|
|
else if (implementation.compare("SBAS_L1_Telemetry_Decoder") == 0)
|
|
|
|
{
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new SbasL1TelemetryDecoder(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
2013-11-09 23:11:46 +00:00
|
|
|
}
|
2014-06-05 10:00:24 +00:00
|
|
|
else if (implementation.compare("Galileo_E5a_Telemetry_Decoder") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GalileoE5aTelemetryDecoder(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-06-05 10:00:24 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-08-21 04:23:57 +00:00
|
|
|
else if (implementation.compare("GLONASS_L1_CA_Telemetry_Decoder") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GlonassL1CaTelemetryDecoder(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-08-21 04:23:57 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2018-03-24 18:42:04 +00:00
|
|
|
else if (implementation.compare("GLONASS_L2_CA_Telemetry_Decoder") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new GlonassL2CaTelemetryDecoder(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2011-12-28 21:36:45 +00:00
|
|
|
// OBSERVABLES -----------------------------------------------------------------
|
2017-05-08 17:56:10 +00:00
|
|
|
else if ((implementation.compare("Hybrid_Observables") == 0) || (implementation.compare("GPS_L1_CA_Observables") == 0) || (implementation.compare("GPS_L2C_Observables") == 0) ||
|
2018-03-03 01:03:39 +00:00
|
|
|
(implementation.compare("Galileo_E5A_Observables") == 0))
|
2014-06-10 16:58:17 +00:00
|
|
|
{
|
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new HybridObservables(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-06-10 16:58:17 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2018-01-26 11:49:04 +00:00
|
|
|
|
2011-12-28 21:36:45 +00:00
|
|
|
// PVT -------------------------------------------------------------------------
|
2017-05-10 14:42:22 +00:00
|
|
|
else if ((implementation.compare("RTKLIB_PVT") == 0) || (implementation.compare("GPS_L1_CA_PVT") == 0) || (implementation.compare("Galileo_E1_PVT") == 0) || (implementation.compare("Hybrid_PVT") == 0))
|
2014-06-10 16:58:17 +00:00
|
|
|
{
|
2017-04-20 14:10:12 +00:00
|
|
|
std::unique_ptr<GNSSBlockInterface> block_(new RtklibPvt(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-06-10 16:58:17 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2011-10-01 18:45:20 +00:00
|
|
|
else
|
2011-12-28 21:36:45 +00:00
|
|
|
{
|
|
|
|
// Log fatal. This causes execution to stop.
|
2016-05-09 23:32:26 +00:00
|
|
|
LOG(ERROR) << role << "." << implementation << ": Undefined implementation for block";
|
2011-12-28 21:36:45 +00:00
|
|
|
}
|
2018-06-03 12:50:22 +00:00
|
|
|
return block;
|
2014-04-11 18:18:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-04-13 16:58:52 +00:00
|
|
|
/*
|
2014-04-23 23:53:55 +00:00
|
|
|
*
|
|
|
|
* PLEASE ADD YOUR NEW BLOCK HERE!!
|
|
|
|
*
|
|
|
|
* Not very elegant, Acq, Trk and Tlm blocks must be added here, too.
|
|
|
|
* To be improved!
|
2014-04-13 16:58:52 +00:00
|
|
|
*/
|
|
|
|
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<AcquisitionInterface> GNSSBlockFactory::GetAcqBlock(
|
2018-03-03 01:03:39 +00:00
|
|
|
std::shared_ptr<ConfigurationInterface> configuration,
|
|
|
|
std::string role,
|
|
|
|
std::string implementation, unsigned int in_streams,
|
|
|
|
unsigned int out_streams)
|
2014-04-11 18:18:59 +00:00
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block;
|
|
|
|
// ACQUISITION BLOCKS ---------------------------------------------------------
|
2014-04-12 20:02:18 +00:00
|
|
|
if (implementation.compare("GPS_L1_CA_PCPS_Acquisition") == 0)
|
2014-04-11 18:18:59 +00:00
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GpsL1CaPcpsAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-05-05 14:37:29 +00:00
|
|
|
#if ENABLE_FPGA
|
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_Acquisition_Fpga") == 0)
|
|
|
|
{
|
2018-03-03 01:03:39 +00:00
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GpsL1CaPcpsAcquisitionFpga(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
2017-05-05 14:37:29 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
#endif
|
2014-04-11 18:18:59 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_Assisted_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GpsL1CaPcpsAssistedAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_Tong_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GpsL1CaPcpsTongAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
|
|
|
|
#if OPENCL_BLOCKS
|
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_OpenCl_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GpsL1CaPcpsOpenClAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_Acquisition_Fine_Doppler") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GpsL1CaPcpsAcquisitionFineDoppler(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2014-07-23 23:38:58 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_QuickSync_Acquisition") == 0)
|
|
|
|
{
|
2018-03-03 01:03:39 +00:00
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GpsL1CaPcpsQuickSyncAcquisition(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
2014-07-23 23:38:58 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2015-04-24 17:11:45 +00:00
|
|
|
else if (implementation.compare("GPS_L2_M_PCPS_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GpsL2MPcpsAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2015-04-24 17:11:45 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-12-04 16:07:54 +00:00
|
|
|
else if (implementation.compare("GPS_L5i_PCPS_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GpsL5iPcpsAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-12-04 16:07:54 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2014-04-11 18:18:59 +00:00
|
|
|
else if (implementation.compare("Galileo_E1_PCPS_Ambiguous_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GalileoE1PcpsAmbiguousAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("Galileo_E1_PCPS_8ms_Ambiguous_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GalileoE1Pcps8msAmbiguousAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("Galileo_E1_PCPS_Tong_Ambiguous_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GalileoE1PcpsTongAmbiguousAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("Galileo_E1_PCPS_CCCWSR_Ambiguous_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GalileoE1PcpsCccwsrAmbiguousAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-11 18:18:59 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2014-09-05 16:51:08 +00:00
|
|
|
|
2014-07-23 23:38:58 +00:00
|
|
|
else if (implementation.compare("Galileo_E1_PCPS_QuickSync_Ambiguous_Acquisition") == 0)
|
|
|
|
{
|
2018-03-03 01:03:39 +00:00
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GalileoE1PcpsQuickSyncAmbiguousAcquisition(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
2014-07-23 23:38:58 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2014-08-05 00:01:37 +00:00
|
|
|
else if (implementation.compare("Galileo_E5a_Noncoherent_IQ_Acquisition_CAF") == 0)
|
2014-06-05 10:00:24 +00:00
|
|
|
{
|
2014-08-05 00:01:37 +00:00
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GalileoE5aNoncoherentIQAcquisitionCaf(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-07-07 19:06:26 +00:00
|
|
|
block = std::move(block_);
|
2014-06-05 10:00:24 +00:00
|
|
|
}
|
2018-02-07 13:26:25 +00:00
|
|
|
else if (implementation.compare("Galileo_E5a_Pcps_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GalileoE5aPcpsAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2018-02-07 13:26:25 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-06-01 23:53:17 +00:00
|
|
|
else if (implementation.compare("GLONASS_L1_CA_PCPS_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GlonassL1CaPcpsAcquisition(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-06-01 23:53:17 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2018-03-24 18:42:04 +00:00
|
|
|
else if (implementation.compare("GLONASS_L2_CA_PCPS_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<AcquisitionInterface> block_(new GlonassL2CaPcpsAcquisition(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2014-04-11 18:18:59 +00:00
|
|
|
else
|
2014-04-13 16:58:52 +00:00
|
|
|
{
|
|
|
|
// Log fatal. This causes execution to stop.
|
2015-05-08 23:48:16 +00:00
|
|
|
LOG(ERROR) << role << "." << implementation << ": Undefined implementation for block";
|
2014-04-13 16:58:52 +00:00
|
|
|
}
|
2018-06-03 12:50:22 +00:00
|
|
|
return block;
|
2014-04-11 18:18:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
std::unique_ptr<TrackingInterface> GNSSBlockFactory::GetTrkBlock(
|
2018-03-03 01:03:39 +00:00
|
|
|
std::shared_ptr<ConfigurationInterface> configuration,
|
|
|
|
std::string role,
|
|
|
|
std::string implementation, unsigned int in_streams,
|
|
|
|
unsigned int out_streams)
|
2014-04-11 18:18:59 +00:00
|
|
|
{
|
|
|
|
std::unique_ptr<TrackingInterface> block;
|
|
|
|
|
2014-04-13 16:58:52 +00:00
|
|
|
// TRACKING BLOCKS -------------------------------------------------------------
|
|
|
|
if (implementation.compare("GPS_L1_CA_DLL_PLL_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TrackingInterface> block_(new GpsL1CaDllPllTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-13 16:58:52 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2015-11-30 10:41:42 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_DLL_PLL_C_Aid_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TrackingInterface> block_(new GpsL1CaDllPllCAidTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2015-11-30 10:41:42 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-05-05 14:37:29 +00:00
|
|
|
#if ENABLE_FPGA
|
2018-03-02 16:40:13 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_DLL_PLL_Tracking_Fpga") == 0)
|
2017-05-05 14:37:29 +00:00
|
|
|
{
|
2018-04-30 17:23:35 +00:00
|
|
|
std::unique_ptr<TrackingInterface> block_(new GpsL1CaDllPllTrackingFpga(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-05-05 14:37:29 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
#endif
|
2014-04-13 16:58:52 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_TCP_CONNECTOR_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TrackingInterface> block_(new GpsL1CaTcpConnectorTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-13 16:58:52 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("Galileo_E1_DLL_PLL_VEML_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TrackingInterface> block_(new GalileoE1DllPllVemlTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-13 16:58:52 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("Galileo_E1_TCP_CONNECTOR_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TrackingInterface> block_(new GalileoE1TcpConnectorTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-13 16:58:52 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2014-06-20 16:23:44 +00:00
|
|
|
else if (implementation.compare("Galileo_E5a_DLL_PLL_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TrackingInterface> block_(new GalileoE5aDllPllTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-06-20 16:23:44 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2015-04-30 15:48:21 +00:00
|
|
|
else if (implementation.compare("GPS_L2_M_DLL_PLL_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TrackingInterface> block_(new GpsL2MDllPllTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2015-04-30 15:48:21 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2018-04-28 10:33:46 +00:00
|
|
|
else if ((implementation.compare("GPS_L5i_DLL_PLL_Tracking") == 0) or (implementation.compare("GPS_L5_DLL_PLL_Tracking") == 0))
|
2017-12-04 16:07:54 +00:00
|
|
|
{
|
2018-04-28 10:33:46 +00:00
|
|
|
std::unique_ptr<TrackingInterface> block_(new GpsL5DllPllTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-12-04 16:07:54 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2015-08-06 15:05:15 +00:00
|
|
|
#if CUDA_GPU_ACCEL
|
2015-07-24 15:21:25 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_DLL_PLL_Tracking_GPU") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TrackingInterface> block_(new GpsL1CaDllPllTrackingGPU(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2015-07-24 15:21:25 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2015-08-06 15:05:15 +00:00
|
|
|
#endif
|
2017-07-24 01:49:15 +00:00
|
|
|
else if (implementation.compare("GLONASS_L1_CA_DLL_PLL_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TrackingInterface> block_(new GlonassL1CaDllPllTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-07-24 01:49:15 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-08-17 14:08:12 +00:00
|
|
|
else if (implementation.compare("GLONASS_L1_CA_DLL_PLL_C_Aid_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TrackingInterface> block_(new GlonassL1CaDllPllCAidTracking(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-08-17 14:08:12 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2018-03-24 18:42:04 +00:00
|
|
|
else if (implementation.compare("GLONASS_L2_CA_DLL_PLL_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TrackingInterface> block_(new GlonassL2CaDllPllTracking(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("GLONASS_L2_CA_DLL_PLL_C_Aid_Tracking") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TrackingInterface> block_(new GlonassL2CaDllPllCAidTracking(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2014-04-13 16:58:52 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
// Log fatal. This causes execution to stop.
|
2016-05-09 23:32:26 +00:00
|
|
|
LOG(ERROR) << role << "." << implementation << ": Undefined implementation for block";
|
2014-04-13 16:58:52 +00:00
|
|
|
}
|
2018-06-03 12:50:22 +00:00
|
|
|
return block;
|
2014-04-11 18:18:59 +00:00
|
|
|
}
|
|
|
|
|
2014-04-12 20:02:18 +00:00
|
|
|
|
2014-04-11 18:18:59 +00:00
|
|
|
std::unique_ptr<TelemetryDecoderInterface> GNSSBlockFactory::GetTlmBlock(
|
2018-03-03 01:03:39 +00:00
|
|
|
std::shared_ptr<ConfigurationInterface> configuration,
|
|
|
|
std::string role,
|
|
|
|
std::string implementation, unsigned int in_streams,
|
|
|
|
unsigned int out_streams)
|
2014-04-11 18:18:59 +00:00
|
|
|
{
|
|
|
|
std::unique_ptr<TelemetryDecoderInterface> block;
|
|
|
|
|
2014-04-13 16:58:52 +00:00
|
|
|
// TELEMETRY DECODERS ----------------------------------------------------------
|
|
|
|
if (implementation.compare("GPS_L1_CA_Telemetry_Decoder") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TelemetryDecoderInterface> block_(new GpsL1CaTelemetryDecoder(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-13 16:58:52 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("Galileo_E1B_Telemetry_Decoder") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TelemetryDecoderInterface> block_(new GalileoE1BTelemetryDecoder(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-13 16:58:52 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("SBAS_L1_Telemetry_Decoder") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TelemetryDecoderInterface> block_(new SbasL1TelemetryDecoder(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-04-13 16:58:52 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2014-06-05 10:00:24 +00:00
|
|
|
else if (implementation.compare("Galileo_E5a_Telemetry_Decoder") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TelemetryDecoderInterface> block_(new GalileoE5aTelemetryDecoder(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2014-06-05 10:00:24 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2016-11-03 18:33:04 +00:00
|
|
|
else if (implementation.compare("GPS_L2C_Telemetry_Decoder") == 0)
|
2015-05-05 16:18:16 +00:00
|
|
|
{
|
2016-11-03 18:33:04 +00:00
|
|
|
std::unique_ptr<TelemetryDecoderInterface> block_(new GpsL2CTelemetryDecoder(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2015-05-05 16:18:16 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-08-29 07:20:38 +00:00
|
|
|
else if (implementation.compare("GLONASS_L1_CA_Telemetry_Decoder") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TelemetryDecoderInterface> block_(new GlonassL1CaTelemetryDecoder(configuration.get(), role, in_streams,
|
2018-03-03 01:03:39 +00:00
|
|
|
out_streams));
|
2017-08-29 07:20:38 +00:00
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2018-03-24 18:42:04 +00:00
|
|
|
else if (implementation.compare("GLONASS_L2_CA_Telemetry_Decoder") == 0)
|
|
|
|
{
|
|
|
|
std::unique_ptr<TelemetryDecoderInterface> block_(new GlonassL2CaTelemetryDecoder(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2017-11-29 14:51:30 +00:00
|
|
|
else if (implementation.compare("GPS_L5_Telemetry_Decoder") == 0)
|
2018-03-03 01:03:39 +00:00
|
|
|
{
|
|
|
|
std::unique_ptr<TelemetryDecoderInterface> block_(new GpsL5TelemetryDecoder(configuration.get(), role, in_streams,
|
|
|
|
out_streams));
|
|
|
|
block = std::move(block_);
|
|
|
|
}
|
2014-04-13 16:58:52 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
// Log fatal. This causes execution to stop.
|
2016-05-09 23:32:26 +00:00
|
|
|
LOG(ERROR) << role << "." << implementation << ": Undefined implementation for block";
|
2014-04-13 16:58:52 +00:00
|
|
|
}
|
2018-06-03 12:50:22 +00:00
|
|
|
return block;
|
2011-10-01 18:45:20 +00:00
|
|
|
}
|