- Timestamp:
- Aug 13, 2008, 9:34:52 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3Decoder.cpp
r1030 r1033 65 65 const int LEAPSECONDS = 14; /* only needed for approx. time */ 66 66 67 QSettings settings; 68 _checkMountPoint = settings.value("messTypes").toString(); 67 69 _staID = staID; 68 70 … … 106 108 // ----------------------------------------- 107 109 if (_mode == unknown || _mode == corrections) { 110 printf("corrections\n"); 108 111 if ( _coDecoder->Decode(buffer, bufLen) == success ) { 109 112 decoded = true; 110 113 if (_mode == unknown) { 111 114 _mode = corrections; 112 115 // emit(newMessage( (_staID + " : mode set to corrections").toAscii() )); 113 116 } 114 117 } … … 117 120 // Remaining part decodes the Observations 118 121 // --------------------------------------- 119 if (_mode == unknown || _mode == observations) { 122 if (_mode == unknown || _mode == observations || _checkMountPoint == _staID || _checkMountPoint == "ALL") { 123 printf("observations\n"); 120 124 for (int ii = 0; ii < bufLen; ii++) { 121 125 … … 123 127 if (_Parser.MessageSize >= _Parser.NeedBytes) { 124 128 125 while(int rr = RTCM3Parser(&_Parser)) {126 127 129 // RTCM message types 128 130 // ------------------ … … 132 134 _Parser.typeSize = 0; 133 135 136 while(int rr = RTCM3Parser(&_Parser)) { 137 134 138 // GNSS Observations 135 139 // ----------------- … … 143 147 144 148 if (rr == 2) { 145 std::cerr << "No valid RINEX! All values are modulo 299792.458!\n"; 149 // std::cerr << "No valid RINEX! All values are modulo 299792.458!\n"; 150 emit(newMessage( (_staID + ": No valid RINEX! All values are modulo 299792.458!").toAscii() )); 146 151 } 147 152 … … 242 247 if (_mode == unknown && decoded) { 243 248 _mode = observations; 244 249 // emit(newMessage( (_staID + " : mode set to observations").toAscii() )); 245 250 } 246 251 }
Note:
See TracChangeset
for help on using the changeset viewer.