1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-07-06 12:02:55 +00:00

Code formatting (cpplint.py --filter=-,+whitespace/tab,+whitespace/comments)

This commit is contained in:
Carles Fernandez 2020-02-11 21:47:13 +01:00
parent 207b01a6c0
commit d65daac971
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
13 changed files with 56 additions and 73 deletions

View File

@ -1895,6 +1895,7 @@ std::map<int, Gnss_Synchro> rtklib_pvt_gs::interpolate_observables(std::map<int,
return interp_observables_map; return interp_observables_map;
} }
void rtklib_pvt_gs::initialize_and_apply_carrier_phase_offset() void rtklib_pvt_gs::initialize_and_apply_carrier_phase_offset()
{ {
// we have a valid PVT. First check if we need to reset the initial carrier phase offsets to match their pseudoranges // we have a valid PVT. First check if we need to reset the initial carrier phase offsets to match their pseudoranges
@ -1953,6 +1954,7 @@ void rtklib_pvt_gs::initialize_and_apply_carrier_phase_offset()
} }
} }
int rtklib_pvt_gs::work(int noutput_items, gr_vector_const_void_star& input_items, int rtklib_pvt_gs::work(int noutput_items, gr_vector_const_void_star& input_items,
gr_vector_void_star& output_items __attribute__((unused))) gr_vector_void_star& output_items __attribute__((unused)))
{ {

View File

@ -527,6 +527,7 @@ void hybrid_observables_gs::compute_pranges(std::vector<Gnss_Synchro> &data)
} }
} }
void hybrid_observables_gs::smooth_pseudoranges(std::vector<Gnss_Synchro> &data) void hybrid_observables_gs::smooth_pseudoranges(std::vector<Gnss_Synchro> &data)
{ {
std::vector<Gnss_Synchro>::iterator it; std::vector<Gnss_Synchro>::iterator it;

View File

@ -213,7 +213,6 @@ void Glonass_L1_Ca_Dll_Pll_Tracking_cc::start_tracking()
d_code_loop_filter.initialize(); // initialize the code filter d_code_loop_filter.initialize(); // initialize the code filter
// generate local reference ALWAYS starting at chip 1 (1 sample per chip) // generate local reference ALWAYS starting at chip 1 (1 sample per chip)
//glonass_l1_ca_code_gen_complex(gsl::span<gr_complex>(d_ca_code.data(), GLONASS_L1_CA_CODE_LENGTH_CHIPS), 0);
glonass_l1_ca_code_gen_complex(d_ca_code, 0); glonass_l1_ca_code_gen_complex(d_ca_code, 0);
multicorrelator_cpu.set_local_code_and_taps(static_cast<int32_t>(GLONASS_L1_CA_CODE_LENGTH_CHIPS), d_ca_code.data(), d_local_code_shift_chips.data()); multicorrelator_cpu.set_local_code_and_taps(static_cast<int32_t>(GLONASS_L1_CA_CODE_LENGTH_CHIPS), d_ca_code.data(), d_local_code_shift_chips.data());

View File

@ -238,7 +238,7 @@ void GalileoE1PcpsAmbiguousAcquisitionGSoC2013Test::config_1()
std::to_string(integration_time_ms)); std::to_string(integration_time_ms));
config->set_property("Acquisition_1B.max_dwells", "1"); config->set_property("Acquisition_1B.max_dwells", "1");
config->set_property("Acquisition_1B.bit_transition_flag", "false"); config->set_property("Acquisition_1B.bit_transition_flag", "false");
//config->set_property("Acquisition_1B.threshold", "0.1"); // config->set_property("Acquisition_1B.threshold", "2.5");
config->set_property("Acquisition_1B.pfa", "0.0001"); config->set_property("Acquisition_1B.pfa", "0.0001");
config->set_property("Acquisition_1B.doppler_max", "10000"); config->set_property("Acquisition_1B.doppler_max", "10000");
config->set_property("Acquisition_1B.doppler_step", "250"); config->set_property("Acquisition_1B.doppler_step", "250");

View File

