Changeset 8076 in ntrip


Ignore:
Timestamp:
Jan 17, 2017, 9:48:19 PM (10 months ago)
Author:
stuerze
Message:

minor changes

Location:
branches/BNC_2.12/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/bncantex.cpp

    r7865 r8076  
    6565    it.next();
    6666    delete it.value();
     67  }
     68  if (newAntMap) {
     69    delete newAntMap;
     70  }
     71  if (newFrqMap) {
     72    delete newFrqMap;
    6773  }
    6874}
     
    127133  QTextStream in(&inFile);
    128134
    129   t_antMap* newAntMap = 0;
    130   t_frqMap* newFrqMap = 0;
     135  newAntMap = 0;
     136  newFrqMap = 0;
    131137
    132138  while ( !in.atEnd() ) {
  • branches/BNC_2.12/src/bncantex.h

    r7625 r8076  
    8181
    8282  QMap<QString, t_antMap*> _maps;
     83  t_antMap* newAntMap;
     84  t_frqMap* newFrqMap;
    8385};
    8486
  • branches/BNC_2.12/src/bncephuser.cpp

    r8075 r8076  
    211211  double timeDiff = fabs(toc - currentTime);
    212212
    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     }
     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;
    242236  }
    243237
Note: See TracChangeset for help on using the changeset viewer.