From a9fdc3ea677b98104c794e5068c3e2b052a0b5d8 Mon Sep 17 00:00:00 2001 From: Sergi Segura Date: Fri, 6 Jul 2018 15:55:00 +0200 Subject: [PATCH] minor corrections --- conf/gnss-sdr_BEIDOU_B1I_ishort.conf | 2 +- src/algorithms/libs/beidou_b1I_signal_processing.cc | 3 ++- src/core/receiver/gnss_block_factory.cc | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/gnss-sdr_BEIDOU_B1I_ishort.conf b/conf/gnss-sdr_BEIDOU_B1I_ishort.conf index e310b7fc5..eb58d2297 100644 --- a/conf/gnss-sdr_BEIDOU_B1I_ishort.conf +++ b/conf/gnss-sdr_BEIDOU_B1I_ishort.conf @@ -38,7 +38,7 @@ Resampler.sample_freq_out=25000000 Resampler.item_type=gr_complex ;######### CHANNELS GLOBAL CONFIG ############ -Channels_B1.count=1 +Channels_B1.count=8 Channels.in_acquisition=1 Channel.signal=B1 diff --git a/src/algorithms/libs/beidou_b1I_signal_processing.cc b/src/algorithms/libs/beidou_b1I_signal_processing.cc index 6f5b1f526..4147567d0 100644 --- a/src/algorithms/libs/beidou_b1I_signal_processing.cc +++ b/src/algorithms/libs/beidou_b1I_signal_processing.cc @@ -71,7 +71,7 @@ std::cout << "MY SATELLITE " << _prn << "!" << std::endl; for (lcv = 0; lcv < _code_length; lcv++) { G1[lcv] = G1_register[0]; - G2[lcv] = G2_register[-(phase1[prn_idx] - 11) ] ^ G2_register[-(phase2[prn_idx]) - 11]; + G2[lcv] = G2_register[-(phase1[prn_idx] - 11) ] ^ G2_register[-(phase2[prn_idx] - 11) ]; feedback1 = (G1_register[0] + G1_register[1] + G1_register[2] + G1_register[3] + G1_register[4] + G1_register[10]) & 0x1; feedback2 = (G2_register[0] + G2_register[2] + G2_register[3] + G2_register[6] + G2_register[7] + G2_register[8] + G2_register[9] + G2_register[10]) & 0x1; @@ -103,6 +103,7 @@ std::cout << "MY SATELLITE " << _prn << "!" << std::endl; { _dest[lcv] = -1; } + delay++; delay %= _code_length; } diff --git a/src/core/receiver/gnss_block_factory.cc b/src/core/receiver/gnss_block_factory.cc index 4e8ff1f3f..dbcad14ff 100644 --- a/src/core/receiver/gnss_block_factory.cc +++ b/src/core/receiver/gnss_block_factory.cc @@ -1143,7 +1143,6 @@ std::unique_ptr GNSSBlockFactory::GetBlock( if (implementation.compare("Pass_Through") == 0) { std::unique_ptr block_(new Pass_Through(configuration.get(), role, in_streams, out_streams)); - std::cout << "Input streams: " <