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.
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*
|
2012-02-24 16:06:14 +00:00
|
|
|
* Copyright (C) 2010-2012 (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
|
|
|
|
* at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* along with GNSS-SDR. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "gnss_block_factory.h"
|
|
|
|
#include <string>
|
|
|
|
#include <sstream>
|
|
|
|
#include <iostream>
|
|
|
|
#include <boost/lexical_cast.hpp>
|
|
|
|
#include <glog/log_severity.h>
|
|
|
|
#include <glog/logging.h>
|
|
|
|
#include "configuration_interface.h"
|
|
|
|
#include "gnss_block_interface.h"
|
|
|
|
#include "pass_through.h"
|
|
|
|
#include "file_signal_source.h"
|
|
|
|
#include "null_sink_output_filter.h"
|
|
|
|
#include "file_output_filter.h"
|
|
|
|
#include "channel.h"
|
2012-03-02 18:50:21 +00:00
|
|
|
#include "uhd_signal_source.h"
|
2012-02-19 17:45:51 +00:00
|
|
|
#include "signal_conditioner.h"
|
2012-08-01 14:17:40 +00:00
|
|
|
#include "ishort_to_complex.h"
|
2012-02-19 17:45:51 +00:00
|
|
|
#include "direct_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"
|
2011-10-01 18:45:20 +00:00
|
|
|
#include "gps_l1_ca_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"
|
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"
|
2011-10-01 18:45:20 +00:00
|
|
|
#include "gps_l1_ca_dll_pll_tracking.h"
|
2012-09-04 15:57:30 +00:00
|
|
|
#include "gps_l1_ca_dll_pll_optim_tracking.h"
|
2011-11-22 17:21:54 +00:00
|
|
|
#include "gps_l1_ca_dll_fll_pll_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"
|
2011-10-01 18:45:20 +00:00
|
|
|
#include "gps_l1_ca_telemetry_decoder.h"
|
2013-07-15 17:07:10 +00:00
|
|
|
#include "galileo_e1b_telemetry_decoder.h"
|
2011-10-01 18:45:20 +00:00
|
|
|
#include "gps_l1_ca_observables.h"
|
- 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
|
|
|
#include "gps_l1_ca_pvt.h"
|
2011-10-01 18:45:20 +00:00
|
|
|
|
2012-07-30 15:46:07 +00:00
|
|
|
#if GN3S_DRIVER
|
|
|
|
#include "gn3s_signal_source.h"
|
|
|
|
#endif
|
|
|
|
|
2012-08-01 13:11:02 +00:00
|
|
|
#if RTLSDR_DRIVER
|
|
|
|
#include "rtlsdr_signal_source.h"
|
|
|
|
#endif
|
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
using google::LogMessage;
|
|
|
|
|
2011-12-26 05:04:27 +00:00
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
GNSSBlockFactory::GNSSBlockFactory()
|
2012-11-01 17:40:26 +00:00
|
|
|
{}
|
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
|
|
|
|
GNSSBlockFactory::~GNSSBlockFactory()
|
2012-11-01 17:40:26 +00:00
|
|
|
{}
|
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
|
|
|
|
GNSSBlockInterface* GNSSBlockFactory::GetSignalSource(
|
2013-07-04 13:47:40 +00:00
|
|
|
ConfigurationInterface *configuration, boost::shared_ptr<gr::msg_queue> queue)
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
|
|
|
std::string default_implementation = "File_Signal_Source";
|
|
|
|
std::string implementation = configuration->property(
|
|
|
|
"SignalSource.implementation", default_implementation);
|
|
|
|
DLOG(INFO) << "Getting SignalSource with implementation "
|
|
|
|
<< implementation;
|
|
|
|
return GetBlock(configuration, "SignalSource", implementation, 0, 1,
|
|
|
|
queue);
|
|
|
|
}
|
|
|
|
|
2012-11-01 17:40:26 +00:00
|
|
|
|
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
GNSSBlockInterface* GNSSBlockFactory::GetSignalConditioner(
|
2013-07-04 13:47:40 +00:00
|
|
|
ConfigurationInterface *configuration, boost::shared_ptr<gr::msg_queue> queue)
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
|
|
|
std::string default_implementation = "Pass_Through";
|
2012-07-18 13:29:18 +00:00
|
|
|
std::string signal_conditioner = configuration->property(
|
|
|
|
"SignalConditioner.implementation", default_implementation);
|
|
|
|
std::string data_type_adapter;
|
|
|
|
std::string input_filter;
|
|
|
|
std::string resampler;
|
2012-11-01 17:40:26 +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
|
|
|
|
{
|
|
|
|
data_type_adapter = configuration->property(
|
|
|
|
"DataTypeAdapter.implementation", default_implementation);
|
|
|
|
input_filter = configuration->property(
|
|
|
|
"InputFilter.implementation", default_implementation);
|
|
|
|
resampler = configuration->property(
|
|
|
|
"Resampler.implementation", default_implementation);
|
|
|
|
}
|
|
|
|
|
2012-02-19 17:45:51 +00:00
|
|
|
DLOG(INFO) << "Getting SignalConditioner with DataTypeAdapter implementation: "
|
|
|
|
<< data_type_adapter << ", InputFilter implementation: "
|
|
|
|
<< input_filter << ", and Resampler implementation: "
|
|
|
|
<< resampler;
|
|
|
|
|
|
|
|
return new SignalConditioner(configuration, GetBlock(configuration,
|
|
|
|
"DataTypeAdapter", data_type_adapter, 1, 1, queue), GetBlock(
|
|
|
|
configuration,"InputFilter", input_filter, 1, 1, queue),
|
|
|
|
GetBlock(configuration,"Resampler", resampler, 1, 1, queue),
|
|
|
|
"SignalConditioner", "Signal_Conditioner", queue);
|
2011-10-01 18:45:20 +00:00
|
|
|
}
|
|
|
|
|
2012-11-01 17:40:26 +00:00
|
|
|
|
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
GNSSBlockInterface* GNSSBlockFactory::GetObservables(
|
2013-07-04 13:47:40 +00:00
|
|
|
ConfigurationInterface *configuration, boost::shared_ptr<gr::msg_queue> queue)
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
|
|
|
std::string default_implementation = "GPS_L1_CA_Observables";
|
|
|
|
std::string implementation = configuration->property(
|
|
|
|
"Observables.implementation", default_implementation);
|
|
|
|
DLOG(INFO) << "Getting Observables with implementation "
|
|
|
|
<< implementation;
|
|
|
|
unsigned int channel_count =
|
|
|
|
configuration->property("Channels.count", 12);
|
|
|
|
return GetBlock(configuration, "Observables", implementation,
|
|
|
|
channel_count, channel_count, queue);
|
|
|
|
}
|
|
|
|
|
2012-11-01 17:40:26 +00:00
|
|
|
|
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
GNSSBlockInterface* GNSSBlockFactory::GetPVT(
|
2013-07-04 13:47:40 +00:00
|
|
|
ConfigurationInterface *configuration, boost::shared_ptr<gr::msg_queue> queue)
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
|
|
|
std::string default_implementation = "Pass_Through";
|
|
|
|
std::string implementation = configuration->property(
|
|
|
|
"PVT.implementation", default_implementation);
|
|
|
|
DLOG(INFO) << "Getting PVT with implementation " << implementation;
|
2012-11-01 17:40:26 +00:00
|
|
|
unsigned int channel_count = configuration->property("Channels.count", 12);
|
2011-10-01 18:45:20 +00:00
|
|
|
return GetBlock(configuration, "PVT", implementation, channel_count, 1,
|
|
|
|
queue);
|
|
|
|
}
|
|
|
|
|
2012-11-01 17:40:26 +00:00
|
|
|
|
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
GNSSBlockInterface* GNSSBlockFactory::GetOutputFilter(
|
2013-07-04 13:47:40 +00:00
|
|
|
ConfigurationInterface *configuration, boost::shared_ptr<gr::msg_queue> queue)
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
|
|
|
std::string default_implementation = "Null_Sink_Output_Filter";
|
|
|
|
std::string implementation = configuration->property(
|
|
|
|
"OutputFilter.implementation", default_implementation);
|
2012-11-01 17:40:26 +00:00
|
|
|
DLOG(INFO) << "Getting OutputFilter with implementation " << implementation;
|
2011-10-01 18:45:20 +00:00
|
|
|
return GetBlock(configuration, "OutputFilter", implementation, 1, 0,
|
|
|
|
queue);
|
|
|
|
}
|
|
|
|
|
2012-11-01 17:40:26 +00:00
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
GNSSBlockInterface* GNSSBlockFactory::GetChannel(
|
|
|
|
ConfigurationInterface *configuration, std::string acq,
|
|
|
|
std::string trk, std::string tlm, int channel,
|
2013-07-04 13:47:40 +00:00
|
|
|
boost::shared_ptr<gr::msg_queue> queue)
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
|
|
|
std::stringstream stream;
|
|
|
|
stream << channel;
|
|
|
|
std::string id = stream.str();
|
|
|
|
DLOG(INFO) << "Instantiating channel " << id;
|
2013-05-26 23:59:04 +00:00
|
|
|
DLOG(INFO) << "Getting Channel " << id << " with" << std::endl << " Acquisition Implementation: "
|
|
|
|
<< acq << std::endl << " Tracking Implementation: " << trk << std::endl << " Telemetry "
|
|
|
|
"Decoder implementation: " << tlm;
|
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
return new Channel(configuration, channel, GetBlock(configuration,
|
2012-11-01 17:40:26 +00:00
|
|
|
"Channel", "Pass_Through", 1, 1, queue),
|
2011-10-01 18:45:20 +00:00
|
|
|
(AcquisitionInterface*)GetBlock(configuration, "Acquisition",
|
|
|
|
acq, 1, 1, queue), (TrackingInterface*)GetBlock(
|
2011-12-28 21:36:45 +00:00
|
|
|
configuration, "Tracking", trk, 1, 1, queue),
|
|
|
|
(TelemetryDecoderInterface*)GetBlock(configuration,
|
|
|
|
"TelemetryDecoder", tlm, 1, 1, queue), "Channel",
|
|
|
|
"Channel", queue);
|
2011-10-01 18:45:20 +00:00
|
|
|
}
|
|
|
|
|
2012-11-01 17:40:26 +00:00
|
|
|
|
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
std::vector<GNSSBlockInterface*>* GNSSBlockFactory::GetChannels(
|
2013-07-04 13:47:40 +00:00
|
|
|
ConfigurationInterface *configuration, boost::shared_ptr<gr::msg_queue> queue)
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
2012-01-23 00:52:05 +00:00
|
|
|
std::string default_implementation = "Pass_Through";
|
2011-10-01 18:45:20 +00:00
|
|
|
unsigned int channel_count =
|
|
|
|
configuration->property("Channels.count", 12);
|
2013-05-26 23:59:04 +00:00
|
|
|
DLOG(INFO) << "Getting " << channel_count << " channels";
|
2011-10-01 18:45:20 +00:00
|
|
|
std::vector<GNSSBlockInterface*>* channels = new std::vector<
|
|
|
|
GNSSBlockInterface*>();
|
|
|
|
std::string tracking = configuration->property("Tracking.implementation",
|
|
|
|
default_implementation);
|
|
|
|
std::string telemetry_decoder = configuration->property(
|
|
|
|
"TelemetryDecoder.implementation", default_implementation);
|
2013-05-26 23:59:04 +00:00
|
|
|
std::string acquisition_implementation = configuration->property(
|
|
|
|
"Acquisition.implementation", default_implementation);
|
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
for (unsigned int i = 0; i < channel_count; i++)
|
2011-12-28 21:36:45 +00:00
|
|
|
{
|
2013-05-26 23:59:04 +00:00
|
|
|
std::string acquisition_implementation_specific = configuration->property(
|
|
|
|
"Acquisition"+ boost::lexical_cast<std::string>(i) + ".implementation",
|
|
|
|
default_implementation);
|
|
|
|
if(acquisition_implementation_specific.compare(default_implementation) != 0)
|
|
|
|
{
|
|
|
|
acquisition_implementation = acquisition_implementation_specific;
|
|
|
|
}
|
2011-12-28 21:36:45 +00:00
|
|
|
channels->push_back(GetChannel(configuration,
|
|
|
|
acquisition_implementation, tracking, telemetry_decoder, i,
|
|
|
|
queue));
|
|
|
|
}
|
2011-10-01 18:45:20 +00:00
|
|
|
return channels;
|
|
|
|
}
|
|
|
|
|
2011-12-28 21:36:45 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Returns the block with the required configuration and implementation
|
|
|
|
*
|
|
|
|
* PLEASE ADD YOUR NEW BLOCK HERE!!
|
|
|
|
*/
|
2011-10-01 18:45:20 +00:00
|
|
|
GNSSBlockInterface* GNSSBlockFactory::GetBlock(
|
|
|
|
ConfigurationInterface *configuration, std::string role,
|
|
|
|
std::string implementation, unsigned int in_streams,
|
2013-07-04 13:47:40 +00:00
|
|
|
unsigned int out_streams, boost::shared_ptr<gr::msg_queue> queue)
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
2011-12-27 21:21:12 +00:00
|
|
|
GNSSBlockInterface* block = NULL; //Change to nullptr when available in compilers (C++11)
|
|
|
|
|
2012-02-19 17:45:51 +00:00
|
|
|
//PASS THROUGH ----------------------------------------------------------------
|
|
|
|
if (implementation.compare("Pass_Through") == 0)
|
2012-11-01 17:40:26 +00:00
|
|
|
{
|
|
|
|
block = new Pass_Through(configuration, role, in_streams, out_streams);
|
|
|
|
}
|
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
|
|
|
|
{
|
|
|
|
block = new FileSignalSource(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
|
|
|
catch (const std::exception &e)
|
|
|
|
{
|
|
|
|
std::cout << "GNSS-SDR program ended." << std::endl;
|
|
|
|
LOG_AT_LEVEL(INFO) << implementation
|
|
|
|
<< ": Source file not found";
|
|
|
|
exit(1);
|
|
|
|
}
|
2011-12-28 21:36:45 +00:00
|
|
|
}
|
2012-11-01 17:40:26 +00:00
|
|
|
else if (implementation.compare("UHD_Signal_Source") == 0)
|
2012-03-02 18:50:21 +00:00
|
|
|
{
|
|
|
|
block = new UhdSignalSource(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
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
|
|
|
{
|
|
|
|
block = new Gn3sSignalSource(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
|
|
|
#endif
|
2011-12-27 21:21:12 +00:00
|
|
|
|
2012-08-01 13:11:02 +00:00
|
|
|
#if RTLSDR_DRIVER
|
2012-11-01 17:40:26 +00:00
|
|
|
else if (implementation.compare("Rtlsdr_Signal_Source") == 0)
|
2012-08-01 13:11:02 +00:00
|
|
|
{
|
|
|
|
block = new RtlsdrSignalSource(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-02-19 17:45:51 +00:00
|
|
|
// DATA TYPE ADAPTER -----------------------------------------------------------
|
2012-08-01 14:17:40 +00:00
|
|
|
else if (implementation.compare("Ishort_To_Complex") == 0)
|
2012-11-01 17:40:26 +00:00
|
|
|
{
|
|
|
|
block = new IshortToComplex(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
|
|
|
|
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)
|
|
|
|
{
|
|
|
|
block = new FirFilter(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
2012-07-18 13:29:18 +00:00
|
|
|
else if (implementation.compare("Freq_Xlating_Fir_Filter") == 0)
|
|
|
|
{
|
|
|
|
block = new FreqXlatingFirFilter(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
|
|
|
|
2012-02-19 17:45:51 +00:00
|
|
|
// RESAMPLER -------------------------------------------------------------------
|
|
|
|
else if (implementation.compare("Direct_Resampler") == 0)
|
|
|
|
{
|
|
|
|
block = new DirectResamplerConditioner(configuration, role,
|
|
|
|
in_streams, out_streams);
|
|
|
|
}
|
2011-12-27 21:21:12 +00:00
|
|
|
|
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
|
|
|
{
|
|
|
|
block = new GpsL1CaPcpsAcquisition(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
2013-03-20 18:19:26 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_Assisted_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
block = new GpsL1CaPcpsAssistedAcquisition(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
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
|
|
|
{
|
2013-08-28 17:17:57 +00:00
|
|
|
block = new GpsL1CaPcpsTongAcquisition(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_Multithread_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
block = new GpsL1CaPcpsAcquisition(configuration, role, in_streams,
|
2012-09-03 11:58:28 +00:00
|
|
|
out_streams, queue);
|
|
|
|
}
|
2013-08-20 18:05:26 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_PCPS_Acquisition_Fine_Doppler") == 0)
|
|
|
|
{
|
|
|
|
block = new GpsL1CaPcpsAcquisitionFineDoppler(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
2013-08-28 17:17:57 +00:00
|
|
|
else if (implementation.compare("Galileo_E1_PCPS_Ambiguous_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
block = new GalileoE1PcpsAmbiguousAcquisition(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("Galileo_E1_PCPS_8ms_Ambiguous_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
block = new GalileoE1Pcps8msAmbiguousAcquisition(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("Galileo_E1_PCPS_Tong_Ambiguous_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
block = new GalileoE1PcpsTongAmbiguousAcquisition(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
|
|
|
else if (implementation.compare("Galileo_E1_PCPS_CCCWSR_Ambiguous_Acquisition") == 0)
|
|
|
|
{
|
|
|
|
block = new GalileoE1PcpsCccwsrAmbiguousAcquisition(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
2011-12-27 21:21:12 +00:00
|
|
|
|
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
|
|
|
{
|
|
|
|
block = new GpsL1CaDllPllTracking(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
2012-09-04 15:57:30 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_DLL_PLL_Optim_Tracking") == 0)
|
|
|
|
{
|
|
|
|
block = new GpsL1CaDllPllOptimTracking(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
2011-11-22 17:21:54 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_DLL_FLL_PLL_Tracking") == 0)
|
2011-12-28 21:36:45 +00:00
|
|
|
{
|
|
|
|
block = new GpsL1CaDllFllPllTracking(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
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
|
|
|
{
|
2012-11-01 17:40:26 +00:00
|
|
|
block = new GpsL1CaTcpConnectorTracking(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
2012-10-19 13:38:25 +00:00
|
|
|
}
|
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
|
|
|
{
|
2012-11-01 17:40:26 +00:00
|
|
|
block = new GalileoE1DllPllVemlTracking(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
2012-10-19 13:38:25 +00:00
|
|
|
}
|
|
|
|
else if (implementation.compare("Galileo_E1_TCP_CONNECTOR_Tracking") == 0)
|
|
|
|
{
|
2012-11-01 17:40:26 +00:00
|
|
|
block = new GalileoE1TcpConnectorTracking(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
2012-10-19 13:38:25 +00:00
|
|
|
}
|
2011-12-27 21:21:12 +00:00
|
|
|
|
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
|
|
|
{
|
|
|
|
block = new GpsL1CaTelemetryDecoder(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
2013-07-15 17:07:10 +00:00
|
|
|
else if (implementation.compare("Galileo_E1B_Telemetry_Decoder") == 0)
|
|
|
|
{
|
|
|
|
block = new GalileoE1BTelemetryDecoder(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
2011-12-28 21:36:45 +00:00
|
|
|
// OBSERVABLES -----------------------------------------------------------------
|
2011-10-01 18:45:20 +00:00
|
|
|
else if (implementation.compare("GPS_L1_CA_Observables") == 0)
|
2011-12-28 21:36:45 +00:00
|
|
|
{
|
|
|
|
block = new GpsL1CaObservables(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
2011-12-27 21:21:12 +00:00
|
|
|
|
2011-12-28 21:36:45 +00:00
|
|
|
// PVT -------------------------------------------------------------------------
|
- 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
|
|
|
else if (implementation.compare("GPS_L1_CA_PVT") == 0)
|
2011-12-28 21:36:45 +00:00
|
|
|
{
|
|
|
|
block = new GpsL1CaPvt(configuration, role, in_streams,
|
|
|
|
out_streams, queue);
|
|
|
|
}
|
2011-12-27 21:21:12 +00:00
|
|
|
|
2011-12-28 21:36:45 +00:00
|
|
|
// OUTPUT FILTERS --------------------------------------------------------------
|
2011-12-27 21:21:12 +00:00
|
|
|
else if (implementation.compare("Null_Sink_Output_Filter") == 0)
|
2011-12-28 21:36:45 +00:00
|
|
|
{
|
|
|
|
block = new NullSinkOutputFilter(configuration, role, in_streams,
|
|
|
|
out_streams);
|
|
|
|
}
|
2011-12-27 21:21:12 +00:00
|
|
|
else if (implementation.compare("File_Output_Filter") == 0)
|
2011-12-28 21:36:45 +00:00
|
|
|
{
|
|
|
|
block = new FileOutputFilter(configuration, role, in_streams,
|
|
|
|
out_streams);
|
|
|
|
}
|
2011-10-01 18:45:20 +00:00
|
|
|
else
|
2011-12-28 21:36:45 +00:00
|
|
|
{
|
|
|
|
// Log fatal. This causes execution to stop.
|
|
|
|
LOG_AT_LEVEL(ERROR) << implementation
|
|
|
|
<< ": Undefined implementation for block";
|
|
|
|
}
|
2011-10-01 18:45:20 +00:00
|
|
|
return block;
|
|
|
|
}
|