- Timestamp:
- Jun 23, 2022, 2:57:52 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncephuser.cpp
r9767 r9773 191 191 } 192 192 193 // Check whether the epoch is too far away the current time 194 // -------------------------------------------------------- 195 if (realTime) { 196 if (outDatedBcep(eph)) { 197 eph->setCheckState(t_eph::outdated); 198 return; 199 } 200 } 201 193 202 // Check health status 194 203 // ------------------- 195 204 if (eph->isUnhealthy()) { 196 205 eph->setCheckState(t_eph::unhealthy); 197 //return;206 return; 198 207 } 199 208 … … 213 222 eph->setCheckState(t_eph::bad); 214 223 return; 215 }216 217 // Check whether the epoch is too far away the current time218 // --------------------------------------------------------219 if (realTime) {220 if (outDatedBcep(eph)) {221 eph->setCheckState(t_eph::outdated);222 return;223 }224 224 } 225 225 … … 306 306 } 307 307 308 /*309 ////////////////////////////////////////////////////////////////////////////310 bool bncEphUser::newCorrectedGpsEphSet(const t_eph* eph) {311 312 if (eph->prn().system() != 'G') {313 return false;314 }315 316 bool correctedGpsEphSet = false;317 if ((fmod(eph->TOC().daysec()+16.0, 7200) == 0.0)) {318 // sometimes corrected BRDC sets are sent with TOC values 16 seconds319 // before the nominal TOC (integer time)320 correctedGpsEphSet = true;321 } else {322 return false;323 }324 325 QString prn = QString(eph->prn().toInternalString().c_str());326 t_eph* ephL = ephLast(prn);327 if (!ephL) {328 // first set is a corrected set for GPS329 if (correctedGpsEphSet) {330 return true;331 }332 else {333 return false;334 }335 }336 else {337 double dt = eph->TOC() - ephL->TOC();338 if (correctedGpsEphSet) {339 // set already available340 if (dt == 0.0) {341 return false;342 }343 else {344 return true;345 }346 }347 }348 349 return false;350 }*/
Note:
See TracChangeset
for help on using the changeset viewer.