Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r2767 r2768 467 467 } 468 468 469 // Use old ephemeris if the new one is too recent 470 // ---------------------------------------------- 469 471 t_eph* ep = 0; 470 472 if (pair) { 471 473 ep = pair->eph; 472 //// ep = pair->oldEph; 474 if (pair->oldEph && ep && 475 ep->receptDateTime().secsTo(QDateTime::currentDateTime()) < 60) { 476 ep = pair->oldEph; 477 } 473 478 } 474 479 -
trunk/BNS/bnseph.cpp
r2645 r2768 177 177 178 178 if (eph->read(lines) == success) { 179 eph->setRecepDateTime(QDateTime::currentDateTime()); 179 180 emit(newEph(eph, nBytes)); 180 181 } -
trunk/BNS/bnseph.h
r2618 r2768 17 17 bool isNewerThan(const t_eph* eph) const; 18 18 QString prn() const {return _prn;} 19 void setRecepDateTime(const QDateTime& dateTime) { 20 _receptDateTime = dateTime; 21 } 22 const QDateTime& receptDateTime() const {return _receptDateTime;} 19 23 20 24 virtual void position(int GPSweek, double GPSweeks, ColumnVector& xc, … … 25 29 26 30 protected: 27 QString _prn; 28 int _GPSweek; 29 double _GPSweeks; 31 QString _prn; 32 int _GPSweek; 33 double _GPSweeks; 34 QDateTime _receptDateTime; 30 35 }; 31 36
Note:
See TracChangeset
for help on using the changeset viewer.