Changeset 3670 in ntrip


Ignore:
Timestamp:
Feb 11, 2012, 6:27:02 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncephuser.cpp

    r3640 r3670  
    148148    eLast->set(&galeph);
    149149    _eph.insert(prn, new t_ephPair(eLast));
     150  }
     151  ephBufferChanged();
     152}
     153
     154//
     155////////////////////////////////////////////////////////////////////////////
     156void bncEphUser::putNewEph(t_eph* newEph) {
     157
     158  QMutexLocker locker(&_mutex);
     159
     160  if (!newEph) {
     161    return;
     162  }
     163
     164  QString prn = newEph->prn();
     165
     166  if (_eph.contains(prn)) {
     167    t_eph* eLast = _eph.value(prn)->last;
     168    if (newEph->isNewerThan(eLast)) {
     169      delete _eph.value(prn)->prev;
     170      _eph.value(prn)->prev = _eph.value(prn)->last;
     171      _eph.value(prn)->last = newEph;
     172    }
     173  }
     174  else {
     175    _eph.insert(prn, new t_ephPair(newEph));
    150176  }
    151177  ephBufferChanged();
  • trunk/BNC/bncephuser.h

    r3640 r3670  
    105105  }
    106106
     107  void putNewEph(t_eph* eph);
     108
    107109 public slots:
    108110  void slotNewEphGPS(gpsephemeris gpseph);
  • trunk/BNC/bncpostprocess.cpp

    r3661 r3670  
    8686    _pppClient  = new bncPPPclient("POST", _opt, false);
    8787
    88     connect(this, SIGNAL(newEphGPS(gpsephemeris)),
    89             _pppClient, SLOT(slotNewEphGPS(gpsephemeris)), Qt::DirectConnection);
    90    
    91     connect(this, SIGNAL(newEphGlonass(glonassephemeris)),
    92             _pppClient, SLOT(slotNewEphGlonass(glonassephemeris)), Qt::DirectConnection);
    93    
    94     connect(this, SIGNAL(newEphGalileo(galileoephemeris)),
    95             _pppClient, SLOT(slotNewEphGalileo(galileoephemeris)), Qt::DirectConnection);
    96 
    9788    connect(this, SIGNAL(newCorrections(QList<QString>)),
    9889            _pppClient, SLOT(slotNewCorrections(QList<QString>)));
     
    10899  t_eph* eph;
    109100  while (_rnxNavFile->getNextEph(eph) == success) {
     101    _pppClient->putNewEph(eph);
    110102  }
    111103
Note: See TracChangeset for help on using the changeset viewer.