Changeset 8650 in ntrip


Ignore:
Timestamp:
Apr 1, 2019, 11:39:22 AM (3 months ago)
Author:
stuerze
Message:

try to prevent crasches in case of GLONASS satellite coordinate determination

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

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/RTCM3/RTCM3Decoder.cpp

    r8616 r8650  
    11251125    _gloFrq = QString("%1 %2").arg(eph._prn.toString().c_str()).arg(eph._frequency_number, 2, 'f', 0);
    11261126
    1127     emit newGlonassEph(eph);
    1128     decoded = true;
     1127    if (eph._xv.size() == 6) {
     1128      emit newGlonassEph(eph);
     1129      decoded = true;
     1130    }
    11291131  }
    11301132  return decoded;
  • branches/BNC_2.12/src/ephemeris.cpp

    r8615 r8650  
    613613  double dtPos = bncTime(GPSweek, GPSweeks) - _tt;
    614614
    615   if (fabs(dtPos) > 24*3600.0) {
     615  if (fabs(dtPos) > 24*3600.0 || _xv.size() != 6) {
    616616    return failure;
    617617  }
    618 
    619618
    620619  int nSteps  = int(fabs(dtPos) / nominalStep) + 1;
Note: See TracChangeset for help on using the changeset viewer.