From 88a8de38b8b44b0ba93e35ef7a17e8720253d497 Mon Sep 17 00:00:00 2001 From: Gastd Date: Mon, 5 Jun 2017 16:58:20 -0300 Subject: [PATCH] Add Glonass channels to PVT and Observables --- src/core/receiver/gnss_block_factory.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/receiver/gnss_block_factory.cc b/src/core/receiver/gnss_block_factory.cc index 7db6ddd95..39557a0a9 100644 --- a/src/core/receiver/gnss_block_factory.cc +++ b/src/core/receiver/gnss_block_factory.cc @@ -229,7 +229,8 @@ std::unique_ptr GNSSBlockFactory::GetObservables(std::shared Galileo_channels += configuration->property("Channels_5X.count", 0); unsigned int GPS_channels = configuration->property("Channels_1C.count", 0); GPS_channels += configuration->property("Channels_2S.count", 0); - return GetBlock(configuration, "Observables", implementation, Galileo_channels + GPS_channels, Galileo_channels + GPS_channels); + unsigned int Glonass_channels = configuration->property("Channels_1G.count", 0); + return GetBlock(configuration, "Observables", implementation, Galileo_channels + GPS_channels + Glonass_channels, Galileo_channels + GPS_channels + Glonass_channels); } @@ -243,7 +244,8 @@ std::unique_ptr GNSSBlockFactory::GetPVT(std::shared_ptrproperty("Channels_5X.count", 0); unsigned int GPS_channels = configuration->property("Channels_1C.count", 0); GPS_channels += configuration->property("Channels_2S.count", 0); - return GetBlock(configuration, "PVT", implementation, Galileo_channels + GPS_channels, 0); + unsigned int Glonass_channels = configuration->property("Channels_1G.count", 0); + return GetBlock(configuration, "PVT", implementation, Galileo_channels + GPS_channels + Glonass_channels, 0); }