Changeset 9278 in ntrip


Ignore:
Timestamp:
Nov 25, 2020, 2:16:30 PM (3 years ago)
Author:
stuerze
Message:

minor format changes and bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/latencychecker.cpp

    r9251 r9278  
    322322  if (_miscIntr > 0 ) {
    323323    t_latency& l = _lObs;
    324     l._type =  "Observations      ";
     324    l._type =  "Observations";
    325325    QListIterator<t_satObs> it(obsList);
    326326    while (it.hasNext()) {
     
    336336                  .arg(_staID.data())
    337337                  .arg(l._type.data())
    338                   .arg(int(l._sumLat/l._numLat*100)/100.)
    339                   .arg(int(l._minLat*100)/100.)
    340                   .arg(int(l._maxLat*100)/100.)
    341                   .arg(int((sqrt((l._sumLatQ - l._sumLat * l._sumLat / l._numLat)/l._numLat))*100)/100.)
     338                  .arg(int(l._sumLat/l._numLat*100)/100., 4, 'f', 2)
     339                  .arg(int(l._minLat*100)/100., 4, 'f', 2)
     340                  .arg(int(l._maxLat*100)/100., 4, 'f', 2)
     341                  .arg(int((sqrt(l._sumLatQ / l._numLat))*100)/100., 4, 'f', 2)
    342342                  .arg(l._numLat)
    343343                  .arg(l._numGaps)
     
    349349                  .arg(_staID.data())
    350350                  .arg(l._type.data())
    351                   .arg(int(l._sumLat/l._numLat*100)/100.)
    352                   .arg(int(l._minLat*100)/100.)
    353                   .arg(int(l._maxLat*100)/100.)
    354                   .arg(int((sqrt((l._sumLatQ - l._sumLat * l._sumLat / l._numLat)/l._numLat))*100)/100.)
     351                  .arg(int(l._sumLat/l._numLat*100)/100., 4, 'f', 2)
     352                  .arg(int(l._minLat*100)/100., 4, 'f', 2)
     353                  .arg(int(l._maxLat*100)/100., 4, 'f', 2)
     354                  .arg(int((sqrt(l._sumLatQ / l._numLat))*100)/100., 4, 'f', 2)
    355355                  .arg(l._numLat)
    356356                  .toAscii(), true) );
     
    413413    case 1057: case 1063: case 1240: case 1246: case 1252: case 1258:
    414414      l = _lOrb;
    415       l._type =  "RtcmSsrOrbit     ";
     415      l._type =  "RtcmSsrOrbit";
    416416      break;
    417417    case 1058: case 1064: case 1241: case 1247: case 1253: case 1259:
    418418      l = _lClk;
    419       l._type = "RtcmSsrClock      ";
     419      l._type = "RtcmSsrClock";
    420420      break;
    421421    case 1060: case 1066: case 1243: case 1249: case 1255: case 1261:
     
    425425    case 1059: case 1065: case 1242: case 1248: case 1254: case 1260:
    426426      l = _lCb;
    427       l._type = "RtcmSsrCodeBiases ";
     427      l._type = "RtcmSsrCodeBiases";
    428428      break;
    429429    case 1265: case 1266: case 1267:  case 1268: case 1269: case 1270:
     
    433433    case 1264:
    434434      l = _lVtec;
    435       l._type = "RtcmSsrVTEC       ";
     435      l._type = "RtcmSsrVTEC";
    436436      break;
    437437    case 1061: case 1067: case 1244: case 1250: case 1256: case 1262:
    438438      l = _lUra;
    439       l._type = "RtcmSsrURA        ";
     439      l._type = "RtcmSsrURA";
    440440      break;
    441441    case 1062: case 1068: case 1245: case 1251: case 1257: case 1263:
    442442      l = _lHr;
    443       l._type = "RtcmSsrHrClock    ";
     443      l._type = "RtcmSsrHrClock";
    444444      break;
    445445    case 4076:
    446446      l = _lSsrIgs;
    447       l._type = "RtcmSsrIgs4076    ";
     447      l._type = "RtcmSsrIgs4076";
    448448      break;
    449449    default:
     
    460460            late = QString(" %1: Mean latency %2 sec, min %3, max %4, rms %5, %6 epochs, %7 gaps")
    461461            .arg(l._type.data())
    462             .arg(int(l._sumLat/l._numLat*100)/100.)
    463             .arg(int(l._minLat*100)/100.)
    464             .arg(int(l._maxLat*100)/100.)
    465             .arg(int((sqrt((l._sumLatQ - l._sumLat * l._sumLat / l._numLat)/l._numLat))*100)/100.)
     462            .arg(int(l._sumLat/l._numLat*100)/100., 4, 'f', 2)
     463            .arg(int(l._minLat*100)/100., 4, 'f', 2)
     464            .arg(int(l._maxLat*100)/100., 4, 'f', 2)
     465            .arg(int((sqrt(l._sumLatQ / l._numLat))*100)/100., 4, 'f', 2)
    466466            .arg(l._numLat)
    467467            .arg(l._numGaps);
     
    473473            late = QString(" %1: Mean latency %2 sec, min %3, max %4, rms %5, %6 epochs")
    474474            .arg(l._type.data())
    475             .arg(int(l._sumLat/l._numLat*100)/100.)
    476             .arg(int(l._minLat*100)/100.)
    477             .arg(int(l._maxLat*100)/100.)
    478             .arg(int((sqrt((l._sumLatQ - l._sumLat * l._sumLat / l._numLat)/l._numLat))*100)/100.)
     475            .arg(int(l._sumLat/l._numLat*100)/100., 4, 'f', 2)
     476            .arg(int(l._minLat*100)/100., 4, 'f', 2)
     477            .arg(int(l._maxLat*100)/100., 4, 'f', 2)
     478            .arg(int((sqrt(l._sumLatQ / l._numLat))*100)/100., 4, 'f', 2)
    479479            .arg(l._numLat);
    480480            if ( _checkMountPoint == _staID || _checkMountPoint == "ALL" ) {
Note: See TracChangeset for help on using the changeset viewer.