Open Imtiaz08 opened 2 years ago
}` in the upper code the rho1 is given as input but this variable isn't declared anywhere else.
look
// Update code phase and data bit counters
computeCodePhase(&chan[i], rho, 0.1);
Couldn't find this line in the C Code but I will have another look and see if I can find it.
Also
I am confused about the time in the following code there is g0 which seems to be GPS time from the rinex file right? what is g1? is the current time? I mean the time at which we want to create the signal?
double subGpsTime(gpstime_t g1, gpstime_t g0)
{
double dt;
dt = g1.sec - g0.sec;
dt += (double)(g1.week - g0.week) * SECONDS_IN_WEEK;
return (dt);
}
gpstime_t incGpsTime(gpstime_t g0, double dt)
{
gpstime_t g1;
g1.week = g0.week;
g1.sec = g0.sec + dt;
g1.sec = round(g1.sec * 1000.0) / 1000.0; // Avoid rounding error
while (g1.sec >= SECONDS_IN_WEEK)
{
g1.sec -= SECONDS_IN_WEEK;
g1.week++;
}
while (g1.sec < 0.0)
{
g1.sec += SECONDS_IN_WEEK;
g1.week--;
}
return (g1);
}`
}` in the upper code the rho1 is given as input but this variable isn't declared anywhere else.
look
// Update code phase and data bit counters computeCodePhase(&chan[i], rho, 0.1);
found these lines in another code multi sdr gps sim but couldn't find it in the gps sdr sim...
Couldn't find this line in the C Code
https://github.com/osqzss/gps-sdr-sim/blob/master/gpssim.c
line 2174
Can't understand what exactly is happening here... What is the time here? User time at which the signal Will be generated? Or the year month day time which was converted to gpst from the rinex file?
İf possible can you please explain the computecodephase?
` // ComputeCodePhase static void computeCodePhase(channel_t *chan, range_t rho1, double dt) { double ms; int ims; double rhorate;
}` in the upper code the rho1 is given as input but this variable isn't declared anywhere else.