Changeset 8077 in ntrip for trunk/BNC/src
- Timestamp:
- Jan 17, 2017, 9:49:38 PM (8 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncantex.cpp
r7865 r8077 65 65 it.next(); 66 66 delete it.value(); 67 } 68 if (newAntMap) { 69 delete newAntMap; 70 } 71 if (newFrqMap) { 72 delete newFrqMap; 67 73 } 68 74 } … … 127 133 QTextStream in(&inFile); 128 134 129 t_antMap*newAntMap = 0;130 t_frqMap*newFrqMap = 0;135 newAntMap = 0; 136 newFrqMap = 0; 131 137 132 138 while ( !in.atEnd() ) { -
trunk/BNC/src/bncantex.h
r7625 r8077 81 81 82 82 QMap<QString, t_antMap*> _maps; 83 t_antMap* newAntMap; 84 t_frqMap* newFrqMap; 83 85 }; 84 86 -
trunk/BNC/src/bncephuser.cpp
r8074 r8077 211 211 double timeDiff = fabs(toc - currentTime); 212 212 213 if (eph->type() == t_eph::GPS || t_eph::Galileo) { 214 if (timeDiff > 4*3600) { // update interval: 2h, data sets are valid for 4 hours 215 eph->setCheckState(t_eph::outdated); 216 return; 217 } 218 } 219 else if (eph->type() == t_eph::GLONASS) { 220 if (timeDiff > 1*3600) { // updated every 30 minutes 221 eph->setCheckState(t_eph::outdated); 222 return; 223 } 224 } 225 else if (eph->type() == t_eph::QZSS) { 226 if (timeDiff > 4*3600) { // orbit parameters are valid for 7200 seconds (at minimum) 227 eph->setCheckState(t_eph::outdated); 228 return; 229 } 230 } 231 else if (eph->type() == t_eph::SBAS) { 232 if (timeDiff > 600) { // maximum update interval: 300 sec 233 eph->setCheckState(t_eph::outdated); 234 return; 235 } 236 } 237 else if (eph->type() == t_eph::BDS) { 238 if (timeDiff > 6*3600) { // updates 1 (GEO) up to 6 hours 239 eph->setCheckState(t_eph::outdated); 240 return; 241 } 242 } 213 if (eph->type() == t_eph::GPS && timeDiff > 4*3600) { // update interval: 2h, data sets are valid for 4 hours 214 eph->setCheckState(t_eph::outdated); 215 return; 216 } 217 else if (eph->type() == t_eph::Galileo && timeDiff > 4*3600) { // update interval: 2h, data sets are valid for 4 hours 218 eph->setCheckState(t_eph::outdated); 219 return; 220 } 221 else if (eph->type() == t_eph::GLONASS && timeDiff > 1*3600) { // updated every 30 minutes 222 eph->setCheckState(t_eph::outdated); 223 return; 224 } 225 else if (eph->type() == t_eph::QZSS && timeDiff > 4*3600) { // orbit parameters are valid for 7200 seconds (at minimum) 226 eph->setCheckState(t_eph::outdated); 227 return; 228 } 229 else if (eph->type() == t_eph::SBAS && timeDiff > 600) { // maximum update interval: 300 sec 230 eph->setCheckState(t_eph::outdated); 231 return; 232 } 233 else if (eph->type() == t_eph::BDS && timeDiff > 6*3600) { // updates 1 (GEO) up to 6 hours 234 eph->setCheckState(t_eph::outdated); 235 return; 236 } 237 243 238 244 239
Note:
See TracChangeset
for help on using the changeset viewer.