- Timestamp:
- Dec 20, 2014, 11:06:47 AM (10 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncephuser.cpp
r6141 r6393 59 59 connect(BNC_CORE, SIGNAL(newEphGalileo(galileoephemeris)), 60 60 this, SLOT(slotNewEphGalileo(galileoephemeris)), Qt::DirectConnection); 61 62 connect(BNC_CORE, SIGNAL(newEphSBAS(sbasephemeris)), 63 this, SLOT(slotNewEphSBAS(sbasephemeris)), Qt::DirectConnection); 61 64 } 62 65 } … … 186 189 } 187 190 191 // 192 //////////////////////////////////////////////////////////////////////////// 193 void bncEphUser::slotNewEphSBAS(sbasephemeris sbaseph) { 194 QMutexLocker locker(&_mutex); 195 196 t_ephSBAS* eNew = new t_ephSBAS(); eNew->set(&sbaseph); 197 QString prn = QString(eNew->prn().toString().c_str()); 198 199 if (_eph.contains(prn)) { 200 if (eNew->isNewerThan(_eph.value(prn)->last)) { 201 delete _eph.value(prn)->prev; 202 _eph.value(prn)->prev = _eph.value(prn)->last; 203 _eph.value(prn)->last = eNew; 204 } 205 else { 206 delete eNew; 207 return; 208 } 209 } 210 else { 211 _eph.insert(prn, new t_ephPair(eNew)); 212 } 213 ephBufferChanged(); 214 } 215 -
trunk/BNC/src/bncephuser.h
r6141 r6393 73 73 void slotNewEphGlonass(glonassephemeris gloeph); 74 74 void slotNewEphGalileo(galileoephemeris galeph); 75 void slotNewEphSBAS(sbasephemeris sbaseph); 75 76 76 77 protected:
Note:
See TracChangeset
for help on using the changeset viewer.