Changeset 5749 in ntrip for trunk/BNC/src/PPP/ephpool.cpp


Ignore:
Timestamp:
Aug 3, 2014, 10:55:00 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/ephpool.cpp

    r5743 r5749  
    4949/////////////////////////////////////////////////////////////////////////////
    5050void t_ephPool::putEphemeris(t_eph* eph) {
    51   if (eph && eph->isOK()) {
     51  if (eph && eph->ok()) {
    5252    _satEphPool[eph->prn().toInt()].putEphemeris(_maxQueueSize, eph);
    5353  }
     
    119119  for (unsigned ii = 0; ii < _ephs.size(); ii++) {
    120120    t_eph* eph = _ephs[ii];
    121     if (eph->IOD() == corr->IOD() || corr->absClk()) {
     121    if (eph->IOD() == corr->IOD()) {
    122122      eph->setClkCorr(corr);
    123123    }
     
    133133    t_eph* eph = _ephs[ii];
    134134    t_irc irc = eph->getCrd(tt, xc, vv);
    135     if (irc == t_irc::success) {
    136       if (eph->prn().system() == 'R') {
    137         double age = tt - eph->toc();
     135    if (irc == success) {
     136      if (eph->system() == 'R') {
     137        double age = tt - eph->TOC();
    138138        if (fabs(age) > 3600.0) {
    139139          continue;
     
    143143    }
    144144  }
    145   return t_irc::failure;
     145  return failure;
    146146}
    147147
     
    150150int t_ephPool::t_satEphPool::getChannel() const {
    151151  if (_ephs.size() > 0) {
    152     return _ephs[0]->getChannel();
     152    return _ephs[0]->slotNum();
    153153  }
    154154  return 0;
Note: See TracChangeset for help on using the changeset viewer.