mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-06-14 12:34:09 +00:00
Reducing the length of the test
This commit is contained in:
parent
a543e6b9e4
commit
9fa8efba5b
@ -43,7 +43,7 @@ TEST(CodeGenGPSL1_Test, CodeGeneration)
|
|||||||
signed int _prn = 1;
|
signed int _prn = 1;
|
||||||
unsigned int _chip_shift = 4;
|
unsigned int _chip_shift = 4;
|
||||||
|
|
||||||
int iterations = 100000;
|
int iterations = 1000;
|
||||||
|
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday(&tv, NULL);
|
gettimeofday(&tv, NULL);
|
||||||
@ -93,7 +93,7 @@ TEST(CodeGenGPSL1Sampled_Test, CodeGeneration)
|
|||||||
int _samplesPerCode = round(_fs / (_codeFreqBasis / _codeLength));
|
int _samplesPerCode = round(_fs / (_codeFreqBasis / _codeLength));
|
||||||
std::complex<float>* _dest = new std::complex<float>[_samplesPerCode];
|
std::complex<float>* _dest = new std::complex<float>[_samplesPerCode];
|
||||||
|
|
||||||
int iterations = 10000;
|
int iterations = 1000;
|
||||||
|
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday(&tv, NULL);
|
gettimeofday(&tv, NULL);
|
||||||
@ -133,8 +133,6 @@ TEST(CodeGenGPSL1Sampled_Test, CodeGeneration)
|
|||||||
|
|
||||||
TEST(ComplexCarrier_Test, CodeGeneration)
|
TEST(ComplexCarrier_Test, CodeGeneration)
|
||||||
{
|
{
|
||||||
//signed int _prn = 1;
|
|
||||||
//unsigned int _chip_shift = 4;
|
|
||||||
double _fs = 8000000;
|
double _fs = 8000000;
|
||||||
double _f = 4000;
|
double _f = 4000;
|
||||||
const signed int _codeFreqBasis = 1023000; //Hz
|
const signed int _codeFreqBasis = 1023000; //Hz
|
||||||
@ -142,7 +140,7 @@ TEST(ComplexCarrier_Test, CodeGeneration)
|
|||||||
int _samplesPerCode = round(_fs / (_codeFreqBasis / _codeLength));
|
int _samplesPerCode = round(_fs / (_codeFreqBasis / _codeLength));
|
||||||
std::complex<float>* _dest = new std::complex<float>[_samplesPerCode];
|
std::complex<float>* _dest = new std::complex<float>[_samplesPerCode];
|
||||||
|
|
||||||
int iterations = 100000;
|
int iterations = 1000;
|
||||||
|
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday(&tv, NULL);
|
gettimeofday(&tv, NULL);
|
||||||
@ -150,7 +148,6 @@ TEST(ComplexCarrier_Test, CodeGeneration)
|
|||||||
|
|
||||||
for(int i = 0; i < iterations; i++)
|
for(int i = 0; i < iterations; i++)
|
||||||
{
|
{
|
||||||
//gps_l1_ca_code_gen_complex_sampled( _dest, _prn, _fs, _chip_shift);
|
|
||||||
complex_exp_gen_conj( _dest, _f, _fs, _samplesPerCode);
|
complex_exp_gen_conj( _dest, _f, _fs, _samplesPerCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user