Changeset 575 in ntrip


Ignore:
Timestamp:
Nov 16, 2007, 9:04:26 AM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r566 r575  
    239239    QDateTime datTim = QDateTime::currentDateTime().toUTC();
    240240
    241     QString hlp = (_rinexVers == 3) ? "MIX_" : "GPS_";
    242     QString ephFileNameGPS = _ephPath + hlp +
     241    QString ephFileNameGPS = _ephPath + "BNC_" +
    243242               QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0'));
    244243
     
    268267      }
    269268    }
    270     ephFileNameGPS += hlpStr + datTim.toString(".yyN");
     269    if (_rinexVers == 3) {
     270      ephFileNameGPS += hlpStr + datTim.toString(".yyP");
     271    }
     272    else {
     273      ephFileNameGPS += hlpStr + datTim.toString(".yyN");
     274    }
    271275
    272276    if (_ephFileNameGPS == ephFileNameGPS) {
     
    275279    else {
    276280      _ephFileNameGPS = ephFileNameGPS;
     281    }
     282
     283    for (int ii = PRN_GPS_START; ii <= PRN_GPS_END; ii++) {
     284      delete _gpsEph[ii-PRN_GPS_START];
     285      _gpsEph[ii-PRN_GPS_START] = 0;
     286    }
     287    for (int ii = PRN_GLONASS_START; ii <= PRN_GLONASS_END; ii++) {
     288      delete _glonassEph[ii-PRN_GLONASS_START];
     289      _glonassEph[ii-PRN_GLONASS_START] = 0;
    277290    }
    278291
     
    298311    }
    299312    else if (_rinexVers == 2) {
    300       QString ephFileNameGlonass = _ephPath + "GLO_" +
     313      QString ephFileNameGlonass = _ephPath + "BNC_" +
    301314          QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) +
    302           hlpStr + datTim.toString(".yyN");
     315          hlpStr + datTim.toString(".yyG");
    303316
    304317      delete _ephStreamGlonass;
Note: See TracChangeset for help on using the changeset viewer.