Changeset 9245 in ntrip for trunk/BNC/src
- Timestamp:
- Nov 12, 2020, 10:09:03 AM (4 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncephuser.cpp
r9244 r9245 243 243 } 244 244 // maximum update interval: 300 sec 245 else if (eph->type() == t_eph::SBAS && (dt > 600 || dt < -300)) {245 else if (eph->type() == t_eph::SBAS && (dt > 600 || dt < -300.0)) { 246 246 eph->setCheckState(t_eph::outdated); 247 247 return; … … 253 253 } 254 254 // update interval: up to 24 hours 255 else if (eph->type() == t_eph::IRNSS && fabs(dt > 24*3600 )) {255 else if (eph->type() == t_eph::IRNSS && fabs(dt > 24*3600.0)) { 256 256 eph->setCheckState(t_eph::outdated); 257 257 return; … … 279 279 // some lines to allow update of ephemeris data sets after an outage 280 280 // update interval: 2h, 281 if (eph->type() == t_eph::GPS && dt > 2*3600 ) {281 if (eph->type() == t_eph::GPS && dt > 2*3600.0) { 282 282 ephL->setCheckState(t_eph::outdated); 283 283 return; 284 284 } 285 285 // update interval: 3h, 286 else if (eph->type() == t_eph::Galileo && dt > 3*3600 ) {286 else if (eph->type() == t_eph::Galileo && dt > 3*3600.0) { 287 287 ephL->setCheckState(t_eph::outdated); 288 288 return; 289 289 } 290 290 // updated every 30 minutes 291 else if (eph->type() == t_eph::GLONASS && dt > 1800 ) {291 else if (eph->type() == t_eph::GLONASS && dt > 1800.0) { 292 292 ephL->setCheckState(t_eph::outdated); 293 293 return; 294 294 } 295 295 // updated every ? 296 else if (eph->type() == t_eph::QZSS && dt > 2*3600 ) {296 else if (eph->type() == t_eph::QZSS && dt > 2*3600.0) { 297 297 ephL->setCheckState(t_eph::outdated); 298 298 return; 299 299 } 300 300 // maximum update interval: 300 sec 301 else if (eph->type() == t_eph::SBAS && dt > 300 ) {301 else if (eph->type() == t_eph::SBAS && dt > 300.0) { 302 302 ephL->setCheckState(t_eph::outdated); 303 303 return; 304 304 } 305 305 // updates 1h (GEO) up to 6 hours non-GEO 306 else if (eph->type() == t_eph::BDS && dt > 6*3600 ) {306 else if (eph->type() == t_eph::BDS && dt > 6*3600.0) { 307 307 ephL->setCheckState(t_eph::outdated); 308 308 return; 309 309 } 310 310 // update interval: up to 24 hours 311 else if (eph->type() == t_eph::IRNSS && dt > 24*3600 ) {311 else if (eph->type() == t_eph::IRNSS && dt > 24*3600.0) { 312 312 ephL->setCheckState(t_eph::outdated); 313 313 return; -
trunk/BNC/src/bncutils.cpp
r9088 r9245 262 262 return false; 263 263 } 264 265 // 266 //////////////////////////////////////////////////////////////////////////// 267 bool outDatedBcep(const t_eph *eph) { 268 bncTime toc = eph->TOC(); 269 QDateTime now = currentDateAndTimeGPS(); 270 bncTime currentTime(now.toString(Qt::ISODate).toStdString()); 271 double dt = currentTime - toc; 272 273 // update interval: 2h, data sets are valid for 4 hours 274 if (eph->type() == t_eph::GPS && dt > 4*3600.0) { 275 return true; 276 } 277 // update interval: 3h, data sets are valid for 4 hours 278 else if (eph->type() == t_eph::Galileo && dt > 4*3600.0) { 279 return true; 280 } 281 // updated every 30 minutes 282 else if (eph->type() == t_eph::GLONASS && dt > 1*3600.0) { 283 return true; 284 } 285 // orbit parameters are valid for 7200 seconds (minimum) 286 else if (eph->type() == t_eph::QZSS && dt > 2*3600.0) { 287 return true; 288 } 289 // maximum update interval: 300 sec 290 else if (eph->type() == t_eph::SBAS && dt > 600.0) { 291 return true; 292 } 293 // updates 1h (GEO) up to 6 hours non-GEO 294 else if (eph->type() == t_eph::BDS && dt > 6*3600.0) { 295 return true; 296 } 297 // update interval: up to 24 hours 298 else if (eph->type() == t_eph::IRNSS && dt > 24*3600.0) { 299 return true; 300 } 301 return false; 302 } 303 264 304 // 265 305 //////////////////////////////////////////////////////////////////////////// -
trunk/BNC/src/bncutils.h
r8903 r9245 75 75 76 76 bool checkForWrongObsEpoch(bncTime obsEpoch); 77 78 bool outDatedBcep(const t_eph *eph); 77 79 78 80 QByteArray ggaString(const QByteArray& latitude, const QByteArray& longitude, -
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r9203 r9245 22 22 #include "bncsp3.h" 23 23 #include "gnss.h" 24 #include "bncutils.h" 25 24 26 25 27 using namespace std; … … 469 471 } 470 472 471 if (eph && 472 eph->checkState() != t_eph::bad &&473 if (eph && !outDatedBcep(eph) && // detected from storage because of no update 474 eph->checkState() != t_eph::bad && 473 475 eph->checkState() != t_eph::unhealthy && 474 eph->checkState() != t_eph::outdated) { 476 eph->checkState() != t_eph::outdated) { // detected during reception (bncephuser) 475 477 QMap<QString, double> codeBiases; 476 478 QList<phaseBiasSignal> phaseBiasList;
Note:
See TracChangeset
for help on using the changeset viewer.