- Timestamp:
- Oct 14, 2007, 4:59:27 PM (17 years ago)
- Location:
- trunk/BNC/RTCM3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3Decoder.cpp
r504 r505 51 51 #endif 52 52 53 #define LEAPSECONDS 14 /* only needed for approx. time */54 55 53 // Error Handling 56 54 //////////////////////////////////////////////////////////////////////////// 57 55 void RTCM3Error(const char*, ...) { 56 } 58 57 58 // Standard Output 59 //////////////////////////////////////////////////////////////////////////// 60 void RTCM3Text(const char*, ...) { 59 61 } 60 62 … … 62 64 //////////////////////////////////////////////////////////////////////////// 63 65 RTCM3Decoder::RTCM3Decoder() : GPSDecoder() { 64 memset(&_Parser, 0, sizeof(_Parser)); 66 67 const int LEAPSECONDS = 14; /* only needed for approx. time */ 68 65 69 time_t tim; 66 70 tim = time(0) - ((10*365+2+5)*24*60*60 + LEAPSECONDS); 71 72 memset(&_Parser, 0, sizeof(_Parser)); 67 73 _Parser.GPSWeek = tim/(7*24*60*60); 68 74 _Parser.GPSTOW = tim%(7*24*60*60); 75 76 // _Parser2 is used for direct file output 77 // --------------------------------------- 78 memset(&_Parser2, 0, sizeof(_Parser2)); 79 _Parser2.GPSWeek = tim/(7*24*60*60); 80 _Parser2.GPSTOW = tim%(7*24*60*60); 81 82 _Parser2.headerfile = strdup("TEST_HEADERFILE"); 83 _Parser2.glonassephemeris = strdup("TEST_GLONASSEPHEMERIS"); 84 _Parser2.gpsephemeris = strdup("TEST_GPSEPHEMERIS"); 85 _Parser2.rinex3 = 1; 69 86 } 70 87 … … 78 95 void RTCM3Decoder::Decode(char* buffer, int bufLen) { 79 96 for (int ii = 0; ii < bufLen; ii++) { 97 98 // Direct file output 99 // ------------------ 100 HandleByte(&_Parser2, (unsigned int) buffer[ii]); 80 101 81 102 _Parser.Message[_Parser.MessageSize++] = buffer[ii]; -
trunk/BNC/RTCM3/RTCM3Decoder.h
r504 r505 39 39 private: 40 40 struct RTCM3ParserData _Parser; 41 struct RTCM3ParserData _Parser2; 41 42 } ; 42 43 -
trunk/BNC/RTCM3/rtcm3torinex.c
r504 r505 1 1 /* 2 2 Converter for RTCM3 data to RINEX. 3 $Id: rtcm3torinex.c,v 1. 24 2007/10/08 13:29:45 stoeckerExp $3 $Id: rtcm3torinex.c,v 1.1 2007/10/14 13:02:20 mervart Exp $ 4 4 Copyright (C) 2005-2006 by Dirk Stoecker <stoecker@alberding.eu> 5 5 … … 51 51 52 52 /* CVS revision and version */ 53 static char revisionstr[] = "$Revision: 1. 24$";53 static char revisionstr[] = "$Revision: 1.1 $"; 54 54 55 55 #ifndef COMPILEDATE … … 806 806 #endif 807 807 808 #ifndef NO_RTCM3_MAIN 808 809 void RTCM3Text(const char *fmt, ...) 809 810 { … … 813 814 va_end(v); 814 815 } 816 #endif 815 817 816 818 static int HandleRunBy(char *buffer, int buffersize, const char **u, … … 1534 1536 1535 1537 #ifndef NO_RTCM3_MAIN 1536 static char datestr[] = "$Date: 2007/10/ 08 13:29:45$";1538 static char datestr[] = "$Date: 2007/10/14 13:02:20 $"; 1537 1539 1538 1540 /* The string, which is send as agent in HTTP request */
Note:
See TracChangeset
for help on using the changeset viewer.