- Timestamp:
- Jan 12, 2010, 9:23:08 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpppclient.cpp
r2222 r2224 57 57 connect(((bncApp*)qApp), SIGNAL(newEphGPS(gpsephemeris)), 58 58 this, SLOT(slotNewEphGPS(gpsephemeris))); 59 connect(((bncApp*)qApp), SIGNAL(newEphGlonass(glonassephemeris)), 60 this, SLOT(slotNewEphGlonass(glonassephemeris))); 59 61 connect(((bncApp*)qApp), SIGNAL(newCorrections(QList<QString>)), 60 62 this, SLOT(slotNewCorrections(QList<QString>))); … … 180 182 t_ephGPS* ee = new t_ephGPS(); 181 183 ee->set(&gpseph); 184 _eph[prn] = ee; 185 } 186 } 187 188 // 189 //////////////////////////////////////////////////////////////////////////// 190 void bncPPPclient::slotNewEphGlonass(glonassephemeris gloeph) { 191 QMutexLocker locker(&_mutex); 192 193 QString prn = QString("R%1").arg(gloeph.almanac_number, 2, 10, QChar('0')); 194 195 if (_eph.contains(prn)) { 196 t_ephGlo* ee = static_cast<t_ephGlo*>(_eph.value(prn)); 197 if ( (ee->GPSweek() < gloeph.GPSWeek) || 198 (ee->GPSweek() == gloeph.GPSWeek && 199 ee->GPSweeks() < gloeph.GPSTOW) ) { 200 ee->set(&gloeph); 201 } 202 } 203 else { 204 t_ephGlo* ee = new t_ephGlo(); 205 ee->set(&gloeph); 182 206 _eph[prn] = ee; 183 207 }
Note:
See TracChangeset
for help on using the changeset viewer.