Changeset 320 in ntrip for trunk/BNC/RTCM3/rtcm3torinex.h
- Timestamp:
- Nov 15, 2006, 7:32:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/rtcm3torinex.h
r282 r320 4 4 /* 5 5 Converter for RTCM3 data to RINEX. 6 $Id: rtcm3torinex.h,v 1. 1 2006/11/02 13:34:00stoecker Exp $6 $Id: rtcm3torinex.h,v 1.3 2006/11/15 12:31:31 stoecker Exp $ 7 7 Copyright (C) 2005-2006 by Dirk Stoecker <stoecker@euronik.eu> 8 8 … … 27 27 #define PRN_GLONASS_START 38 28 28 #define PRN_GLONASS_END 61 29 #define PRN_WAAS_START 120 30 #define PRN_WAAS_END 138 29 31 30 32 #define GNSSENTRY_C1DATA 0 … … 77 79 #define RINEXENTRY_NUMBER 10 78 80 79 #define LIGHTSPEED 2.99792458e8 /* m/sec 81 #define LIGHTSPEED 2.99792458e8 /* m/sec */ 80 82 #define GPS_FREQU_L1 1575420000.0 /* Hz */ 81 83 #define GPS_FREQU_L2 1227600000.0 /* Hz */ 82 84 #define GPS_WAVELENGTH_L1 (LIGHTSPEED / GPS_FREQU_L1) /* m */ 83 85 #define GPS_WAVELENGTH_L2 (LIGHTSPEED / GPS_FREQU_L2) /* m */ 86 87 #define GLO_FREQU_L1_BASE 1602000000.0 /* Hz */ 88 #define GLO_FREQU_L2_BASE 1246000000.0 /* Hz */ 89 #define GLO_FREQU_L1_STEP 562500.0 /* Hz */ 90 #define GLO_FREQU_L2_STEP 437500.0 /* Hz */ 91 #define GLO_FREQU_L1(a) (GLO_FREQU_L1_BASE+(a)*GLO_FREQU_L1_STEP) 92 #define GLO_FREQU_L2(a) (GLO_FREQU_L2_BASE+(a)*GLO_FREQU_L2_STEP) 93 #define GLO_WAVELENGTH_L1(a) (LIGHTSPEED / GLO_FREQU_L1(a)) /* m */ 94 #define GLO_WAVELENGTH_L2(a) (LIGHTSPEED / GLO_FREQU_L2(a)) /* m */ 84 95 85 96 /* unimportant, only for approx. time needed */ … … 110 121 int GPSTOW; /* in seconds */ 111 122 struct gnssdata Data; 123 struct gnssdata DataNew; 112 124 int size; 113 125 int lastlockl1[64]; … … 118 130 int validwarning; 119 131 int init; 132 int startflags; 120 133 const char * headerfile; 121 134 }; 122 135 123 struct converttimeinfo { 124 int second; /* seconds of GPS time [0..59] */ 125 int minute; /* minutes of GPS time [0..59] */ 126 int hour; /* hour of GPS time [0..24] */ 127 int day; /* day of GPS time [1..28..30(31)*/ 128 int month; /* month of GPS time [1..12]*/ 129 int year; /* year of GPS time [1980..] */ 130 }; 136 #ifndef PRINTFARG 137 #ifdef __GNUC__ 138 #define PRINTFARG(a,b) __attribute__ ((format(printf, a, b))) 139 #else /* __GNUC__ */ 140 #define PRINTFARG(a,b) 141 #endif /* __GNUC__ */ 142 #endif /* PRINTFARG */ 131 143 132 144 void HandleHeader(struct RTCM3ParserData *Parser); 133 145 int RTCM3Parser(struct RTCM3ParserData *handle); 134 146 void HandleByte(struct RTCM3ParserData *Parser, unsigned int byte); 135 void converttime(struct converttimeinfo *c, int week, int tow); 147 void PRINTFARG(1,2) RTCM3Error(const char *fmt, ...); 148 void PRINTFARG(1,2) RTCM3Text(const char *fmt, ...); 136 149 137 150 #endif /* RTCM3TORINEX_H */
Note:
See TracChangeset
for help on using the changeset viewer.