Changeset 908 in ntrip for trunk/BNC/RTCM3
- Timestamp:
- May 9, 2008, 10:35:09 AM (17 years ago)
- Location:
- trunk/BNC/RTCM3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3coDecoder.cpp
r906 r908 49 49 RTCM3coDecoder::RTCM3coDecoder(const QString& fileName) 50 50 : bncZeroDecoder(fileName) { 51 _mmi = 0;52 51 } 53 52 … … 64 63 65 64 while (true) { 66 67 if (_mmi == 0) { 68 memset(&_co, 0, sizeof(_co)); 69 } 65 66 memset(&_co, 0, sizeof(_co)); 70 67 71 68 int bytesused = 0; 72 69 GCOB_RETURN irc = GetClockOrbitBias(&_co, &_bias, _buffer.data(), 73 70 _buffer.size(), &bytesused); 74 75 // Multiple Message Flag76 // ---------------------77 if (irc == GCOBR_MESSAGEFOLLOWS) {78 _mmi = 1;79 _buffer = _buffer.substr(bytesused);80 return success;81 }82 else {83 _mmi = 0;84 }85 71 86 72 // Not enough Data … … 93 79 // Message correctly decoded 94 80 // ------------------------- 95 else if (irc == GCOBR_OK && bytesused > 0) { 81 else if ( (irc == GCOBR_OK || irc == GCOBR_MESSAGEFOLLOWS) && 82 bytesused > 0) { 96 83 reopen(); 97 84 for(int ii = 0; ii < _co.NumberOfGPSSat; ++ii) { … … 106 93 ii < CLOCKORBIT_NUMGPS + _co.NumberOfGLONASSSat; ++ii) { 107 94 QString line; 108 line.sprintf("%d R%d %d %f %f %f %f\n", _co.G PSEpochTime,95 line.sprintf("%d R%d %d %f %f %f %f\n", _co.GLONASSEpochTime, 109 96 _co.Sat[ii].ID, _co.Sat[ii].IOD, _co.Sat[ii].Clock.DeltaA0, 110 97 _co.Sat[ii].Orbit.DeltaRadial, _co.Sat[ii].Orbit.DeltaAlongTrack, -
trunk/BNC/RTCM3/RTCM3coDecoder.h
r906 r908 41 41 ClockOrbit _co; 42 42 Bias _bias; 43 int _mmi;44 43 } ; 45 44
Note:
See TracChangeset
for help on using the changeset viewer.