mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-04-30 06:33:16 +00:00
remove unnedded headers
This commit is contained in:
parent
70706cb87e
commit
9e0c1bb719
@ -31,8 +31,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <gps_l2c_signal.h>
|
#include <gps_l2c_signal.h>
|
||||||
#include <stdlib.h>
|
#include <cstdint>
|
||||||
#include <stdint.h>
|
|
||||||
#include <cmath>
|
#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));
|
return static_cast<int32_t>((x >> 1)^((x & 1) * 0445112474));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void gps_l2c_m_code(int32_t * _dest, unsigned int _prn)
|
void gps_l2c_m_code(int32_t * _dest, unsigned int _prn)
|
||||||
{
|
{
|
||||||
int32_t x;
|
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)
|
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];
|
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
|
_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
|
_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++)
|
for (signed int i = 0; i < _samplesPerCode; i++)
|
||||||
{
|
{
|
||||||
//=== Digitizing =======================================================
|
//=== Digitizing =======================================================
|
||||||
|
|
||||||
//--- Make index array to read C/A code values -------------------------
|
//--- Make index array to read L2C 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).
|
|
||||||
//TODO: Check this formula! Seems to start with an extra sample
|
//TODO: Check this formula! Seems to start with an extra sample
|
||||||
|
|
||||||
_codeValueIndex = ceil((_ts * ((float)i + 1)) / _tc) - 1;
|
_codeValueIndex = ceil((_ts * ((float)i + 1)) / _tc) - 1;
|
||||||
//aux = (_ts * (i + 1)) / _tc;
|
//aux = (_ts * (i + 1)) / _tc;
|
||||||
//_codeValueIndex = static_cast<int>(static_cast<long>(aux)) - 1;
|
//_codeValueIndex = static_cast<int>(static_cast<long>(aux)) - 1;
|
||||||
|
|
||||||
//--- Make the digitized version of the C/A code -----------------------
|
//--- Make the digitized version of the L2C code -----------------------
|
||||||
// The "upsampled" code is made by selecting values form the CA code
|
|
||||||
// chip array (caCode) for the time instances of each sample.
|
|
||||||
if (i == _samplesPerCode - 1)
|
if (i == _samplesPerCode - 1)
|
||||||
{
|
{
|
||||||
//--- Correct the last index (due to number rounding issues) -----------
|
//--- Correct the last index (due to number rounding issues) -----------
|
||||||
|
@ -34,7 +34,6 @@
|
|||||||
#define GNSS_GPS_L2C_SIGNAL_H_
|
#define GNSS_GPS_L2C_SIGNAL_H_
|
||||||
|
|
||||||
#include <complex>
|
#include <complex>
|
||||||
#include <iostream>
|
|
||||||
#include "GPS_L2C.h"
|
#include "GPS_L2C.h"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user