Changeset 7208 in ntrip
- Timestamp:
- Aug 17, 2015, 2:34:40 PM (9 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccore.cpp
r7179 r7208 208 208 QMutexLocker locker(&_mutex); 209 209 t_irc ircPut = _ephUser.putNewEph(eph, true); 210 if (eph->checkState() == t_eph::bad) {210 if (eph->checkState() == t_eph::bad) { 211 211 messagePrivate("WRONG EPHEMERIS\n" + eph->toString(3.0).toAscii()); 212 return failure; 213 } 214 else if (eph->checkState() == t_eph::outdated) { 215 messagePrivate("OUTDATED EPHEMERIS\n" + eph->toString(3.0).toAscii()); 212 216 return failure; 213 217 } -
trunk/BNC/src/bncephuser.cpp
r7041 r7208 154 154 const t_eph* ephOld = ephLast(prn); 155 155 156 if (ephOld && ephOld->checkState() == t_eph::bad) { 156 if (ephOld && 157 (ephOld->checkState() == t_eph::bad || 158 ephOld->checkState() == t_eph::outdated)) { 157 159 ephOld = 0; 158 160 } 159 161 160 162 if ((ephOld == 0 || newEph->isNewerThan(ephOld)) && 161 eph->checkState() != t_eph::bad) { 163 (eph->checkState() != t_eph::bad || 164 eph->checkState() != t_eph::outdated)) { 162 165 deque<t_eph*>& qq = _eph[prn]; 163 166 qq.push_back(newEph); … … 210 213 if (eph->type() == t_eph::GPS || t_eph::Galileo) { 211 214 if (timeDiff > 4*3600) { // update interval: 2h, data sets are valid for 4 hours 212 eph->setCheckState(t_eph:: bad);215 eph->setCheckState(t_eph::outdated); 213 216 return; 214 217 } … … 216 219 else if (eph->type() == t_eph::GLONASS) { 217 220 if (timeDiff > 1*3600) { // updated every 30 minutes 218 eph->setCheckState(t_eph:: bad);221 eph->setCheckState(t_eph::outdated); 219 222 return; 220 223 } … … 222 225 else if (eph->type() == t_eph::QZSS) { 223 226 if (timeDiff > 1*1800) { 224 eph->setCheckState(t_eph:: bad);227 eph->setCheckState(t_eph::outdated); 225 228 return; 226 229 } … … 228 231 else if (eph->type() == t_eph::SBAS) { 229 232 if (timeDiff > 600) { // maximum update interval: 300 sec 230 eph->setCheckState(t_eph:: bad);233 eph->setCheckState(t_eph::outdated); 231 234 return; 232 235 } … … 234 237 else if (eph->type() == t_eph::BDS) { 235 238 if (timeDiff > 6*3600) { // updates 1 (GEO) up to 6 hours 236 eph->setCheckState(t_eph:: bad);239 eph->setCheckState(t_eph::outdated); 237 240 return; 238 241 } … … 256 259 if ((eph->type() == t_eph::GPS || 257 260 eph->type() == t_eph::Galileo) && dt > 4*3600) { 258 ephL->setCheckState(t_eph:: bad);261 ephL->setCheckState(t_eph::outdated); 259 262 return; 260 263 } 261 264 else if ((eph->type() == t_eph::GLONASS || 262 265 eph->type() == t_eph::QZSS) && dt > 2*3600) { 263 ephL->setCheckState(t_eph:: bad);266 ephL->setCheckState(t_eph::outdated); 264 267 return; 265 268 } 266 269 else if (eph->type() == t_eph::SBAS && dt > 1*3600) { 267 ephL->setCheckState(t_eph:: bad);270 ephL->setCheckState(t_eph::outdated); 268 271 return; 269 272 } 270 273 else if (eph->type() == t_eph::BDS && dt > 6*3600) { 271 ephL->setCheckState(t_eph:: bad);274 ephL->setCheckState(t_eph::outdated); 272 275 return; 273 276 } -
trunk/BNC/src/ephemeris.h
r7169 r7208 18 18 public: 19 19 enum e_type {unknown, GPS, QZSS, GLONASS, Galileo, SBAS, BDS}; 20 enum e_checkState {unchecked, ok, bad };20 enum e_checkState {unchecked, ok, bad, outdated}; 21 21 22 22 t_eph(); -
trunk/BNC/src/rinex/rnxnavfile.cpp
r7169 r7208 200 200 eph = new t_ephBDS(version(), lines); 201 201 } 202 if (eph && eph->checkState() != t_eph::bad) { 202 if (eph && 203 eph->checkState() != t_eph::bad && 204 eph->checkState() != t_eph::outdated) { 203 205 _ephs.push_back(eph); 204 206 }
Note:
See TracChangeset
for help on using the changeset viewer.