@ -155,7 +155,7 @@ void GalileoE1PcpsAmbiguousAcquisitionGSoCTest::init()
config->set_property("Acquisition_1B.item_type", "gr_complex"); config->set_property("Acquisition_1B.item_type", "gr_complex");
config->set_property("Acquisition_1B.coherent_integration_time_ms", "4"); config->set_property("Acquisition_1B.coherent_integration_time_ms", "4");
config->set_property("Acquisition_1B.dump", "false"); config->set_property("Acquisition_1B.dump", "false");
//config->set_property("Acquisition_1B.threshold", "0.1"); // config->set_property("Acquisition_1B.threshold", "2.5");
config->set_property("Acquisition_1B.pfa", "0.001"); config->set_property("Acquisition_1B.pfa", "0.001");
config->set_property("Acquisition_1B.doppler_max", "10000"); config->set_property("Acquisition_1B.doppler_max", "10000");
config->set_property("Acquisition_1B.doppler_step", "125"); config->set_property("Acquisition_1B.doppler_step", "125");

View File

@ -166,7 +166,7 @@ void GalileoE1PcpsAmbiguousAcquisitionTest::init()
config->set_property("Acquisition_1B.dump", "false"); config->set_property("Acquisition_1B.dump", "false");
} }
config->set_property("Acquisition_1B.dump_filename", "./tmp-acq-gal1/acquisition"); config->set_property("Acquisition_1B.dump_filename", "./tmp-acq-gal1/acquisition");
//config->set_property("Acquisition_1B.threshold", "0.0001"); // config->set_property("Acquisition_1B.threshold", "2.5");
config->set_property("Acquisition_1B.pfa", "0.001"); config->set_property("Acquisition_1B.pfa", "0.001");
config->set_property("Acquisition_1B.doppler_max", std::to_string(doppler_max)); config->set_property("Acquisition_1B.doppler_max", std::to_string(doppler_max));
config->set_property("Acquisition_1B.doppler_step", std::to_string(doppler_step)); config->set_property("Acquisition_1B.doppler_step", std::to_string(doppler_step));

View File

