Changeset 744 in ntrip
- Timestamp:
- Mar 25, 2008, 4:10:48 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/rtcm3torinex/rtcm3torinex.c
r646 r744 1 1 /* 2 2 Converter for RTCM3 data to RINEX. 3 $Id: rtcm3torinex.c,v 1.2 5 2007/10/25 09:37:42stoecker Exp $4 Copyright (C) 2005-200 6 by Dirk Stoecker <stoecker@alberding.eu>3 $Id: rtcm3torinex.c,v 1.26 2007/12/20 10:42:10 stoecker Exp $ 4 Copyright (C) 2005-2008 by Dirk Stöcker <stoecker@alberding.eu> 5 5 6 6 This software is a complete NTRIP-RTCM3 to RINEX converter as well as … … 51 51 52 52 /* CVS revision and version */ 53 static char revisionstr[] = "$Revision: 1.2 5$";53 static char revisionstr[] = "$Revision: 1.26 $"; 54 54 55 55 #ifndef COMPILEDATE … … 110 110 if(e-m < 3) 111 111 handle->NeedBytes = 3; 112 112 113 113 /* copy buffer to front */ 114 114 i = m - handle->Message; … … 182 182 int year; 183 183 int taicount; 184 }; 184 }; 185 185 static const int months[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31}; 186 186 static const struct leapseconds leap[] = { … … 459 459 } 460 460 GETBITS(l1range, 24); 461 if((l1range&((1<<24)-1)) != 0x80000)462 {463 gnss->dataflags[num] |= c;464 gnss->measdata[num][ce] = l1range*0.02;465 }466 461 GETBITSSIGN(i, 20); 467 462 if((i&((1<<20)-1)) != 0x80000) 468 463 { 469 gnss->dataflags[num] |= l; 464 gnss->dataflags[num] |= (c|l); 465 gnss->measdata[num][ce] = l1range*0.02; 470 466 gnss->measdata[num][le] = l1range*0.02+i*0.0005; 471 467 } … … 622 618 } 623 619 GETBITS(l1range, 25) 624 if((l1range&((1<<25)-1)) != 0x80000)625 {626 gnss->dataflags[num] |= c;627 gnss->measdata[num][ce] = l1range*0.02;628 }629 620 GETBITSSIGN(i, 20) 630 621 if((i&((1<<20)-1)) != 0x80000) 631 622 { 632 gnss->dataflags[num] |= l; 623 /* Handle this like GPS. Actually for GLONASS L1 range is always 624 valid. To be on the save side, we handle it as invalid like we 625 do for GPS and also remove range in case of 0x80000. */ 626 gnss->dataflags[num] |= (c|l); 627 gnss->measdata[num][ce] = l1range*0.02; 633 628 gnss->measdata[num][le] = l1range*0.02+i*0.0005; 634 629 } … … 898 893 " .0000 .0000 .0000 " 899 894 "ANTENNA: DELTA H/E/N"; 900 895 901 896 hdata.data.named.wavelength = Parser->rinex3 ? 0 : 902 897 " 1 1 " … … 1536 1531 1537 1532 #ifndef NO_RTCM3_MAIN 1538 static char datestr[] = "$Date: 2007/1 0/25 09:37:42$";1533 static char datestr[] = "$Date: 2007/12/20 10:42:10 $"; 1539 1534 1540 1535 /* The string, which is send as agent in HTTP request */ … … 2097 2092 { 2098 2093 if(numbytes >= 17 && !strncmp(buf, "RTSP/1.0 200 OK\r\n", 17)) 2099 2094 { 2100 2095 int serverport = 0, session = 0; 2101 2096 const char *portcheck = "server_port="; … … 2333 2328 if(numbytes > 17 && (!strncmp(buf, "HTTP/1.1 200 OK\r\n", 17) 2334 2329 || !strncmp(buf, "HTTP/1.0 200 OK\r\n", 17))) 2335 2330 { 2336 2331 const char *datacheck = "Content-Type: gnss/data\r\n"; 2337 2332 const char *chunkycheck = "Transfer-Encoding: chunked\r\n";
Note:
See TracChangeset
for help on using the changeset viewer.