mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-05-22 17:24:08 +00:00
Last retouches of the new factory and flowgraph.
This commit is contained in:
parent
55da7e9716
commit
307ae28d50
@ -179,6 +179,7 @@ void ControlThread::run()
|
||||
galileo_ephemeris_data_collector_thread_.timed_join(boost::posix_time::seconds(1));
|
||||
galileo_iono_data_collector_thread_.timed_join(boost::posix_time::seconds(1));
|
||||
galileo_utc_model_data_collector_thread_.timed_join(boost::posix_time::seconds(1));
|
||||
|
||||
//Join keyboard threads
|
||||
keyboard_thread_.timed_join(boost::posix_time::seconds(1));
|
||||
|
||||
|
@ -109,7 +109,6 @@ public:
|
||||
return flowgraph_;
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
//SUPL assistance classes
|
||||
gnss_sdr_supl_client supl_client_acquisition_;
|
||||
@ -172,7 +171,6 @@ private:
|
||||
|
||||
void galileo_iono_data_collector();
|
||||
|
||||
|
||||
void apply_action(unsigned int what);
|
||||
std::shared_ptr<GNSSFlowgraph> flowgraph_;
|
||||
std::shared_ptr<ConfigurationInterface> configuration_;
|
||||
|
@ -558,6 +558,11 @@ std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetBlock(
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Not very elegant, Acq, Ttk and Tlm blocks must be added here, too.
|
||||
* To be fixed!
|
||||
*/
|
||||
|
||||
std::unique_ptr<AcquisitionInterface> GNSSBlockFactory::GetAcqBlock(
|
||||
std::shared_ptr<ConfigurationInterface> configuration,
|
||||
std::string role,
|
||||
@ -647,7 +652,7 @@ std::unique_ptr<TrackingInterface> GNSSBlockFactory::GetTrkBlock(
|
||||
{
|
||||
std::unique_ptr<TrackingInterface> block;
|
||||
|
||||
// TRACKING BLOCKS -------------------------------------------------------------
|
||||
// TRACKING BLOCKS -------------------------------------------------------------
|
||||
if (implementation.compare("GPS_L1_CA_DLL_PLL_Tracking") == 0)
|
||||
{
|
||||
std::unique_ptr<TrackingInterface> block_(new GpsL1CaDllPllTracking(configuration.get(), role, in_streams,
|
||||
@ -701,26 +706,26 @@ std::unique_ptr<TelemetryDecoderInterface> GNSSBlockFactory::GetTlmBlock(
|
||||
{
|
||||
std::unique_ptr<TelemetryDecoderInterface> block;
|
||||
|
||||
// TELEMETRY DECODERS ----------------------------------------------------------
|
||||
// TELEMETRY DECODERS ----------------------------------------------------------
|
||||
if (implementation.compare("GPS_L1_CA_Telemetry_Decoder") == 0)
|
||||
{
|
||||
std::unique_ptr<TelemetryDecoderInterface> block_(new GpsL1CaTelemetryDecoder(configuration.get(), role, in_streams,
|
||||
out_streams, queue));
|
||||
block = std::move(block_);
|
||||
}
|
||||
else if (implementation.compare("Galileo_E1B_Telemetry_Decoder") == 0)
|
||||
else if (implementation.compare("Galileo_E1B_Telemetry_Decoder") == 0)
|
||||
{
|
||||
std::unique_ptr<TelemetryDecoderInterface> block_(new GalileoE1BTelemetryDecoder(configuration.get(), role, in_streams,
|
||||
out_streams, queue));
|
||||
block = std::move(block_);
|
||||
}
|
||||
else if (implementation.compare("SBAS_L1_Telemetry_Decoder") == 0)
|
||||
else if (implementation.compare("SBAS_L1_Telemetry_Decoder") == 0)
|
||||
{
|
||||
std::unique_ptr<TelemetryDecoderInterface> block_(new SbasL1TelemetryDecoder(configuration.get(), role, in_streams,
|
||||
out_streams, queue));
|
||||
block = std::move(block_);
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
// Log fatal. This causes execution to stop.
|
||||
LOG(ERROR) << implementation << ": Undefined implementation for block";
|
||||
|
@ -487,7 +487,6 @@ void GNSSFlowgraph::set_signals_list()
|
||||
/*
|
||||
* Sets a sequential list of GNSS satellites
|
||||
*/
|
||||
|
||||
std::set<unsigned int>::iterator available_gnss_prn_iter;
|
||||
|
||||
/*
|
||||
@ -498,7 +497,6 @@ void GNSSFlowgraph::set_signals_list()
|
||||
/*
|
||||
* Read GNSS-SDR default GNSS system and signal
|
||||
*/
|
||||
|
||||
std::string default_system = configuration_->property("Channel.system", std::string("GPS"));
|
||||
std::string default_signal = configuration_->property("Channel.signal", std::string("1C"));
|
||||
|
||||
@ -506,7 +504,6 @@ void GNSSFlowgraph::set_signals_list()
|
||||
* Loop to create the list of GNSS Signals
|
||||
* To add signals from other systems, add another loop 'for'
|
||||
*/
|
||||
|
||||
if (default_system.compare(std::string("GPS")) == 0)
|
||||
{
|
||||
/*
|
||||
@ -594,16 +591,16 @@ void GNSSFlowgraph::set_signals_list()
|
||||
available_GNSS_signals_.insert(gnss_it, signal_value);
|
||||
}
|
||||
}
|
||||
// **** FOR DEBUGGING THE LIST OF GNSS SIGNALS ****
|
||||
//
|
||||
// **** FOR DEBUGGING THE LIST OF GNSS SIGNALS ****
|
||||
//
|
||||
//std::cout<<"default_system="<<default_system<<std::endl;
|
||||
//std::cout<<"default_signal="<<default_signal<<std::endl;
|
||||
// std::list<Gnss_Signal>::iterator available_gnss_list_iter;
|
||||
// for (available_gnss_list_iter = available_GNSS_signals_.begin(); available_gnss_list_iter
|
||||
// != available_GNSS_signals_.end(); available_gnss_list_iter++)
|
||||
// {
|
||||
// std::cout << *available_gnss_list_iter << std::endl;
|
||||
// }
|
||||
// std::list<Gnss_Signal>::iterator available_gnss_list_iter;
|
||||
// for (available_gnss_list_iter = available_GNSS_signals_.begin(); available_gnss_list_iter
|
||||
// != available_GNSS_signals_.end(); available_gnss_list_iter++)
|
||||
// {
|
||||
// std::cout << *available_gnss_list_iter << std::endl;
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
@ -109,15 +109,10 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
void init();
|
||||
/*
|
||||
* \brief Populates the SV PRN list available for acquisition and tracking
|
||||
*/
|
||||
void init(); // Populates the SV PRN list available for acquisition and tracking
|
||||
void set_signals_list();
|
||||
/*
|
||||
* \brief Initializes the channels state (start acquisition or keep standby) using the configuration parameters (number of channels and max channels in acquisition)
|
||||
*/
|
||||
void set_channels_state();
|
||||
void set_channels_state(); // Initializes the channels state (start acquisition or keep standby)
|
||||
// using the configuration parameters (number of channels and max channels in acquisition)
|
||||
bool connected_;
|
||||
bool running_;
|
||||
unsigned int channels_count_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user