Changeset 1567 in ntrip


Ignore:
Timestamp:
Feb 4, 2009, 9:32:15 AM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM/GPSDecoder.h

    r1566 r1567  
    136136  }
    137137
     138  virtual int corrGPSEpochTime() const {return -1;}
     139
    138140  struct t_antInfo {
    139141    enum t_type { ARP, APC };
  • trunk/BNC/RTCM3/RTCM3Decoder.h

    r1566 r1567  
    4141  virtual ~RTCM3Decoder();
    4242  virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg);
    43   int corrGPSEpochTime() const {
    44     return (_coDecoder ? _coDecoder->GPSEpochTime() : -1);
     43  virtual int corrGPSEpochTime() const {
     44    return (_mode == corrections ? _coDecoder->corrGPSEpochTime() : -1);
    4545  }
     46
    4647 signals:
    4748  void newMessage(QByteArray msg,bool showOnScreen);
    4849  void newGPSEph(gpsephemeris* gpseph);
    4950  void newGlonassEph(glonassephemeris* glonasseph);
     51
    5052 private:
    5153  enum t_mode{unknown = 0, observations, corrections};
  • trunk/BNC/RTCM3/RTCM3coDecoder.h

    r1566 r1567  
    4343  virtual ~RTCM3coDecoder();
    4444  virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg);
    45   int GPSEpochTime() const {return _co.GPSEpochTime;}
     45  virtual int corrGPSEpochTime() const {return _co.GPSEpochTime;}
    4646
    4747 signals:
  • trunk/BNC/bncgetthread.cpp

    r1566 r1567  
    377377      _latencyChecker->checkOutage(irc == success);
    378378      _latencyChecker->checkObsLatency(_decoder->_obsList);
    379       RTCM3Decoder* rtcm3decoder =  dynamic_cast<RTCM3Decoder*>(_decoder);
    380       if (rtcm3decoder) {
    381         _latencyChecker->checkCorrLatency(rtcm3decoder->corrGPSEpochTime());
    382       }
     379      _latencyChecker->checkCorrLatency(_decoder->corrGPSEpochTime());
     380
    383381      scanRTCM();           
    384382
Note: See TracChangeset for help on using the changeset viewer.