mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-11-04 01:03:04 +00:00 
			
		
		
		
	Apply code cleaning before release
This commit is contained in:
		@@ -303,7 +303,7 @@ void GNSSFlowgraph::connect()
 | 
			
		||||
                    int observable_interval_ms = static_cast<double>(configuration_->property("GNSS-SDR.observable_interval_ms", 20));
 | 
			
		||||
                    ch_out_sample_counter = gnss_sdr_make_sample_counter(fs, observable_interval_ms, sig_conditioner_.at(0)->get_right_block()->output_signature()->sizeof_stream_item(0));
 | 
			
		||||
                    top_block_->connect(sig_conditioner_.at(0)->get_right_block(), 0, ch_out_sample_counter, 0);
 | 
			
		||||
                    top_block_->connect(ch_out_sample_counter, 0, observables_->get_left_block(), channels_count_);  //extra port for the sample counter pulse
 | 
			
		||||
                    top_block_->connect(ch_out_sample_counter, 0, observables_->get_left_block(), channels_count_);  // extra port for the sample counter pulse
 | 
			
		||||
                }
 | 
			
		||||
            catch (const std::exception& e)
 | 
			
		||||
                {
 | 
			
		||||
@@ -327,7 +327,7 @@ void GNSSFlowgraph::connect()
 | 
			
		||||
                        }
 | 
			
		||||
                    int observable_interval_ms = static_cast<double>(configuration_->property("GNSS-SDR.observable_interval_ms", 20));
 | 
			
		||||
                    ch_out_fpga_sample_counter = gnss_sdr_make_fpga_sample_counter(fs, observable_interval_ms);
 | 
			
		||||
                    top_block_->connect(ch_out_fpga_sample_counter, 0, observables_->get_left_block(), channels_count_);  //extra port for the sample counter pulse
 | 
			
		||||
                    top_block_->connect(ch_out_fpga_sample_counter, 0, observables_->get_left_block(), channels_count_);  // extra port for the sample counter pulse
 | 
			
		||||
                }
 | 
			
		||||
            catch (const std::exception& e)
 | 
			
		||||
                {
 | 
			
		||||
@@ -353,7 +353,7 @@ void GNSSFlowgraph::connect()
 | 
			
		||||
            int observable_interval_ms = static_cast<double>(configuration_->property("GNSS-SDR.observable_interval_ms", 20));
 | 
			
		||||
            ch_out_sample_counter = gnss_sdr_make_sample_counter(fs, observable_interval_ms, sig_conditioner_.at(0)->get_right_block()->output_signature()->sizeof_stream_item(0));
 | 
			
		||||
            top_block_->connect(sig_conditioner_.at(0)->get_right_block(), 0, ch_out_sample_counter, 0);
 | 
			
		||||
            top_block_->connect(ch_out_sample_counter, 0, observables_->get_left_block(), channels_count_);  //extra port for the sample counter pulse
 | 
			
		||||
            top_block_->connect(ch_out_sample_counter, 0, observables_->get_left_block(), channels_count_);  // extra port for the sample counter pulse
 | 
			
		||||
        }
 | 
			
		||||
    catch (const std::exception& e)
 | 
			
		||||
        {
 | 
			
		||||
@@ -525,7 +525,7 @@ void GNSSFlowgraph::connect()
 | 
			
		||||
                            top_block_->disconnect_all();
 | 
			
		||||
                            return;
 | 
			
		||||
                        }
 | 
			
		||||
                    signal_conditioner_connected.at(selected_signal_conditioner_ID) = true;  //notify that this signal conditioner is connected
 | 
			
		||||
                    signal_conditioner_connected.at(selected_signal_conditioner_ID) = true;  // notify that this signal conditioner is connected
 | 
			
		||||
                    DLOG(INFO) << "signal conditioner " << selected_signal_conditioner_ID << " connected to channel " << i;
 | 
			
		||||
                }
 | 
			
		||||
#endif
 | 
			
		||||
@@ -815,7 +815,7 @@ void GNSSFlowgraph::disconnect()
 | 
			
		||||
                    // (if a signal source has more than 1 stream, then connect it to the multistream signal conditioner)
 | 
			
		||||
                    if (sig_source_.at(i)->implementation() == "Raw_Array_Signal_Source")
 | 
			
		||||
                        {
 | 
			
		||||
                            //Multichannel Array
 | 
			
		||||
                            // Multichannel Array
 | 
			
		||||
                            for (int j = 0; j < GNSS_SDR_ARRAY_SIGNAL_CONDITIONER_CHANNELS; j++)
 | 
			
		||||
                                {
 | 
			
		||||
                                    top_block_->disconnect(sig_source_.at(i)->get_right_block(), j, sig_conditioner_.at(i)->get_left_block(), j);
 | 
			
		||||
@@ -1163,7 +1163,9 @@ void GNSSFlowgraph::remove_signal(const Gnss_Signal& gs)
 | 
			
		||||
            break;
 | 
			
		||||
        }
 | 
			
		||||
}
 | 
			
		||||
//project Doppler from primary frequency to secondary frequency
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// project Doppler from primary frequency to secondary frequency
 | 
			
		||||
double GNSSFlowgraph::project_doppler(std::string searched_signal, double primary_freq_doppler_hz)
 | 
			
		||||
{
 | 
			
		||||
    switch (mapStringValues_[searched_signal])
 | 
			
		||||
@@ -1182,6 +1184,7 @@ double GNSSFlowgraph::project_doppler(std::string searched_signal, double primar
 | 
			
		||||
        }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void GNSSFlowgraph::acquisition_manager(unsigned int who)
 | 
			
		||||
{
 | 
			
		||||
    unsigned int current_channel;
 | 
			
		||||
@@ -1235,7 +1238,7 @@ void GNSSFlowgraph::acquisition_manager(unsigned int who)
 | 
			
		||||
                                }
 | 
			
		||||
                            else
 | 
			
		||||
                                {
 | 
			
		||||
                                    //set Doppler center to 0 Hz
 | 
			
		||||
                                    // set Doppler center to 0 Hz
 | 
			
		||||
                                    channels_[current_channel]->assist_acquisition_doppler(0);
 | 
			
		||||
                                }
 | 
			
		||||
#ifndef ENABLE_FPGA
 | 
			
		||||
@@ -1285,7 +1288,6 @@ void GNSSFlowgraph::acquisition_manager(unsigned int who)
 | 
			
		||||
void GNSSFlowgraph::apply_action(unsigned int who, unsigned int what)
 | 
			
		||||
{
 | 
			
		||||
    //todo: the acquisition events are initiated from the acquisition success or failure queued msg. If the acquisition is disabled for non-assisted secondary freq channels, the engine stops..
 | 
			
		||||
 | 
			
		||||
    std::lock_guard<std::mutex> lock(signal_list_mutex);
 | 
			
		||||
    DLOG(INFO) << "Received " << what << " from " << who;
 | 
			
		||||
    unsigned int sat = 0;
 | 
			
		||||
@@ -1313,7 +1315,7 @@ void GNSSFlowgraph::apply_action(unsigned int who, unsigned int what)
 | 
			
		||||
                }
 | 
			
		||||
            // call the acquisition manager to assign new satellite and start next acquisition (if required)
 | 
			
		||||
            acquisition_manager(who);
 | 
			
		||||
            //push back the old signal AFTER assigning a new one to avoid selecting the same signal
 | 
			
		||||
            // push back the old signal AFTER assigning a new one to avoid selecting the same signal
 | 
			
		||||
            if (sat == 0)
 | 
			
		||||
                {
 | 
			
		||||
                    push_back_signal(gs);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user