Changeset 7208 in ntrip for trunk/BNC/src/bncephuser.cpp
- Timestamp:
- Aug 17, 2015, 2:34:40 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note:
See TracChangeset
for help on using the changeset viewer.