Changeset 9266 in ntrip for trunk


Ignore:
Timestamp:
Nov 23, 2020, 9:27:48 PM (4 years ago)
Author:
stuerze
Message:

minor changes to prevent erroneous epehemeris data sets from usage in combination

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/combination/bnccomb.cpp

    r9265 r9266  
    409409      continue;
    410410    }
     411    else if (ephLast->checkState() != t_eph::ok) {
     412      emit newMessage("bncComb: eph not ok for "  + prn.mid(0,3).toLatin1(), true);
     413      delete newCorr;
     414      continue;
     415    }
    411416    else {
    412417      if      (ephLast->IOD() == newCorr->_iod) {
     
    458463    return;
    459464  }
    460  
    461   /* No switch, if the last one is too recent
    462   // ----------------------------------------
    463   const int MINAGE = 100; // seconds, upload is waiting 60 seconds + combi has ~30 seconds latency
    464   if (lastEph->receptDateTime().isValid() &&
    465       lastEph->receptDateTime().secsTo(currentDateAndTimeGPS()) < MINAGE) {
    466     return;
    467   }*/
    468  
     465
    469466  ColumnVector oldXC(6);
    470467  ColumnVector oldVV(3);
    471   corr->_eph->getCrd(corr->_time, oldXC, oldVV, false);
     468  if (corr->_eph->getCrd(corr->_time, oldXC, oldVV, false) != success) {
     469    return;
     470  }
    472471
    473472  ColumnVector newXC(6);
    474473  ColumnVector newVV(3);
    475   lastEph->getCrd(corr->_time, newXC, newVV, false);
     474  if (lastEph->getCrd(corr->_time, newXC, newVV, false) != success) {
     475    return;
     476  }
    476477
    477478  ColumnVector dX = newXC.Rows(1,3) - oldXC.Rows(1,3);
    478479  ColumnVector dV = newVV           - oldVV;
    479480  double       dC = newXC(4)        - oldXC(4);
    480  
    481   /* small check
    482   // -----------
    483   const double MAXDIFF = 1000.0;
    484   double diff  = dX.NormFrobenius();
    485   double diffC = dC * t_CST::c ;
    486   if (diff  > MAXDIFF ||
    487       diffC > MAXDIFF) {
    488     return;
    489   }
    490 */
     481
    491482  ColumnVector dRAO(3);
    492483  XYZ_to_RSW(newXC.Rows(1,3), newVV, dX, dRAO);
Note: See TracChangeset for help on using the changeset viewer.