Changeset 3313 in ntrip for trunk


Ignore:
Timestamp:
Jun 21, 2011, 7:06:25 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.cpp

    r3312 r3313  
    959959    // --------------
    960960    if (irc == 0) {
    961       findMaxRes(vv,satDataGPS, prnCode, maxResCode, prnPhase, maxResPhase);
     961      findMaxRes(iPhase, vv,satDataGPS, prnCode, maxResCode, prnPhase, maxResPhase);
    962962      if (maxResCode > MAXRES_CODE_GPS) {
    963963        satDataGPS.remove(prnCode);
     
    971971    // ------------------
    972972    if (irc == 0) {
    973       findMaxRes(vv,satDataGal, prnCode, maxResCode, prnPhase, maxResPhase);
     973      findMaxRes(iPhase, vv,satDataGal, prnCode, maxResCode, prnPhase, maxResPhase);
    974974      if (maxResCode > MAXRES_CODE_GAL) {
    975975        satDataGal.remove(prnCode);
     
    986986    // -------------------
    987987    if (irc == 0) {
    988       findMaxRes(vv,satDataGlo, prnCode, maxResCode, prnPhase, maxResPhase);
     988      findMaxRes(iPhase, vv,satDataGlo, prnCode, maxResCode, prnPhase, maxResPhase);
    989989      if (maxResPhase > MAXRES_PHASE_GLO) {
    990990        satDataGlo.remove(prnPhase);
     
    998998    // -------------------
    999999    if (irc == 0) {
    1000       findMaxRes(vv,satDataGal, prnCode, maxResCode, prnPhase, maxResPhase);
     1000      findMaxRes(iPhase, vv,satDataGal, prnCode, maxResCode, prnPhase, maxResPhase);
    10011001      if      (maxResPhase > MAXRES_PHASE_GAL) {
    10021002        satDataGal.remove(prnPhase);
     
    10101010    // ---------------
    10111011    if (irc == 0) {
    1012       findMaxRes(vv,satDataGPS, prnCode, maxResCode, prnPhase, maxResPhase);
     1012      findMaxRes(iPhase, vv,satDataGPS, prnCode, maxResCode, prnPhase, maxResPhase);
    10131013      if      (maxResPhase > MAXRES_PHASE_GPS) {
    10141014        satDataGPS.remove(prnPhase);
     
    12641264//
    12651265///////////////////////////////////////////////////////////////////////////
    1266 void bncModel::findMaxRes(const ColumnVector& vv,
     1266void bncModel::findMaxRes(int iPhase, const ColumnVector& vv,
    12671267                          const QMap<QString, t_satData*>& satData,
    12681268                          QString& prnCode,  double& maxResCode,
     
    12761276    it.next();
    12771277    t_satData* satData = it.value();
    1278     if (satData->indexCode) {
    1279       if (fabs(vv(satData->indexCode)) > maxResCode) {
    1280         maxResCode = fabs(vv(satData->indexCode));
    1281         prnCode    = satData->prn;
    1282       }
    1283     }
    1284     if (satData->indexPhase) {
    1285       if (fabs(vv(satData->indexPhase)) > maxResPhase) {
    1286         maxResPhase = fabs(vv(satData->indexPhase));
    1287         prnPhase    = satData->prn;
     1278    if (iPhase == 0) {
     1279      if (satData->indexCode) {
     1280        if (fabs(vv(satData->indexCode)) > maxResCode) {
     1281          maxResCode = fabs(vv(satData->indexCode));
     1282          prnCode    = satData->prn;
     1283        }
     1284      }
     1285    }
     1286    else {
     1287      if (satData->indexPhase) {
     1288        if (fabs(vv(satData->indexPhase)) > maxResPhase) {
     1289          maxResPhase = fabs(vv(satData->indexPhase));
     1290          prnPhase    = satData->prn;
     1291        }
    12881292      }
    12891293    }
  • trunk/BNC/bncmodel.h

    r3309 r3313  
    100100  void   printRes(int iPhase, const ColumnVector& vv,
    101101                  std::ostringstream& str, t_satData* satData);
    102   void   findMaxRes(const ColumnVector& vv,
     102  void   findMaxRes(int iPhase, const ColumnVector& vv,
    103103                    const QMap<QString, t_satData*>& satData,
    104104                    QString& prnCode,  double& maxResCode,
Note: See TracChangeset for help on using the changeset viewer.