- Timestamp:
- Oct 23, 2018, 5:40:06 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp
r8507 r8509 415 415 416 416 if (eph) { 417 418 417 QMap<QString, double> codeBiases; 419 418 QList<phaseBiasSignal> phaseBiasList; … … 421 420 422 421 while (true) { 423 rtnClk.ReSize(3);424 for (int ii = 0; ii < 3; ii++) {425 rtnClk[ii] = 0.0;426 }427 rtnClkSig.ReSize(3);428 for (int ii = 0; ii < 3; ii++) {429 rtnClkSig[ii] = 0.0;430 }431 rtnVel.ReSize(3);432 rtnCoM.ReSize(3);433 422 QString key; 434 423 int numVal = 0; … … 450 439 } 451 440 else if (key == "Clk") { 441 rtnClk.ReSize(3); 442 for (int ii = 0; ii < 3; ii++) { 443 rtnClk[ii] = 0.0; 444 } 452 445 in >> numVal; 453 446 for (int ii = 0; ii < numVal; ii++) { … … 456 449 } 457 450 else if (key == "ClkSig") { 451 rtnClkSig.ReSize(3); 452 for (int ii = 0; ii < 3; ii++) { 453 rtnClkSig[ii] = 0.0; 454 } 458 455 in >> numVal; 459 456 for (int ii = 0; ii < numVal; ii++) { … … 462 459 } 463 460 else if (key == "Vel") { 461 rtnVel.ReSize(3); 464 462 in >> numVal; 465 463 for (int ii = 0; ii < numVal; ii++) { … … 468 466 } 469 467 else if (key == "CoM") { 468 rtnCoM.ReSize(3); 470 469 in >> numVal; 471 470 for (int ii = 0; ii < numVal; ii++) { … … 2334 2333 2335 2334 if (_rnx) { 2336 double clkRnxSig = rtnClkSig[0] / t_CST::c; // [s] 2337 double clkRnxRateSig = rtnClkSig[1] / t_CST::c; // [s/s = -] 2338 double clkRnxAccSig = rtnClkSig[2] / t_CST::c; // [s/s² ) -/s] 2335 double clkRnxSig, clkRnxRateSig, clkRnxAccSig; 2336 int s = rtnClkSig.size(); 2337 switch (s) { 2338 case 1: 2339 clkRnxSig = rtnClkSig[0] / t_CST::c; // [s] 2340 clkRnxRateSig = 0.0; // [s/s = -] 2341 clkRnxAccSig = 0.0; // [s/s² ) -/s] 2342 break; 2343 case 2: 2344 clkRnxSig = rtnClkSig[0] / t_CST::c; // [s] 2345 clkRnxRateSig = rtnClkSig[1] / t_CST::c; // [s/s = -] 2346 clkRnxAccSig = 0.0; // [s/s² ) -/s] 2347 break; 2348 case 3: 2349 clkRnxSig = rtnClkSig[0] / t_CST::c; // [s] 2350 clkRnxRateSig = rtnClkSig[1] / t_CST::c; // [s/s = -] 2351 clkRnxAccSig = rtnClkSig[2] / t_CST::c; // [s/s² ) -/s] 2352 break; 2353 } 2339 2354 _rnx->write(GPSweek, GPSweeks, prn, clkRnx, clkRnxRate, clkRnxAcc, 2340 2355 clkRnxSig, clkRnxRateSig, clkRnxAccSig);
Note:
See TracChangeset
for help on using the changeset viewer.