Changeset 6442 in ntrip for trunk/BNC/src/RTCM/RTCM2Decoder.cpp


Ignore:
Timestamp:
Dec 26, 2014, 12:03:26 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM/RTCM2Decoder.cpp

    r6441 r6442  
    291291      prn = sys + QString("%1").arg(corr->PRN - 200, 2, 10, QChar('0'));
    292292    }
    293 
    294     const t_ephPair* ePair = ephPair(prn);
    295293
    296294    double L1 = 0;
     
    354352
    355353      // Select corresponding ephemerides
    356       if (ePair) {
    357         if      (ePair->last && ePair->last->IOD() == IODcorr) {
    358           eph = ePair->last;
    359         }
    360         else if (ePair->prev && ePair->prev->IOD() == IODcorr) {
    361           eph = ePair->prev;
    362         }
     354      if      (ephLast(prn) && ephLast(prn)->IOD() == IODcorr) {
     355        eph = ephLast(prn);
     356      }
     357      else if (ephPrev(prn) && ephPrev(prn)->IOD() == IODcorr) {
     358        eph = ephPrev(prn);
    363359      }
    364360
Note: See TracChangeset for help on using the changeset viewer.