Changeset 2793 in ntrip


Ignore:
Timestamp:
Dec 14, 2010, 3:33:33 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.cpp

    r2792 r2793  
    962962                               QMap<QString, t_satData*>& satDataGal) {
    963963
    964 
    965964  QString prnCode;
    966965  QString prnPhase;
     
    971970  double  maxRes;
    972971
    973   // First check Glonass
    974   // -------------------
    975   findMaxRes(vv,satDataGlo, prnCode, maxResCode, prnPhase, maxResPhase);
    976   if (maxResPhase > MAXRES_PHASE_GLO) {
    977     satDataGlo.remove(prnPhase);
    978     prnRemoved = prnPhase;
    979     maxRes     = maxResPhase;
    980   }
    981 
    982   // then check Galileo
    983   // ------------------
    984   else {
     972  int irc = 0;
     973
     974  // Check Glonass
     975  // -------------
     976  if (irc == 0) {
     977    findMaxRes(vv,satDataGlo, prnCode, maxResCode, prnPhase, maxResPhase);
     978    if (maxResPhase > MAXRES_PHASE_GLO) {
     979      satDataGlo.remove(prnPhase);
     980      prnRemoved = prnPhase;
     981      maxRes     = maxResPhase;
     982      irc        = 1;
     983    }
     984  }
     985
     986  // Check Galileo
     987  // -------------
     988  if (irc == 0) {
    985989    findMaxRes(vv,satDataGal, prnCode, maxResCode, prnPhase, maxResPhase);
    986990    if      (maxResPhase > MAXRES_PHASE_GAL) {
     
    988992      prnRemoved = prnPhase;
    989993      maxRes     = maxResPhase;
     994      irc        = 1;
    990995    }
    991996    else if (maxResCode > MAXRES_CODE_GAL) {
     
    993998      prnRemoved = prnCode;
    994999      maxRes     = maxResCode;
    995     }
    996 
    997     // and then check GPS
    998     // ------------------
    999     else {
    1000       findMaxRes(vv,satDataGPS, prnCode, maxResCode, prnPhase, maxResPhase);
    1001       if      (maxResPhase > MAXRES_PHASE_GPS) {
    1002         satDataGPS.remove(prnPhase);
    1003         prnRemoved = prnPhase;
    1004         maxRes     = maxResPhase;
    1005       }
    1006       else if (maxResCode > MAXRES_CODE_GPS) {
    1007         satDataGPS.remove(prnCode);
    1008         prnRemoved = prnCode;
    1009         maxRes     = maxResCode;
    1010       }
     1000      irc        = 1;
     1001    }
     1002  }
     1003
     1004  // Check GPS
     1005  // ---------
     1006  if (irc == 0) {
     1007    findMaxRes(vv,satDataGPS, prnCode, maxResCode, prnPhase, maxResPhase);
     1008    if      (maxResPhase > MAXRES_PHASE_GPS) {
     1009      satDataGPS.remove(prnPhase);
     1010      prnRemoved = prnPhase;
     1011      maxRes     = maxResPhase;
     1012      irc        = 1;
     1013    }
     1014    else if (maxResCode > MAXRES_CODE_GPS) {
     1015      satDataGPS.remove(prnCode);
     1016      prnRemoved = prnCode;
     1017      maxRes     = maxResCode;
     1018      irc        = 1;
    10111019    }
    10121020  }
    10131021 
    1014   if (!prnRemoved.isEmpty()) {
     1022  if (irc != 0) {
    10151023    _log += "Outlier " + prnRemoved.toAscii() + " "
    10161024          + QByteArray::number(maxRes, 'f', 3) + "\n";
    10171025    _QQ = QQsav;
    1018     return 1;
    1019   }
    1020   else {
    1021     return 0;
    1022   }
     1026  }
     1027
     1028  return irc;
    10231029}
    10241030
Note: See TracChangeset for help on using the changeset viewer.