Changeset 875 in ntrip for trunk/BNC/RTCM3
- Timestamp:
- May 6, 2008, 10:49:30 AM (17 years ago)
- Location:
- trunk/BNC/RTCM3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3coDecoder.cpp
r871 r875 47 47 // Constructor 48 48 //////////////////////////////////////////////////////////////////////////// 49 RTCM3coDecoder::RTCM3coDecoder() : GPSDecoder() { 49 RTCM3coDecoder::RTCM3coDecoder(const QString& fileName) 50 : bncZeroDecoder(fileName) { 50 51 } 51 52 … … 59 60 t_irc RTCM3coDecoder::Decode(char* buffer, int bufLen) { 60 61 62 reopen(); 63 61 64 _buffer.append(buffer, bufLen); 62 printf("BUFFER: %d %d\n", bufLen, _buffer.size());63 65 64 66 while (true) { … … 74 76 else if (irc == 0) { 75 77 for(int ii = 0; ii < _co.NumberOfGPSSat; ++ii) { 76 printf("%d G%d %d %f %f %f %f\n", _co.GPSEpochTime, 78 QString line; 79 line.sprintf("%d G%d %d %f %f %f %f\n", _co.GPSEpochTime, 77 80 _co.Sat[ii].ID, _co.Sat[ii].IOD, _co.Sat[ii].Clock.DeltaA0, 78 81 _co.Sat[ii].Orbit.DeltaRadial, _co.Sat[ii].Orbit.DeltaAlongTrack, 79 82 _co.Sat[ii].Orbit.DeltaCrossTrack); 83 _out->write(line.toAscii().data(), line.length()); 84 _out->flush(); 80 85 } 81 86 char obuffer[CLOCKORBIT_BUFFERSIZE]; 82 87 int len = MakeClockOrbit(&_co, COTYPE_AUTO, 0, obuffer, sizeof(obuffer)); 83 printf("LEN: %d\n", len);84 88 if (len > 0) { 85 89 _buffer = _buffer.substr(len); -
trunk/BNC/RTCM3/RTCM3coDecoder.h
r869 r875 26 26 #define RTCM3CODECODER_H 27 27 28 #include " ../RTCM/GPSDecoder.h"28 #include "bnczerodecoder.h" 29 29 30 30 extern "C" { … … 32 32 } 33 33 34 class RTCM3coDecoder : public GPSDecoder {34 class RTCM3coDecoder : public bncZeroDecoder { 35 35 public: 36 RTCM3coDecoder( );36 RTCM3coDecoder(const QString& fileName); 37 37 virtual ~RTCM3coDecoder(); 38 38 virtual t_irc Decode(char* buffer = 0, int bufLen = 0);
Note:
See TracChangeset
for help on using the changeset viewer.