Changeset 7478 in ntrip for trunk/BNC/src
- Timestamp:
- Sep 29, 2015, 1:08:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/rnxobsfile.cpp
r7474 r7478 1349 1349 QString dateStr; 1350 1350 QTextStream(&dateStr) << QString("> %1 %2 %3 %4 %5%6") 1351 .arg(year,4)1352 .arg(month, 2, 10, QChar('0'))1353 .arg(day,2, 10, QChar('0'))1354 .arg(hour,2, 10, QChar('0'))1355 .arg(min,2, 10, QChar('0'))1356 .arg(sec,11, 'f', 7);1351 .arg(year, 4) 1352 .arg(month, 2, 10, QChar('0')) 1353 .arg(day, 2, 10, QChar('0')) 1354 .arg(hour, 2, 10, QChar('0')) 1355 .arg(min, 2, 10, QChar('0')) 1356 .arg(sec, 11, 'f', 7); 1357 1357 1358 1358 int flag = 0; … … 1361 1361 for (unsigned iSat = 0; iSat < epo->rnxSat.size(); iSat++) { 1362 1362 const t_rnxSat& rnxSat = epo->rnxSat[iSat]; 1363 char sys= rnxSat.prn.system();1363 char sys = rnxSat.prn.system(); 1364 1364 1365 1365 const t_rnxObs* hlp[header.nTypes(sys)]; … … 1373 1373 while (itObs.hasNext()) { 1374 1374 itObs.next(); 1375 const QString& type= itObs.key();1375 const QString& type = itObs.key(); 1376 1376 const t_rnxObs& rnxObs = itObs.value(); 1377 1377 if (typeV3 == type2to3(sys, type) && rnxObs.value != 0.0) { … … 1385 1385 while (itObs.hasNext()) { 1386 1386 itObs.next(); 1387 const QString& type= itObs.key();1387 const QString& type = itObs.key(); 1388 1388 const t_rnxObs& rnxObs = itObs.value(); 1389 1389 if (hlp[iTypeV3] == 0 && typeV3 == type2to3(sys, type).left(2) && rnxObs.value != 0.0) { … … 1393 1393 } 1394 1394 1395 *stream << rnxSat.prn.toString().c_str(); 1396 1397 for (int iTypeV3 = 0; iTypeV3 < header.nTypes(sys); iTypeV3++) { 1398 const t_rnxObs* rnxObs = hlp[iTypeV3]; 1399 if (rnxObs == 0) { 1400 *stream << QString().leftJustified(16); 1401 } 1402 else { 1403 *stream << QString("%1").arg(rnxObs->value, 14, 'f', 3); 1404 if (rnxObs->lli != 0.0) { 1405 *stream << QString("%1").arg(rnxObs->lli,1); 1395 if (header.nTypes(sys)) { 1396 *stream << rnxSat.prn.toString().c_str(); 1397 for (int iTypeV3 = 0; iTypeV3 < header.nTypes(sys); iTypeV3++) { 1398 const t_rnxObs* rnxObs = hlp[iTypeV3]; 1399 if (rnxObs == 0) { 1400 *stream << QString().leftJustified(16); 1406 1401 } 1407 1402 else { 1408 *stream << ' '; 1409 } 1410 if (rnxObs->snr != 0.0) { 1411 *stream << QString("%1").arg(rnxObs->snr,1); 1412 } 1413 else { 1414 *stream << ' '; 1415 } 1416 } 1417 } 1418 *stream << endl; 1403 *stream << QString("%1").arg(rnxObs->value, 14, 'f', 3); 1404 if (rnxObs->lli != 0.0) { 1405 *stream << QString("%1").arg(rnxObs->lli, 1); 1406 } 1407 else { 1408 *stream << ' '; 1409 } 1410 if (rnxObs->snr != 0.0) { 1411 *stream << QString("%1").arg(rnxObs->snr, 1); 1412 } 1413 else { 1414 *stream << ' '; 1415 } 1416 } 1417 } 1418 *stream << endl; 1419 } 1419 1420 } 1420 1421 }
Note:
See TracChangeset
for help on using the changeset viewer.