Changeset 974 in ntrip for trunk/BNC/RTCM3


Ignore:
Timestamp:
Jul 26, 2008, 10:10:54 AM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC/RTCM3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM3/RTCM3coDecoder.cpp

    r971 r974  
    6868  _out = 0;
    6969
    70   connect(this, SIGNAL(newCorrLine(QString, QString)),
    71           (bncApp*) qApp, SLOT(slotNewCorrLine(QString, QString)));
     70  connect(this, SIGNAL(newCorrLine(QString, QString, long)),
     71          (bncApp*) qApp, SLOT(slotNewCorrLine(QString, QString, long)));
    7272}
    7373
     
    175175               _co.Sat[ii].Orbit.DeltaAlongTrack,
    176176               _co.Sat[ii].Orbit.DeltaCrossTrack);
    177         printLine(line);
     177        long coTime = GPSweek * 7*24*3600 + long(floor(GPSweeks+0.5));
     178        printLine(line, coTime);
    178179      }
    179180      for(int ii = CLOCKORBIT_NUMGPS;
     
    186187               _co.Sat[ii].Orbit.DeltaAlongTrack,
    187188               _co.Sat[ii].Orbit.DeltaCrossTrack);
    188         printLine(line);
     189        long coTime = GPSweek * 7*24*3600 + long(floor(GPSweeks+0.5));
     190        printLine(line, coTime);
    189191      }
    190192      _buffer = _buffer.substr(bytesused);
     
    202204//
    203205////////////////////////////////////////////////////////////////////////////
    204 void RTCM3coDecoder::printLine(const QString& line) {
     206void RTCM3coDecoder::printLine(const QString& line, long coTime) {
    205207  if (_out) {
    206208    *_out << line.toAscii().data() << endl;
     
    208210  }
    209211
    210   emit newCorrLine(line, _staID);
    211 }
     212  emit newCorrLine(line, _staID, coTime);
     213}
  • trunk/BNC/RTCM3/RTCM3coDecoder.h

    r971 r974  
    4545
    4646 signals:
    47   void newCorrLine(QString line, QString staID);
     47  void newCorrLine(QString line, QString staID, long coTime);
    4848
    4949 private:
    5050  void reopen();
    51   void printLine(const QString& line);
     51  void printLine(const QString& line, long coTime);
    5252
    5353  int                 _port;
Note: See TracChangeset for help on using the changeset viewer.