Changeset 9059 in ntrip
- Timestamp:
- Aug 28, 2020, 10:19:21 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncephuser.cpp
r8902 r9059 221 221 QDateTime now = currentDateAndTimeGPS(); 222 222 bncTime currentTime(now.toString(Qt::ISODate).toStdString()); 223 double dt = currentTime - toc;223 double dt = fabs(currentTime - toc); 224 224 225 225 // update interval: 2h, data sets are valid for 4 hours 226 if ((eph->type() == t_eph::GPS) && 227 (dt < -2*3600 || dt > 4*3600)) { 226 if (eph->type() == t_eph::GPS && dt > 4*3600) { 228 227 eph->setCheckState(t_eph::outdated); 229 228 return; 230 229 } 231 230 // update interval: 3h, data sets are valid for 4 hours 232 else if ((eph->type() == t_eph::Galileo) && 233 (dt < -3*3600 || dt > 4*3600)) { 231 else if (eph->type() == t_eph::Galileo && dt > 4*3600) { 234 232 eph->setCheckState(t_eph::outdated); 235 233 return; 236 234 } 237 235 // updated every 30 minutes 238 else if ((eph->type() == t_eph::GLONASS) && 239 (dt < -1800 || dt > 2*3600)) { 236 else if (eph->type() == t_eph::GLONASS && dt > 2*3600) { 240 237 eph->setCheckState(t_eph::outdated); 241 238 return; 242 239 } 243 240 // orbit parameters are valid for 7200 seconds (minimum) 244 else if ((eph->type() == t_eph::QZSS) && 245 (dt < -1*3600 || dt > 3*3600)) { 241 else if (eph->type() == t_eph::QZSS && dt > 3*3600) { 246 242 eph->setCheckState(t_eph::outdated); 247 243 return; 248 244 } 249 245 // maximum update interval: 300 sec 250 else if ((eph->type() == t_eph::SBAS) && 251 (dt < -300 || dt > 1*3600)) { 246 else if (eph->type() == t_eph::SBAS && dt > 1*3600) { 252 247 eph->setCheckState(t_eph::outdated); 253 248 return; 254 249 } 255 250 // updates 1h (GEO) up to 6 hours non-GEO 256 else if ((eph->type() == t_eph::BDS) && 257 (dt < -1*3600 || dt > 6*3600)) { 251 else if (eph->type() == t_eph::BDS && dt > 6*3600) { 258 252 eph->setCheckState(t_eph::outdated); 259 253 return; 260 254 } 261 255 // update interval: up to 24 hours 262 else if ((eph->type() == t_eph::IRNSS) && 263 (dt < -1*3600 || dt > 24*3600)) { 256 else if (eph->type() == t_eph::IRNSS && dt > 24*3600) { 264 257 eph->setCheckState(t_eph::outdated); 265 258 return; … … 314 307 } 315 308 316 317 309 if (diff < MAXDIFF && diffC < MAXDIFF) { 318 310 if (dt != 0.0) {
Note:
See TracChangeset
for help on using the changeset viewer.