[hamradio-commits] [gnss-sdr] 26/149: remove unnedded headers

Carles Fernandez carles_fernandez-guest at moszumanska.debian.org
Sat Feb 6 19:42:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

carles_fernandez-guest pushed a commit to branch next
in repository gnss-sdr.

commit 9e0c1bb719865460a025872c46a1cf6e3d159c8d
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date:   Sun Jan 3 15:22:52 2016 +0100

    remove unnedded headers
---
 src/algorithms/libs/gps_l2c_signal.cc | 18 +++++-------------
 src/algorithms/libs/gps_l2c_signal.h  |  1 -
 2 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/src/algorithms/libs/gps_l2c_signal.cc b/src/algorithms/libs/gps_l2c_signal.cc
index 5672b3a..cceb45d 100644
--- a/src/algorithms/libs/gps_l2c_signal.cc
+++ b/src/algorithms/libs/gps_l2c_signal.cc
@@ -31,8 +31,7 @@
  */
 
 #include <gps_l2c_signal.h>
-#include <stdlib.h>
-#include <stdint.h>
+#include <cstdint>
 #include <cmath>
 
 
@@ -41,6 +40,7 @@ int32_t gps_l2c_m_shift(int32_t x)
 	return static_cast<int32_t>((x >> 1)^((x & 1) * 0445112474));
 }
 
+
 void gps_l2c_m_code(int32_t * _dest, unsigned int _prn)
 {
 	int32_t x;
@@ -53,7 +53,6 @@ void gps_l2c_m_code(int32_t * _dest, unsigned int _prn)
 }
 
 
-
 void gps_l2c_m_code_gen_complex(std::complex<float>* _dest, unsigned int _prn)
 {
     int32_t* _code = new int32_t[GPS_L2_M_CODE_LENGTH_CHIPS];
@@ -95,25 +94,18 @@ void gps_l2c_m_code_gen_complex_sampled(std::complex<float>* _dest, unsigned int
     _ts = 1.0 / static_cast<float>(_fs);   // Sampling period in sec
     _tc = 1.0 / static_cast<float>(GPS_L2_M_CODE_RATE_HZ);  // C/A chip period in sec
 
-    float aux;
-
+    //float aux;
     for (signed int i = 0; i < _samplesPerCode; i++)
         {
             //=== Digitizing =======================================================
 
-            //--- Make index array to read C/A code values -------------------------
-            // The length of the index array depends on the sampling frequency -
-            // number of samples per millisecond (because one C/A code period is one
-            // millisecond).
+            //--- Make index array to read L2C code values -------------------------
     	    //TODO: Check this formula! Seems to start with an extra sample
-
             _codeValueIndex = ceil((_ts * ((float)i + 1)) / _tc) - 1;
             //aux = (_ts * (i + 1)) / _tc;
             //_codeValueIndex = static_cast<int>(static_cast<long>(aux)) - 1;
 
-            //--- Make the digitized version of the C/A code -----------------------
-            // The "upsampled" code is made by selecting values form the CA code
-            // chip array (caCode) for the time instances of each sample.
+            //--- Make the digitized version of the L2C code -----------------------
             if (i == _samplesPerCode - 1)
                 {
                     //--- Correct the last index (due to number rounding issues) -----------
diff --git a/src/algorithms/libs/gps_l2c_signal.h b/src/algorithms/libs/gps_l2c_signal.h
index de5d72d..d0868c2 100644
--- a/src/algorithms/libs/gps_l2c_signal.h
+++ b/src/algorithms/libs/gps_l2c_signal.h
@@ -34,7 +34,6 @@
 #define GNSS_GPS_L2C_SIGNAL_H_
 
 #include <complex>
-#include <iostream>
 #include "GPS_L2C.h"
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git



More information about the pkg-hamradio-commits mailing list