@ -66,7 +66,7 @@ private:
public: public:
int rx_message; int rx_message;
~GlonassL1CaPcpsAcquisitionGSoC2017Test_msg_rx(); //!< Default destructor ~GlonassL1CaPcpsAcquisitionGSoC2017Test_msg_rx(); // Default destructor
}; };
@ -243,7 +243,7 @@ void GlonassL1CaPcpsAcquisitionGSoC2017Test::config_1()
std::to_string(integration_time_ms)); std::to_string(integration_time_ms));
config->set_property("Acquisition.max_dwells", "1"); config->set_property("Acquisition.max_dwells", "1");
config->set_property("Acquisition.implementation", "GLONASS_L1_CA_PCPS_Acquisition"); config->set_property("Acquisition.implementation", "GLONASS_L1_CA_PCPS_Acquisition");
//config->set_property("Acquisition.threshold", "0.8"); // config->set_property("Acquisition.threshold", "2.5");
config->set_property("Acquisition.pfa", "0.001"); config->set_property("Acquisition.pfa", "0.001");
config->set_property("Acquisition.doppler_max", "10000"); config->set_property("Acquisition.doppler_max", "10000");
config->set_property("Acquisition.doppler_step", "250"); config->set_property("Acquisition.doppler_step", "250");
@ -487,10 +487,6 @@ TEST_F(GlonassL1CaPcpsAcquisitionGSoC2017Test, ValidationOfResults)
acquisition->set_doppler_step(500); acquisition->set_doppler_step(500);
}) << "Failure setting doppler_step."; }) << "Failure setting doppler_step.";
//ASSERT_NO_THROW({
//acquisition->set_threshold(0.05);
//}) << "Failure setting threshold.";
ASSERT_NO_THROW({ ASSERT_NO_THROW({
acquisition->connect(top_block); acquisition->connect(top_block);
top_block->msg_connect(acquisition->get_right_block(), pmt::mp("events"), msg_rx, pmt::mp("events")); top_block->msg_connect(acquisition->get_right_block(), pmt::mp("events"), msg_rx, pmt::mp("events"));
@ -575,10 +571,6 @@ TEST_F(GlonassL1CaPcpsAcquisitionGSoC2017Test, ValidationOfResultsProbabilities)
acquisition->set_doppler_step(config->property("Acquisition.doppler_step", 500)); acquisition->set_doppler_step(config->property("Acquisition.doppler_step", 500));
}) << "Failure setting doppler_step."; }) << "Failure setting doppler_step.";
//ASSERT_NO_THROW({
//acquisition->set_threshold(config->property("Acquisition.threshold", 0.0));
//}) << "Failure setting threshold.";
ASSERT_NO_THROW({ ASSERT_NO_THROW({
acquisition->connect(top_block); acquisition->connect(top_block);
top_block->msg_connect(acquisition->get_right_block(), pmt::mp("events"), msg_rx, pmt::mp("events")); top_block->msg_connect(acquisition->get_right_block(), pmt::mp("events"), msg_rx, pmt::mp("events"));

View File

@ -241,7 +241,7 @@ void GpsL1CaPcpsAcquisitionGSoC2013Test::config_1()
config->set_property("Acquisition_1C.coherent_integration_time_ms", config->set_property("Acquisition_1C.coherent_integration_time_ms",
std::to_string(integration_time_ms)); std::to_string(integration_time_ms));
config->set_property("Acquisition_1C.max_dwells", "1"); config->set_property("Acquisition_1C.max_dwells", "1");
//config->set_property("Acquisition_1C.threshold", "0.8"); // config->set_property("Acquisition_1C.threshold", "2.5");
config->set_property("Acquisition_1C.pfa", "0.001"); config->set_property("Acquisition_1C.pfa", "0.001");
config->set_property("Acquisition_1C.doppler_max", "10000"); config->set_property("Acquisition_1C.doppler_max", "10000");
config->set_property("Acquisition_1C.doppler_step", "250"); config->set_property("Acquisition_1C.doppler_step", "250");
@ -480,10 +480,6 @@ TEST_F(GpsL1CaPcpsAcquisitionGSoC2013Test, ValidationOfResults)
acquisition->set_doppler_step(500); acquisition->set_doppler_step(500);
}) << "Failure setting doppler_step."; }) << "Failure setting doppler_step.";
//ASSERT_NO_THROW({
//acquisition->set_threshold(0.5);
//}) << "Failure setting threshold.";
ASSERT_NO_THROW({ ASSERT_NO_THROW({
acquisition->connect(top_block); acquisition->connect(top_block);
top_block->msg_connect(acquisition->get_right_block(), pmt::mp("events"), msg_rx, pmt::mp("events")); top_block->msg_connect(acquisition->get_right_block(), pmt::mp("events"), msg_rx, pmt::mp("events"));
@ -569,10 +565,6 @@ TEST_F(GpsL1CaPcpsAcquisitionGSoC2013Test, ValidationOfResultsProbabilities)
acquisition->set_doppler_step(config->property("Acquisition_1C.doppler_step", 500)); acquisition->set_doppler_step(config->property("Acquisition_1C.doppler_step", 500));
}) << "Failure setting doppler_step."; }) << "Failure setting doppler_step.";
//ASSERT_NO_THROW({
//acquisition->set_threshold(config->property("Acquisition_1C.threshold", 0.0));
//}) << "Failure setting threshold.";
ASSERT_NO_THROW({ ASSERT_NO_THROW({
acquisition->connect(top_block); acquisition->connect(top_block);
top_block->msg_connect(acquisition->get_right_block(), pmt::mp("events"), msg_rx, pmt::mp("events")); top_block->msg_connect(acquisition->get_right_block(), pmt::mp("events"), msg_rx, pmt::mp("events"));

View File

@ -129,7 +129,6 @@ HybridObservablesTest_msg_rx::~HybridObservablesTest_msg_rx() = default;
// ########################################################### // ###########################################################
// ######## GNURADIO BLOCK MESSAGE RECEVER FOR TLM MESSAGES ######### // ######## GNURADIO BLOCK MESSAGE RECEVER FOR TLM MESSAGES #########
class HybridObservablesTest_tlm_msg_rx; class HybridObservablesTest_tlm_msg_rx;
@ -149,11 +148,13 @@ public:
~HybridObservablesTest_tlm_msg_rx(); //!< Default destructor ~HybridObservablesTest_tlm_msg_rx(); //!< Default destructor
}; };
HybridObservablesTest_tlm_msg_rx_sptr HybridObservablesTest_tlm_msg_rx_make() HybridObservablesTest_tlm_msg_rx_sptr HybridObservablesTest_tlm_msg_rx_make()
{ {
return HybridObservablesTest_tlm_msg_rx_sptr(new HybridObservablesTest_tlm_msg_rx()); return HybridObservablesTest_tlm_msg_rx_sptr(new HybridObservablesTest_tlm_msg_rx());
} }
void HybridObservablesTest_tlm_msg_rx::msg_handler_events(pmt::pmt_t msg) void HybridObservablesTest_tlm_msg_rx::msg_handler_events(pmt::pmt_t msg)
{ {
try try
@ -168,6 +169,7 @@ void HybridObservablesTest_tlm_msg_rx::msg_handler_events(pmt::pmt_t msg)
} }
} }
HybridObservablesTest_tlm_msg_rx::HybridObservablesTest_tlm_msg_rx() : gr::block("HybridObservablesTest_tlm_msg_rx", gr::io_signature::make(0, 0, 0), gr::io_signature::make(0, 0, 0)) HybridObservablesTest_tlm_msg_rx::HybridObservablesTest_tlm_msg_rx() : gr::block("HybridObservablesTest_tlm_msg_rx", gr::io_signature::make(0, 0, 0), gr::io_signature::make(0, 0, 0))
{ {
this->message_port_register_in(pmt::mp("events")); this->message_port_register_in(pmt::mp("events"));
@ -175,6 +177,7 @@ HybridObservablesTest_tlm_msg_rx::HybridObservablesTest_tlm_msg_rx() : gr::block
rx_message = 0; rx_message = 0;
} }
HybridObservablesTest_tlm_msg_rx::~HybridObservablesTest_tlm_msg_rx() = default; HybridObservablesTest_tlm_msg_rx::~HybridObservablesTest_tlm_msg_rx() = default;
@ -289,6 +292,7 @@ public:
size_t item_size; size_t item_size;
}; };
int HybridObservablesTest::configure_generator() int HybridObservablesTest::configure_generator()
{ {
// Configure signal generator // Configure signal generator
@ -538,7 +542,6 @@ bool HybridObservablesTest::acquire_signal()
// top_block->connect(head_samples, 0, acquisition->get_left_block(), 0); // top_block->connect(head_samples, 0, acquisition->get_left_block(), 0);
} }
boost::shared_ptr<Acquisition_msg_rx> msg_rx; boost::shared_ptr<Acquisition_msg_rx> msg_rx;
try try
{ {
@ -2016,7 +2019,6 @@ TEST_F(HybridObservablesTest, ValidationOfResults)
if (sat1_ch_id != -1 and sat2_ch_id != -1) if (sat1_ch_id != -1 and sat2_ch_id != -1)
{ {
// compute single differences for the duplicated satellite // compute single differences for the duplicated satellite
check_results_duplicated_satellite( check_results_duplicated_satellite(
measured_obs_vec.at(sat1_ch_id), measured_obs_vec.at(sat1_ch_id),
measured_obs_vec.at(sat2_ch_id), measured_obs_vec.at(sat2_ch_id),

View File

@ -527,6 +527,7 @@ private:
bool acquisition_successful; bool acquisition_successful;
}; };
bool HybridObservablesTestFpga::acquire_signal() bool HybridObservablesTestFpga::acquire_signal()
{ {
pthread_t thread_DMA, thread_acquisition; pthread_t thread_DMA, thread_acquisition;
@ -542,7 +543,7 @@ bool HybridObservablesTestFpga::acquire_signal()
// Satellite signal definition // Satellite signal definition
Gnss_Synchro tmp_gnss_synchro; Gnss_Synchro tmp_gnss_synchro;
tmp_gnss_synchro.Channel_ID = 0; tmp_gnss_synchro.Channel_ID = 0;
//config = std::make_shared<InMemoryConfiguration>();
config->set_property("GNSS-SDR.internal_fs_sps", std::to_string(baseband_sampling_freq)); config->set_property("GNSS-SDR.internal_fs_sps", std::to_string(baseband_sampling_freq));
std::shared_ptr<AcquisitionInterface> acquisition; std::shared_ptr<AcquisitionInterface> acquisition;
@ -1228,6 +1229,7 @@ void HybridObservablesTestFpga::check_results_carrier_doppler(
ASSERT_LT(rmse_ch0, 30); ASSERT_LT(rmse_ch0, 30);
} }
void HybridObservablesTestFpga::check_results_duplicated_satellite( void HybridObservablesTestFpga::check_results_duplicated_satellite(
arma::mat& measured_sat1, arma::mat& measured_sat1,
arma::mat& measured_sat2, arma::mat& measured_sat2,
@ -1724,7 +1726,6 @@ bool HybridObservablesTestFpga::ReadRinexObs(std::vector<arma::mat>* obs_vec, Gn
} // End of 'try' block } // End of 'try' block
catch (const gpstk::FFStreamError& e) catch (const gpstk::FFStreamError& e)
{ {
std::cout << e; std::cout << e;
@ -1896,7 +1897,6 @@ TEST_F(HybridObservablesTestFpga, ValidationOfResults)
gnss_synchro_vec.at(n).Channel_ID = n; gnss_synchro_vec.at(n).Channel_ID = n;
// create the tracking channels and create the telemetry decoders // create the tracking channels and create the telemetry decoders
std::shared_ptr<GNSSBlockInterface> trk_ = factory->GetBlock(config, "Tracking", config->property("Tracking.implementation", std::string("undefined")), 1, 1); std::shared_ptr<GNSSBlockInterface> trk_ = factory->GetBlock(config, "Tracking", config->property("Tracking.implementation", std::string("undefined")), 1, 1);
tracking_ch_vec.push_back(std::dynamic_pointer_cast<TrackingInterface>(trk_)); tracking_ch_vec.push_back(std::dynamic_pointer_cast<TrackingInterface>(trk_));
std::shared_ptr<GNSSBlockInterface> tlm_ = factory->GetBlock(config, "TelemetryDecoder", config->property("TelemetryDecoder.implementation", std::string("undefined")), 1, 1); std::shared_ptr<GNSSBlockInterface> tlm_ = factory->GetBlock(config, "TelemetryDecoder", config->property("TelemetryDecoder.implementation", std::string("undefined")), 1, 1);
@ -1973,7 +1973,6 @@ TEST_F(HybridObservablesTestFpga, ValidationOfResults)
top_block->connect(ch_out_fpga_sample_counter, 0, observables->get_left_block(), tracking_ch_vec.size()); // extra port for the sample counter pulse top_block->connect(ch_out_fpga_sample_counter, 0, observables->get_left_block(), tracking_ch_vec.size()); // extra port for the sample counter pulse
}) << "Failure connecting the blocks."; }) << "Failure connecting the blocks.";
top_block->start(); top_block->start();
usleep(1000000); // give time for the system to start before receiving the start tracking command. usleep(1000000); // give time for the system to start before receiving the start tracking command.
@ -2015,7 +2014,6 @@ TEST_F(HybridObservablesTestFpga, ValidationOfResults)
acquisition->stop_acquisition(); acquisition->stop_acquisition();
EXPECT_NO_THROW({ EXPECT_NO_THROW({
end = std::chrono::system_clock::now(); end = std::chrono::system_clock::now();
elapsed_seconds = end - start; elapsed_seconds = end - start;
@ -2343,6 +2341,5 @@ TEST_F(HybridObservablesTestFpga, ValidationOfResults)
} }
} }
std::cout << "Test completed in " << elapsed_seconds.count() << " [s]" << std::endl; std::cout << "Test completed in " << elapsed_seconds.count() << " [s]" << std::endl;
} }

View File

@ -142,6 +142,7 @@ struct acquisition_handler_args_trk_pull_in_test
std::shared_ptr<AcquisitionInterface> acquisition; std::shared_ptr<AcquisitionInterface> acquisition;
}; };
void* handler_acquisition_trk_pull_in_test(void* arguments) void* handler_acquisition_trk_pull_in_test(void* arguments)
{ {
// the acquisition is a blocking function so we have to // the acquisition is a blocking function so we have to
@ -151,6 +152,7 @@ void* handler_acquisition_trk_pull_in_test(void* arguments)
return nullptr; return nullptr;
} }
void* handler_DMA_trk_pull_in_test(void* arguments) void* handler_DMA_trk_pull_in_test(void* arguments)
{ {
const int MAX_INPUT_SAMPLES_TOTAL = 16384; const int MAX_INPUT_SAMPLES_TOTAL = 16384;
@ -196,7 +198,6 @@ void* handler_DMA_trk_pull_in_test(void* arguments)
//************************************************************************** //**************************************************************************
// Open input file // Open input file
//************************************************************************** //**************************************************************************
uint32_t skip_samples = static_cast<uint32_t>(FLAGS_skip_samples); uint32_t skip_samples = static_cast<uint32_t>(FLAGS_skip_samples);
if (skip_samples + skip_used_samples > 0) if (skip_samples + skip_used_samples > 0)
@ -299,6 +300,7 @@ void* handler_DMA_trk_pull_in_test(void* arguments)
return nullptr; return nullptr;
} }
class TrackingPullInTestFpga : public ::testing::Test class TrackingPullInTestFpga : public ::testing::Test
{ {
public: public:
@ -381,6 +383,7 @@ public:
static constexpr float DMA_SIGNAL_SCALING_FACTOR = 8.0; static constexpr float DMA_SIGNAL_SCALING_FACTOR = 8.0;
}; };
int TrackingPullInTestFpga::configure_generator(double CN0_dBHz, int file_idx) int TrackingPullInTestFpga::configure_generator(double CN0_dBHz, int file_idx)
{ {
// Configure signal generator // Configure signal generator
@ -402,6 +405,7 @@ int TrackingPullInTestFpga::configure_generator(double CN0_dBHz, int file_idx)
return 0; return 0;
} }
int TrackingPullInTestFpga::generate_signal() int TrackingPullInTestFpga::generate_signal()
{ {
int child_status; int child_status;
@ -473,6 +477,7 @@ private:
bool acquisition_successful; bool acquisition_successful;
}; };
void TrackingPullInTestFpga::configure_receiver( void TrackingPullInTestFpga::configure_receiver(
double PLL_wide_bw_hz, double PLL_wide_bw_hz,
double DLL_wide_bw_hz, double DLL_wide_bw_hz,
@ -924,7 +929,7 @@ TEST_F(TrackingPullInTestFpga, ValidationOfResults)
<< " Acquisition SampleStamp is " << acq_samplestamp_map.find(FLAGS_test_satellite_PRN)->second << std::endl; << " Acquisition SampleStamp is " << acq_samplestamp_map.find(FLAGS_test_satellite_PRN)->second << std::endl;
} }
long long int acq_to_trk_delay_samples = ceil(static_cast<double>(FLAGS_fs_gen_sps) * FLAGS_acq_to_trk_delay_s); int64_t acq_to_trk_delay_samples = ceil(static_cast<double>(FLAGS_fs_gen_sps) * FLAGS_acq_to_trk_delay_s);
// set the scaling factor // set the scaling factor
args.scaling_factor = DMA_SIGNAL_SCALING_FACTOR; args.scaling_factor = DMA_SIGNAL_SCALING_FACTOR;
@ -945,13 +950,11 @@ TEST_F(TrackingPullInTestFpga, ValidationOfResults)
// simulate Code Delay error in acquisition // simulate Code Delay error in acquisition
gnss_synchro.Acq_delay_samples = true_acq_delay_samples + (acq_delay_error_chips_values.at(current_acq_doppler_error_idx).at(current_acq_code_error_idx) / GPS_L1_CA_CODE_RATE_CPS) * static_cast<double>(baseband_sampling_freq); gnss_synchro.Acq_delay_samples = true_acq_delay_samples + (acq_delay_error_chips_values.at(current_acq_doppler_error_idx).at(current_acq_code_error_idx) / GPS_L1_CA_CODE_RATE_CPS) * static_cast<double>(baseband_sampling_freq);
// We need to reset the HW again in order to reset the sample counter. // We need to reset the HW again in order to reset the sample counter.
// The HW is reset by sending a command to the acquisition HW accelerator // The HW is reset by sending a command to the acquisition HW accelerator
// In order to send the reset command to the HW we instantiate the acquisition module. // In order to send the reset command to the HW we instantiate the acquisition module.
std::shared_ptr<AcquisitionInterface> acquisition; std::shared_ptr<AcquisitionInterface> acquisition;
// reset the HW to clear the sample counters: the acquisition constructor generates a reset // reset the HW to clear the sample counters: the acquisition constructor generates a reset
if (implementation == "GPS_L1_CA_DLL_PLL_Tracking_Fpga") if (implementation == "GPS_L1_CA_DLL_PLL_Tracking_Fpga")
{ {
@ -981,7 +984,6 @@ TEST_F(TrackingPullInTestFpga, ValidationOfResults)
acquisition->stop_acquisition(); // reset the whole system including the sample counters acquisition->stop_acquisition(); // reset the whole system including the sample counters
// create flowgraph // create flowgraph
top_block = gr::make_top_block("Tracking test"); top_block = gr::make_top_block("Tracking test");
std::shared_ptr<GNSSBlockInterface> trk_ = factory->GetBlock(config, "Tracking", config->property("Tracking.implementation", std::string("undefined")), 1, 1); std::shared_ptr<GNSSBlockInterface> trk_ = factory->GetBlock(config, "Tracking", config->property("Tracking.implementation", std::string("undefined")), 1, 1);
@ -1016,7 +1018,6 @@ TEST_F(TrackingPullInTestFpga, ValidationOfResults)
top_block->msg_connect(tracking->get_right_block(), pmt::mp("events"), msg_rx, pmt::mp("events")); top_block->msg_connect(tracking->get_right_block(), pmt::mp("events"), msg_rx, pmt::mp("events"));
}) << "Failure connecting the blocks of tracking test."; }) << "Failure connecting the blocks of tracking test.";
// initialize the internal status of the LPF in the FPGA in the L1/E1 frequency band // initialize the internal status of the LPF in the FPGA in the L1/E1 frequency band
// ******************************************************************** // ********************************************************************
@ -1025,10 +1026,8 @@ TEST_F(TrackingPullInTestFpga, ValidationOfResults)
std::cout << "--- START TRACKING WITH PULL-IN ERROR: " << acq_doppler_error_hz_values.at(current_acq_doppler_error_idx) << " [Hz] and " << acq_delay_error_chips_values.at(current_acq_doppler_error_idx).at(current_acq_code_error_idx) << " [Chips] ---" << std::endl; std::cout << "--- START TRACKING WITH PULL-IN ERROR: " << acq_doppler_error_hz_values.at(current_acq_doppler_error_idx) << " [Hz] and " << acq_delay_error_chips_values.at(current_acq_doppler_error_idx).at(current_acq_code_error_idx) << " [Chips] ---" << std::endl;
std::chrono::time_point<std::chrono::system_clock> start, end; std::chrono::time_point<std::chrono::system_clock> start, end;
top_block->start(); top_block->start();
usleep(1000000); // give time for the system to start before receiving the start tracking command. usleep(1000000); // give time for the system to start before receiving the start tracking command.
if (acq_to_trk_delay_samples > 0) if (acq_to_trk_delay_samples > 0)
@ -1046,7 +1045,6 @@ TEST_F(TrackingPullInTestFpga, ValidationOfResults)
} }
} }
std::cout << " Starting tracking...\n"; std::cout << " Starting tracking...\n";
tracking->start_tracking(); tracking->start_tracking();