Changeset 10330 in ntrip for trunk/BNC/src/bncutils.cpp
- Timestamp:
- Feb 13, 2024, 11:51:53 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncutils.cpp
r10091 r10330 265 265 // 266 266 //////////////////////////////////////////////////////////////////////////// 267 bool outDatedBcep(const t_eph *eph) { 267 bool outDatedBcep(const t_eph *eph, bncTime tt) { 268 268 bncTime toc = eph->TOC(); 269 QDateTime now = currentDateAndTimeGPS(); 270 bncTime currentTime(now.toString(Qt::ISODate).toStdString()); 271 double dt = currentTime - toc; 269 double dt = tt -toc; 272 270 273 271 // update interval: 2h, data sets are valid for 4 hours … … 280 278 } 281 279 // updated every 30 minutes + 5 min 282 else if (eph->type() == t_eph::GLONASS && (dt > 3900.0 || dt < -2100.0)) {280 else if (eph->type() == t_eph::GLONASS && (dt > 2100.0 || dt < -2100.0)) { 283 281 return true; 284 282 }
Note:
See TracChangeset
for help on using the changeset viewer.