mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-29 02:14:51 +00:00
remove unnedded headers
This commit is contained in:
parent
70706cb87e
commit
9e0c1bb719
@ -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) -----------
|
||||
|
@ -34,7 +34,6 @@
|
||||
#define GNSS_GPS_L2C_SIGNAL_H_
|
||||
|
||||
#include <complex>
|
||||
#include <iostream>
|
||||
#include "GPS_L2C.h"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user