Skip to content

Commit

Permalink
[Convert Channel class to C implementation #44]
Browse files Browse the repository at this point in the history
Stating implementing acquisition, not debugged.
  • Loading branch information
agrenier-gnss committed Apr 4, 2023
1 parent 330de6c commit 8f86795
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions core/c_functions/channel_l1ca.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,33 @@ void RunTracking(st_Channel_L1CA channelVar){
return;
}

// --------------------------------------------------------------------------------------------------------------------

void PCPS(complex double* rfData, double* code, size_t size, double freqRange, double freqstep, int cohIntegration,
int nonCohIntegration, double samplesPerCode, double samplingFreq){

size_t size_phasePoints = cohIntegration * samplesPerCode];
double* phasePoints[size_phasePoints];

// Compute the phase points
for(int i=0; i < cohIntegration * samplesPerCode; i++){
phasePoints[i] = i * 2 * PI / samplingFreq
}

// Compute frequency bins
int i = 0;
double freq = 0.0
while(freq < freqRange){
freq = -freqRange + freqStep * i

// Generate replica
for(int i=0; i <size_phasePoint< i++){

}
}


}

// --------------------------------------------------------------------------------------------------------------------

Expand Down

0 comments on commit 8f86795

Please sign in to comment.