Changeset 2551 in ntrip


Ignore:
Timestamp:
Aug 8, 2010, 6:59:40 PM (14 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/RTCM3
Files:
2 edited

Legend:

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

    r2545 r2551  
    109109  bool decoded = false;
    110110
     111  // If read from file, we set the mode according to staID
     112  // -----------------------------------------------------
     113  if (!_staID_corrections.isEmpty() && _rawFile) {
     114    if (_rawFile->staID() == _staID_corrections) {
     115      _mode = corrections;
     116    }
     117    else {
     118      _mode = observations;
     119    }
     120  }
     121
    111122  // Try to decode Clock and Orbit Corrections
    112123  // -----------------------------------------
     
    114125    if ( _coDecoder->Decode(buffer, bufLen, errmsg) == success ) {
    115126      decoded = true;
    116       if (!_rawFile && _mode == unknown) {
    117         _mode = corrections;
     127      if (_mode == unknown) {
     128        if (_rawFile) {
     129          _staID_corrections = _rawFile->staID();
     130        }
     131        else {
     132          _mode = corrections;
     133        }
    118134      }
    119135    }
  • trunk/BNC/RTCM3/RTCM3Decoder.h

    r2527 r2551  
    6969  double                 _antXYZ[3];
    7070  bncRawFile*            _rawFile;
     71  QString                _staID_corrections;
    7172};
    7273
Note: See TracChangeset for help on using the changeset viewer.