From f9845ae3a2575af6906c4390d57884647f739c15 Mon Sep 17 00:00:00 2001 From: Gastd Date: Thu, 1 Jun 2017 20:57:48 -0300 Subject: [PATCH] Change the if frequency to the FDMA channel to be searched --- .../acquisition/gnuradio_blocks/pcps_acquisition_cc.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_cc.h b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_cc.h index 4bd5ab857..e1a5e7cdc 100644 --- a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_cc.h +++ b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_cc.h @@ -151,6 +151,12 @@ public: { gr::thread::scoped_lock lock(d_setlock); // require mutex with work function called by the scheduler d_gnss_synchro = p_gnss_synchro; + // Dealing with FDMA system + if(d_gnss_synchro->System == 'R') + { + d_freq += 0.5625e6 * GLONASS_PRN[d_gnss_synchro->PRN+1]; + std::cout << "d_freq " << d_freq << std::endl; + } } /*!