Disable Galileo E6 observables generation if the user sets PVT.use_e6_for_pvt=false

This commit is contained in:
Javier Arribas 2023-09-13 15:04:50 +02:00
parent fd57c34d5d
commit e592d09971
3 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,7 @@ HybridObservables::HybridObservables(const ConfigurationInterface* configuration
conf.observable_interval_ms = configuration->property("GNSS-SDR.observable_interval_ms", conf.observable_interval_ms);
conf.enable_carrier_smoothing = configuration->property(role + ".enable_carrier_smoothing", conf.enable_carrier_smoothing);
conf.always_output_gs = configuration->property("PVT.an_output_enabled", conf.always_output_gs) || configuration->property(role + ".always_output_gs", conf.always_output_gs);
conf.enable_E6 = configuration->property("PVT.use_e6_for_pvt", conf.enable_E6);
if (FLAGS_carrier_smoothing_factor == DEFAULT_CARRIER_SMOOTHING_FACTOR)
{

View File

@ -720,6 +720,10 @@ int hybrid_observables_gs::general_work(int noutput_items __attribute__((unused)
// Push the valid tracking Gnss_Synchros to their corresponding deque
if (in[n][m].Flag_valid_word)
{
if (std::string(in[n][m].Signal, 2) == std::string("E6"))
{
if (d_conf.enable_E6 == false) continue;
}
if (d_gnss_synchro_history->size(n) > 0)
{
// Check if the last Gnss_Synchro comes from the same satellite as the previous ones

View File

@ -41,6 +41,7 @@ public:
bool always_output_gs{false};
bool dump{false};
bool dump_mat{false};
bool enable_E6{false};
};
/** \} */