 Timestamp:
 Apr 19, 2021, 11:07:56 AM (3 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

branches/BNC_2.12/src/bncephuser.cpp
r9382 r9405 218 218 //  219 219 if (realTime) { 220 bncTime toc = eph>TOC(); 221 QDateTime now = currentDateAndTimeGPS(); 222 bncTime currentTime(now.toString(Qt::ISODate).toStdString()); 223 double dt = currentTime  toc; 224 225 // update interval: 2h, data sets are valid for 4 hours 226 if (eph>type() == t_eph::GPS && (dt > 14400.0  dt < 7200.0)) { 227 eph>setCheckState(t_eph::outdated); 228 return; 229 } 230 // update interval: 3h, data sets are valid for 4 hours 231 else if (eph>type() == t_eph::Galileo && (dt > 14400.0  dt < 0.0)) { 232 eph>setCheckState(t_eph::outdated); 233 return; 234 } 235 // updated every 30 minutes + 5 min 236 else if (eph>type() == t_eph::GLONASS && (dt > 3900.0  dt < 2100.0)) { 237 eph>setCheckState(t_eph::outdated); 238 return; 239 } 240 // orbit parameters are valid for 7200 seconds (minimum) 241 else if (eph>type() == t_eph::QZSS && (dt > 7200.0  dt < 3600.0)) { 242 eph>setCheckState(t_eph::outdated); 243 return; 244 } 245 // maximum update interval: 300 sec 246 else if (eph>type() == t_eph::SBAS && (dt > 600.0  dt < 600.0)) { 247 eph>setCheckState(t_eph::outdated); 248 return; 249 } 250 // updates 1h + 5 min 251 else if (eph>type() == t_eph::BDS && (dt > 3900.0  dt < 0.0)) { 252 eph>setCheckState(t_eph::outdated); 253 return; 254 } 255 // update interval: up to 24 hours 256 else if (eph>type() == t_eph::IRNSS && fabs(dt > 86400.0)) { 220 if (outDatedBcep(eph)) { 257 221 eph>setCheckState(t_eph::outdated); 258 222 return;
Note:
See TracChangeset
for help on using the changeset viewer.