1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 04:00:34 +00:00

Add --num_channels parameter to position_test

This commit is contained in:
Carles Fernandez 2021-08-11 16:35:05 +02:00
parent 8c400d1377
commit e0d41e96e9
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -54,6 +54,8 @@ using namespace google;
}
#endif
DEFINE_int32(num_channels, 11, "Number of channels");
// For GPS NAVIGATION (L1)
Concurrent_Queue<Gps_Acq_Assist> global_gps_acq_assist_queue;
Concurrent_Map<Gps_Acq_Assist> global_gps_acq_assist_map;
@ -177,7 +179,7 @@ int PositionSystemTest::configure_receiver()
const int grid_density = 16;
const float zero = 0.0;
const int number_of_channels = 11;
const int number_of_channels = FLAGS_num_channels;
const int in_acquisition = 1;
const float threshold = 2.5;
@ -205,7 +207,7 @@ int PositionSystemTest::configure_receiver()
{
config->set_property("GNSS-SDR.use_acquisition_resampler", "true");
}
config->set_property("GNSS-SDR.GPS_banned_prns", std::to_string(1));
// Set the assistance system parameters
config->set_property("GNSS-SDR.SUPL_read_gps_assistance_xml", "false");
config->set_property("GNSS-SDR.SUPL_gps_enabled", "false");
@ -322,7 +324,7 @@ int PositionSystemTest::configure_receiver()
config->set_property("PVT.iono_model", "OFF");
config->set_property("PVT.trop_model", "OFF");
config->set_property("PVT.AR_GPS", "PPP-AR");
config->set_property("PVT.elevation_mask", std::to_string(15));
config->set_property("PVT.elevation_mask", std::to_string(5));
config_f = nullptr;
}