Changeset 4245 in ntrip for trunk


Ignore:
Timestamp:
Jun 10, 2012, 12:23:11 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r4225 r4245  
    223223  gpsephemeris** ee = &_gpsEph[gpseph->satellite-1];
    224224
     225  if ( *ee != 0 &&
     226       gpseph->GPSweek == (*ee)->GPSweek && gpseph->TOC == (*ee)->TOC ) {
     227    checkEphemeris(*ee, gpseph);
     228  }
     229
    225230  if ( *ee == 0                         ||
    226231       gpseph->GPSweek > (*ee)->GPSweek ||
     
    802807  return QApplication::event(ev);
    803808}
     809
     810// Check Ephemeris Consistency
     811////////////////////////////////////////////////////////////////////////////
     812void bncApp::checkEphemeris(gpsephemeris* oldEph, gpsephemeris* newEph) {
     813  if (oldEph->clock_bias      != newEph->clock_bias      ||
     814      oldEph->clock_drift     != newEph->clock_drift     ||
     815      oldEph->clock_driftrate != newEph->clock_driftrate) {
     816    QString msg = currentDateAndTimeGPS().toString(Qt::ISODate) +
     817                  QString(" %1 EPH DIFFERS\n").arg(oldEph->satellite);
     818    messagePrivate(msg.toAscii());
     819  }
     820}
  • trunk/BNC/bncapp.h

    r4167 r4245  
    9494    void dumpCorrs(const QList<QString>& allCorrs);
    9595    void messagePrivate(const QByteArray& msg);
     96    void checkEphemeris(gpsephemeris* oldEph, gpsephemeris* newEph);
    9697
    9798    QFile*            _logFile;
Note: See TracChangeset for help on using the changeset viewer.