osqzss / gps-sdr-sim

Software-Defined GPS Signal Simulator
MIT License
2.61k stars 761 forks source link

In line 1317: function - computeCodePhase what is the rho1 and chan? #315

Closed Imtiaz08 closed 2 years ago

Imtiaz08 commented 2 years ago

Hi, I am trying to understand the code but facing a lot of difficulty in learning the part where code phases are computed. the function is taking input parameters as a channel, rho1, and dt. In line 2174 of the c code the dt is given as 0.1 but what is the rho and chan? I mean how is the rho calculated? is it taken from the compute pseudorange function?

If it is taken from the compute pseudorange function then what is range_t.rho and chan->rho0.range? are these two rho parameters different?