Changeset 9675 in ntrip
- Timestamp:
- Apr 7, 2022, 4:19:40 PM (3 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncantex.cpp
r9608 r9675 111 111 t_frqMap* frqMap = map->frqMap[frqType]; 112 112 113 QString u, n,e; 114 u.sprintf("%+6.4f" ,frqMap->neu[2]); if (u.mid(1,1) == "0") {u.remove(1,1);} 115 n.sprintf("%+6.4f" ,frqMap->neu[0]); if (n.mid(1,1) == "0") {n.remove(1,1);} 116 e.sprintf("%+6.4f" ,frqMap->neu[1]); if (e.mid(1,1) == "0") {e.remove(1,1);} 113 QString u = QString().asprintf("%+6.4f" ,frqMap->neu[2]); if (u.mid(1,1) == "0") {u.remove(1,1);} 114 QString n = QString().asprintf("%+6.4f" ,frqMap->neu[0]); if (n.mid(1,1) == "0") {n.remove(1,1);} 115 QString e = QString().asprintf("%+6.4f" ,frqMap->neu[1]); if (e.mid(1,1) == "0") {e.remove(1,1);} 117 116 118 117 return QString(" %1 %2 %3").arg(u).arg(n).arg(e); -
trunk/BNC/src/bnccore.cpp
r9608 r9675 390 390 if (_rinexVers == 3) { 391 391 if ( ! (appendFlagGPS & QIODevice::Append)) { 392 QString line; 393 line.sprintf( 394 "%9.2f%11sN: GNSS NAV DATA M: Mixed%12sRINEX VERSION / TYPE\n", 392 QString line = QString().asprintf("%9.2f%11sN: GNSS NAV DATA M: Mixed%12sRINEX VERSION / TYPE\n", 395 393 defaultRnxNavVersion3, "", ""); 396 394 *_ephStreamGPS << line; 395 line.clear(); 397 396 398 397 QString hlp = currentDateAndTimeGPS().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true); … … 400 399 << _userName.toLatin1().data() 401 400 << hlp.toLatin1().data() 402 << "PGM / RUN BY / DATE " << endl;401 << "PGM / RUN BY / DATE\n"; 403 402 404 403 QStringListIterator it(comments); … … 407 406 } 408 407 409 line .sprintf("%60sEND OF HEADER\n", "");408 line = QString().asprintf("%60sEND OF HEADER\n", ""); 410 409 *_ephStreamGPS << line; 411 410 … … 418 417 else if (_rinexVers == 2) { 419 418 if (! (appendFlagGPS & QIODevice::Append)) { 420 QString line; 421 line.sprintf("%9.2f%11sN: GPS NAV DATA%25sRINEX VERSION / TYPE\n", 419 QString line = QString().asprintf("%9.2f%11sN: GPS NAV DATA%25sRINEX VERSION / TYPE\n", 422 420 defaultRnxNavVersion2, "", ""); 423 421 *_ephStreamGPS << line; 422 line.clear(); 424 423 425 424 QString hlp = currentDateAndTimeGPS().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true); … … 427 426 << _userName.toLatin1().data() 428 427 << hlp.toLatin1().data() 429 << "PGM / RUN BY / DATE " << endl;428 << "PGM / RUN BY / DATE\n"; 430 429 431 430 QStringListIterator it(comments); … … 434 433 } 435 434 436 line .sprintf("%60sEND OF HEADER\n", "");435 line = QString().asprintf("%60sEND OF HEADER\n", ""); 437 436 *_ephStreamGPS << line; 438 437 … … 440 439 } 441 440 if (! (appendFlagGlonass & QIODevice::Append)) { 442 QString line; 443 line.sprintf("%9.2f%11sG: GLONASS NAV DATA%21sRINEX VERSION / TYPE\n", 441 QString line = QString().asprintf("%9.2f%11sG: GLONASS NAV DATA%21sRINEX VERSION / TYPE\n", 444 442 defaultRnxNavVersion2, "", ""); 445 443 *_ephStreamGlonass << line; 444 line.clear(); 446 445 447 446 QString hlp = currentDateAndTimeGPS().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true); … … 449 448 << _userName.toLatin1().data() 450 449 << hlp.toLatin1().data() 451 << "PGM / RUN BY / DATE " << endl;450 << "PGM / RUN BY / DATE\n"; 452 451 453 452 QStringListIterator it(comments); … … 456 455 } 457 456 458 line .sprintf("%60sEND OF HEADER\n", "");457 line = QString().asprintf("%60sEND OF HEADER\n", ""); 459 458 *_ephStreamGlonass << line; 460 459 -
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r9652 r9675 1036 1036 } 1037 1037 1038 outLine .sprintf("%d %.1f %s %u %10.3f %8.3f %8.3f %8.3f %8.3f %8.3f\n", GPSweek,1038 outLine = QString().asprintf("%d %.1f %s %u %10.3f %8.3f %8.3f %8.3f %8.3f %8.3f\n", GPSweek, 1039 1039 GPSweeks, eph->prn().toString().c_str(), eph->IOD(), dClkA0, dClkA1, dClkA2, 1040 1040 rsw(1), rsw(2), rsw(3)); //fprintf(stderr, "%s\n", outLine.toStdString().c_str());
Note:
See TracChangeset
for help on using the changeset viewer.