Changeset 8570 in ntrip for branches/BNC_2.12
- Timestamp:
- Dec 20, 2018, 11:11:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp
r8543 r8570 330 330 for (int ii = 1; ii < lines.size(); ii++) { 331 331 QString key; // prn or key VTEC, IND (phase bias indicators) 332 double rtnUra ;// [m]333 ColumnVector rtnAPC; // [m, m, m]334 ColumnVector rtnVel; // [m/s, m/s, m/s]]335 ColumnVector rtnCoM; // [m, m, m]336 ColumnVector rtnClk; // [m, m/s, m/s²]337 ColumnVector rtnClkSig; // [m, m/s, m/s²]332 double rtnUra = 0.0; // [m] 333 ColumnVector rtnAPC; rtnAPC.ReSize(3); rtnAPC = 0.0; // [m, m, m] 334 ColumnVector rtnVel; rtnVel.ReSize(3); rtnVel = 0.0; // [m/s, m/s, m/s]] 335 ColumnVector rtnCoM; rtnCoM.ReSize(3); rtnCoM = 0.0; // [m, m, m] 336 ColumnVector rtnClk; rtnClk.ReSize(3); rtnClk = 0.0; // [m, m/s, m/s²] 337 ColumnVector rtnClkSig; rtnClkSig.ReSize(3); rtnClkSig = 0.0; // [m, m/s, m/s²] 338 338 t_prn prn; 339 339 340 340 QTextStream in(lines[ii].toAscii()); 341 342 341 in >> key; 343 342 … … 347 346 continue; 348 347 } 348 349 349 // non-satellite specific parameters 350 350 if (key.contains("VTEC", Qt::CaseSensitive)) { … … 369 369 continue; 370 370 } 371 371 372 // satellite specific parameters 372 373 char sys = key.mid(0, 1).at(0).toAscii(); 373 374 int number = key.mid(1, 2).toInt(); 374 375 int flags = 0; 375 376 376 if (sys == 'E') { // I/NAV 377 377 flags = 1; … … 384 384 const t_eph* ephPrev = _ephUser->ephPrev(prnInternalStr); 385 385 const t_eph* eph = ephLast; 386 386 387 if (eph) { 387 388 … … 429 430 if (key == "APC") { 430 431 in >> numVal; 431 rtnAPC.ReSize(3); 432 rtnAPC.ReSize(3); rtnAPC = 0.0; 432 433 for (int ii = 0; ii < numVal; ii++) { 433 434 in >> rtnAPC[ii]; … … 440 441 } 441 442 else if (key == "Clk") { 442 rtnClk.ReSize(3);443 for (int ii = 0; ii < 3; ii++) {444 rtnClk[ii] = 0.0;445 }446 443 in >> numVal; 444 rtnClk.ReSize(3); rtnClk = 0.0; 447 445 for (int ii = 0; ii < numVal; ii++) { 448 446 in >> rtnClk[ii]; … … 450 448 } 451 449 else if (key == "ClkSig") { 452 rtnClkSig.ReSize(3);453 for (int ii = 0; ii < 3; ii++) {454 rtnClkSig[ii] = 0.0;455 }456 450 in >> numVal; 451 rtnClkSig.ReSize(3); rtnClkSig = 0.0; 457 452 for (int ii = 0; ii < numVal; ii++) { 458 453 in >> rtnClkSig[ii]; … … 460 455 } 461 456 else if (key == "Vel") { 462 rtnVel.ReSize(3);463 457 in >> numVal; 458 rtnVel.ReSize(3); rtnVel = 0.0; 464 459 for (int ii = 0; ii < numVal; ii++) { 465 460 in >> rtnVel[ii]; … … 467 462 } 468 463 else if (key == "CoM") { 469 rtnCoM.ReSize(3);470 464 in >> numVal; 465 rtnCoM.ReSize(3); rtnCoM = 0.0; 471 466 for (int ii = 0; ii < numVal; ii++) { 472 467 in >> rtnCoM[ii]; … … 2305 2300 // ---------------- 2306 2301 double dClkA0 = rtnClk(1) - (xB(4) - dc) * t_CST::c; 2307 double dClkA1 = rtnClk(2) - xB(5) * t_CST::c; 2308 double dClkA2 = rtnClk(3) - xB(6) * t_CST::c; 2302 double dClkA1 = 0.0; 2303 if (rtnClk(2)) { 2304 dClkA1 = rtnClk(2) - xB(5) * t_CST::c; 2305 } 2306 double dClkA2 = 0.0; 2307 if (rtnClk(3)) { 2308 dClkA2 = rtnClk(3) - xB(6) * t_CST::c; 2309 } 2309 2310 2310 2311 if (sd) {
Note:
See TracChangeset
for help on using the changeset viewer.