diff --git a/gpssim.c b/gpssim.c index 91d5c72..f41dc22 100644 --- a/gpssim.c +++ b/gpssim.c @@ -2105,8 +2105,8 @@ int main(int argc, char *argv[]) if (chan[i].prn>0) { // Refresh code phase and data bit counters - int sv = chan[i].prn-1; range_t rho; + sv = chan[i].prn-1; // Current pseudorange computeRange(&rho, eph[ieph][sv], &ionoutc, grx, xyz[iumd]); @@ -2230,6 +2230,29 @@ int main(int argc, char *argv[]) if (chan[i].prn>0) generateNavMsg(grx, &chan[i], 0); + // Refresh ephemeris and subframes + // Quick and dirty fix. Need more elegant way. + for (sv=0; sv