Changeset 1218 in ntrip for trunk/BNC/RTCM3
- Timestamp:
- Nov 19, 2008, 2:56:05 PM (16 years ago)
- Location:
- trunk/BNC/RTCM3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3Decoder.cpp
r1185 r1218 121 121 // 122 122 //////////////////////////////////////////////////////////////////////////// 123 t_irc RTCM3Decoder::Decode(char* buffer, int bufLen) { 123 t_irc RTCM3Decoder::Decode(char* buffer, int bufLen, vector<string>& errmsg) { 124 125 errmsg.clear(); 124 126 125 127 bool decoded = false; … … 128 130 // ----------------------------------------- 129 131 if (_mode == unknown || _mode == corrections) { 130 if ( _coDecoder->Decode(buffer, bufLen) == success ) { 132 if ( _coDecoder->Decode(buffer, bufLen, errmsg) == success ) { 131 133 decoded = true; 132 134 … … 354 356 decoded = true; 355 357 gpsephemeris* ep = new gpsephemeris(_Parser.ephemerisGPS); 358 359 #ifdef DEBUG_RTCM2_2021 360 QString msg = QString("%1: got eph %2 IODC %3 GPSweek %4 TOC %5 TOE %6") 361 .arg(_staID) 362 .arg(ep->satellite, 2) 363 .arg(ep->IODC, 4) 364 .arg(ep->GPSweek, 4) 365 .arg(ep->TOC, 6) 366 .arg(ep->TOE, 6); 367 emit(newMessage(msg.toAscii())); 368 #endif 369 356 370 emit newGPSEph(ep); 357 371 } -
trunk/BNC/RTCM3/RTCM3Decoder.h
r1095 r1218 40 40 RTCM3Decoder(const QString& fileName); 41 41 virtual ~RTCM3Decoder(); 42 virtual t_irc Decode(char* buffer = 0, int bufLen= 0);42 virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg); 43 43 signals: 44 44 void newMessage(QByteArray msg); -
trunk/BNC/RTCM3/RTCM3coDecoder.cpp
r1154 r1218 109 109 // 110 110 //////////////////////////////////////////////////////////////////////////// 111 t_irc RTCM3coDecoder::Decode(char* buffer, int bufLen) { 111 t_irc RTCM3coDecoder::Decode(char* buffer, int bufLen, vector<string>& errmsg) { 112 113 errmsg.clear(); 112 114 113 115 _buffer.append(buffer, bufLen); -
trunk/BNC/RTCM3/RTCM3coDecoder.h
r974 r1218 42 42 RTCM3coDecoder(const QString& staID); 43 43 virtual ~RTCM3coDecoder(); 44 virtual t_irc Decode(char* buffer = 0, int bufLen= 0);44 virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg); 45 45 46 46 signals:
Note:
See TracChangeset
for help on using the changeset viewer.