- Timestamp:
- Oct 23, 2018, 5:44:54 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r8508 r8510 424 424 425 425 while (true) { 426 rtnClk.ReSize(3);427 for (int ii = 0; ii < 3; ii++) {428 rtnClk[ii] = 0.0;429 }430 rtnClkSig.ReSize(3);431 for (int ii = 0; ii < 3; ii++) {432 rtnClkSig[ii] = 0.0;433 }434 rtnVel.ReSize(3);435 rtnCoM.ReSize(3);436 426 QString key; 437 427 int numVal = 0; … … 453 443 } 454 444 else if (key == "Clk") { 445 rtnClk.ReSize(3); 446 for (int ii = 0; ii < 3; ii++) { 447 rtnClk[ii] = 0.0; 448 } 455 449 in >> numVal; 456 450 for (int ii = 0; ii < numVal; ii++) { … … 459 453 } 460 454 else if (key == "ClkSig") { 455 rtnClkSig.ReSize(3); 456 for (int ii = 0; ii < 3; ii++) { 457 rtnClkSig[ii] = 0.0; 458 } 461 459 in >> numVal; 462 460 for (int ii = 0; ii < numVal; ii++) { … … 465 463 } 466 464 else if (key == "Vel") { 465 rtnVel.ReSize(3); 467 466 in >> numVal; 468 467 for (int ii = 0; ii < numVal; ii++) { … … 471 470 } 472 471 else if (key == "CoM") { 472 rtnCoM.ReSize(3); 473 473 in >> numVal; 474 474 for (int ii = 0; ii < numVal; ii++) { … … 2338 2338 2339 2339 if (_rnx) { 2340 double clkRnxSig = rtnClkSig[0] / t_CST::c; // [s] 2341 double clkRnxRateSig = rtnClkSig[1] / t_CST::c; // [s/s = -] 2342 double clkRnxAccSig = rtnClkSig[2] / t_CST::c; // [s/s² ) -/s] 2340 double clkRnxSig, clkRnxRateSig, clkRnxAccSig; 2341 int s = rtnClkSig.size(); 2342 switch (s) { 2343 case 1: 2344 clkRnxSig = rtnClkSig[0] / t_CST::c; // [s] 2345 clkRnxRateSig = 0.0; // [s/s = -] 2346 clkRnxAccSig = 0.0; // [s/s² ) -/s] 2347 break; 2348 case 2: 2349 clkRnxSig = rtnClkSig[0] / t_CST::c; // [s] 2350 clkRnxRateSig = rtnClkSig[1] / t_CST::c; // [s/s = -] 2351 clkRnxAccSig = 0.0; // [s/s² ) -/s] 2352 break; 2353 case 3: 2354 clkRnxSig = rtnClkSig[0] / t_CST::c; // [s] 2355 clkRnxRateSig = rtnClkSig[1] / t_CST::c; // [s/s = -] 2356 clkRnxAccSig = rtnClkSig[2] / t_CST::c; // [s/s² ) -/s] 2357 break; 2358 } 2343 2359 _rnx->write(GPSweek, GPSweeks, prn, clkRnx, clkRnxRate, clkRnxAcc, 2344 2360 clkRnxSig, clkRnxRateSig, clkRnxAccSig);
Note:
See TracChangeset
for help on using the changeset viewer.