Faster carrier signal generation

This commit is contained in:
OSQZSS 2015-11-29 13:05:32 +09:00
parent 84f1c29f93
commit 38c5245484

View File

@ -1625,7 +1625,7 @@ int main(int argc, char *argv[])
phase_ini = (2.0*r_ref - r_xyz)/LAMBDA_L1; phase_ini = (2.0*r_ref - r_xyz)/LAMBDA_L1;
phase_ini -= floor(phase_ini); phase_ini -= floor(phase_ini);
chan[i].carr_phase = 512 * 65536.0 * phase_ini; chan[i].carr_phase = (unsigned int)(512 * 65536.0 * phase_ini);
} }
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
@ -1695,8 +1695,6 @@ int main(int argc, char *argv[])
for (iumd=1; iumd<numd; iumd++) for (iumd=1; iumd<numd; iumd++)
{ {
//#pragma omp parallel for private(isamp) // !!!FIXME!!! The current code runs faster without OpenMP support
// Properties -> Configuration Properties -> C/C++ -> Language -> Open MP Support -> Yes (/openmp)
for (i=0; i<nsat; i++) for (i=0; i<nsat; i++)
{ {
// Refresh code phase and data bit counters // Refresh code phase and data bit counters
@ -1708,7 +1706,7 @@ int main(int argc, char *argv[])
// Update code phase and data bit counters // Update code phase and data bit counters
computeCodePhase(&chan[i], rho0[sv], rho, 0.1); computeCodePhase(&chan[i], rho0[sv], rho, 0.1);
chan[i].carr_phasestep = 512 * 65536.0 * chan[i].f_carr * delt; chan[i].carr_phasestep = (int)(512 * 65536.0 * chan[i].f_carr * delt);
// Save current pseudorange // Save current pseudorange
rho0[sv] = rho; rho0[sv] = rho;