Changeset 270 in ntrip for trunk/rtcm3torinex/rtcm3torinex.h
- Timestamp:
- Nov 3, 2006, 12:50:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/rtcm3torinex/rtcm3torinex.h
r268 r270 4 4 /* 5 5 Converter for RTCM3 data to RINEX. 6 $Id: rtcm3torinex. c,v 1.5 2006/08/29 15:42:36stoecker Exp $6 $Id: rtcm3torinex.h,v 1.1 2006/11/02 13:34:00 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]; … … 121 133 }; 122 134 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 };131 132 135 void HandleHeader(struct RTCM3ParserData *Parser); 133 136 int RTCM3Parser(struct RTCM3ParserData *handle); 134 137 void HandleByte(struct RTCM3ParserData *Parser, unsigned int byte); 135 void converttime(struct converttimeinfo *c, int week, int tow);136 138 137 139 #endif /* RTCM3TORINEX_H */
Note:
See TracChangeset
for help on using the changeset viewer.