Changeset 2354 in ntrip
- Timestamp:
- Mar 5, 2010, 12:54:05 PM (15 years ago)
- Location:
- trunk/BNS/RTCM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/RTCM/rtcm3torinex.c
r2261 r2354 1 1 /* 2 2 Converter for RTCM3 data to RINEX. 3 $Id: rtcm3torinex.c,v 1. 4 2010/01/16 10:22:15 mervartExp $3 $Id: rtcm3torinex.c,v 1.39 2010/03/05 11:11:06 stoecker Exp $ 4 4 Copyright (C) 2005-2008 by Dirk Stöcker <stoecker@alberding.eu> 5 5 … … 49 49 50 50 #ifndef isinf 51 # 51 #define isinf(x) 0 52 52 #endif 53 53 … … 55 55 56 56 /* CVS revision and version */ 57 static char revisionstr[] = "$Revision: 1. 4$";57 static char revisionstr[] = "$Revision: 1.39 $"; 58 58 59 59 #ifndef COMPILEDATE … … 251 251 } 252 252 253 / / Convert Moscow time into UTC (fixnumleap == 1) or GPS (fixnumleap == 0)253 /* Convert Moscow time into UTC (fixnumleap == 1) or GPS (fixnumleap == 0) */ 254 254 void updatetime(int *week, int *secOfWeek, int mSecOfWeek, int fixnumleap) 255 255 { … … 490 490 SKIPBITS(4) /* smind, smint */ 491 491 492 while(numsats-- )492 while(numsats-- && gnss->numsats < GNSS_MAXSATS) 493 493 { 494 494 int sv, code, l1range, c,l,s,ce,le,se,amb=0; … … 640 640 GETBITS(i,27) /* tk */ 641 641 642 updatetime(&handle->GPSWeek, &handle->GPSTOW, i, 0); / / Moscow -> GPS642 updatetime(&handle->GPSWeek, &handle->GPSTOW, i, 0); /* Moscow -> GPS */ 643 643 i = handle->GPSTOW*1000; 644 644 if(gnss->week && (gnss->timeofweek != i || gnss->week … … 658 658 SKIPBITS(4) /* smind, smint */ 659 659 660 while(numsats-- )660 while(numsats-- && gnss->numsats < GNSS_MAXSATS) 661 661 { 662 662 int sv, code, l1range, c,l,s,ce,le,se,amb=0; … … 1397 1397 struct converttimeinfo cti; 1398 1398 1399 updatetime(&w, &tow, e->tb*1000, 1); / / Moscow - > UTC1399 updatetime(&w, &tow, e->tb*1000, 1); /* Moscow - > UTC */ 1400 1400 converttime(&cti, w, tow); 1401 1401 … … 1684 1684 1685 1685 #ifndef NO_RTCM3_MAIN 1686 static char datestr[] = "$Date: 2010/0 1/16 10:22:15$";1686 static char datestr[] = "$Date: 2010/03/05 11:11:06 $"; 1687 1687 1688 1688 /* The string, which is send as agent in HTTP request */ -
trunk/BNS/RTCM/rtcm3torinex.h
r2236 r2354 4 4 /* 5 5 Converter for RTCM3 data to RINEX. 6 $Id: rtcm3torinex.h,v 1.1 9 2010/01/12 12:13:23 mervartExp $6 $Id: rtcm3torinex.h,v 1.12 2010/03/05 11:11:06 stoecker Exp $ 7 7 Copyright (C) 2005-2006 by Dirk Stöcker <stoecker@alberding.eu> 8 8 … … 24 24 25 25 #include <stdio.h> 26 27 #define GNSS_MAXSATS 64 26 28 27 29 #define PRN_GPS_START 1 … … 114 116 int numsats; 115 117 double timeofweek; /* milliseconds in GPS week */ 116 double measdata[ 24][GNSSENTRY_NUMBER]; /* data fields */117 int dataflags[ 24]; /* GPSDF_xxx */118 int satellites[ 24]; /* SV - IDs */119 int channels[ 24]; /* Glonass channels - valid of Glonass SV only */120 int snrL1[ 24]; /* Important: all the 5 SV-specific fields must */121 int snrL2[ 24]; /* have the same SV-order */118 double measdata[GNSS_MAXSATS][GNSSENTRY_NUMBER]; /* data fields */ 119 int dataflags[GNSS_MAXSATS]; /* GPSDF_xxx */ 120 int satellites[GNSS_MAXSATS]; /* SV - IDs */ 121 int channels[GNSS_MAXSATS]; /* Glonass channels - valid of Glonass SV only */ 122 int snrL1[GNSS_MAXSATS]; /* Important: all the 5 SV-specific fields must */ 123 int snrL2[GNSS_MAXSATS]; /* have the same SV-order */ 122 124 }; 123 125
Note:
See TracChangeset
for help on using the changeset viewer.