- Timestamp:
- Mar 26, 2008, 4:46:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/rtcm3torinex.c
r745 r746 809 809 } 810 810 811 staticint HandleRunBy(char *buffer, int buffersize, const char **u,811 int HandleRunBy(char *buffer, int buffersize, const char **u, 812 812 int rinex3) 813 813 { … … 841 841 } 842 842 843 // Inserted parts for BNC Perlt 844 #ifdef NO_RTCM3_MAIN 845 #define NUMSTARTSKIP 1 846 #else 843 847 #define NUMSTARTSKIP 3 848 #endif 849 844 850 void HandleHeader(struct RTCM3ParserData *Parser) 845 851 { 852 #ifdef NO_RTCM3_MAIN 853 // Part of Handle Header for data request for BNC (independently on actually delivered data), original is commented out by ifndef NO_RTCM3_MAIN. Perlt 854 int i; 855 if(Parser->rinex3) 856 { 857 #define CHECKFLAGSNEW(a, b, c) \ 858 { \ 859 Parser->dataflag##a[Parser->numdatatypes##a] = GNSSDF_##b##DATA; \ 860 Parser->datapos##a[Parser->numdatatypes##a] = GNSSENTRY_##b##DATA; \ 861 ++Parser->numdatatypes##a; \ 862 } 863 864 CHECKFLAGSNEW(GPS, C1, C1C) 865 CHECKFLAGSNEW(GPS, L1C, L1C) 866 CHECKFLAGSNEW(GPS, D1C, D1C) 867 CHECKFLAGSNEW(GPS, S1C, S1C) 868 CHECKFLAGSNEW(GPS, P1, C1P) 869 CHECKFLAGSNEW(GPS, L1P, L1P) 870 CHECKFLAGSNEW(GPS, D1P, D1P) 871 CHECKFLAGSNEW(GPS, S1P, S1P) 872 CHECKFLAGSNEW(GPS, P2, C2P) 873 CHECKFLAGSNEW(GPS, L2P, L2P) 874 CHECKFLAGSNEW(GPS, D2P, D2P) 875 CHECKFLAGSNEW(GPS, S2P, S2P) 876 CHECKFLAGSNEW(GPS, C2, C2X) 877 CHECKFLAGSNEW(GPS, L2C, L2X) 878 CHECKFLAGSNEW(GPS, D2C, D2X) 879 CHECKFLAGSNEW(GPS, S2C, S2X) 880 CHECKFLAGSNEW(GLO, C1, C1C) 881 CHECKFLAGSNEW(GLO, L1C, L1C) 882 CHECKFLAGSNEW(GLO, D1C, D1C) 883 CHECKFLAGSNEW(GLO, S1C, S1C) 884 CHECKFLAGSNEW(GLO, P1, C1P) 885 CHECKFLAGSNEW(GLO, L1P, L1P) 886 CHECKFLAGSNEW(GLO, D1P, D1P) 887 CHECKFLAGSNEW(GLO, S1P, S1P) 888 CHECKFLAGSNEW(GLO, P2, C2P) 889 CHECKFLAGSNEW(GLO, L2P, L2P) 890 CHECKFLAGSNEW(GLO, D2P, D2P) 891 CHECKFLAGSNEW(GLO, S2P, S2P) 892 CHECKFLAGSNEW(GLO, C2, C2C) 893 CHECKFLAGSNEW(GLO, L2C, L2C) 894 CHECKFLAGSNEW(GLO, D2C, D2C) 895 CHECKFLAGSNEW(GLO, S2C, S2C) 896 897 } 898 else 899 { 900 #define CHECKFLAGS(a, b) \ 901 { \ 902 if(data[RINEXENTRY_##b##DATA]) \ 903 { \ 904 Parser->dataflagGPS[data[RINEXENTRY_##b##DATA]-1] = GNSSDF_##a##DATA; \ 905 Parser->dataposGPS[data[RINEXENTRY_##b##DATA]-1] = GNSSENTRY_##a##DATA; \ 906 } \ 907 else \ 908 { \ 909 Parser->dataflag[Parser->numdatatypesGPS] = GNSSDF_##a##DATA; \ 910 Parser->datapos[Parser->numdatatypesGPS] = GNSSENTRY_##a##DATA; \ 911 data[RINEXENTRY_##b##DATA] = ++Parser->numdatatypesGPS; \ 912 } \ 913 } 914 915 int data[RINEXENTRY_NUMBER]; 916 for(i = 0; i < RINEXENTRY_NUMBER; ++i) data[i] = 0; 917 918 CHECKFLAGS(C1,C1) 919 CHECKFLAGS(C2,C2) 920 CHECKFLAGS(P1,P1) 921 CHECKFLAGS(P2,P2) 922 CHECKFLAGS(L1C,L1) 923 CHECKFLAGS(L1P,L1) 924 CHECKFLAGS(L2C,L2) 925 CHECKFLAGS(L2P,L2) 926 CHECKFLAGS(D1C,D1) 927 CHECKFLAGS(D1P,D1) 928 CHECKFLAGS(D2C,D2) 929 CHECKFLAGS(D2P,D2) 930 CHECKFLAGS(S1C,S1) 931 CHECKFLAGS(S1P,S1) 932 CHECKFLAGS(S2C,S2) 933 CHECKFLAGS(S2P,S2) 934 } 935 // End Part of Handle Header for BNC Perlt 936 #endif 937 938 #ifndef NO_RTCM3_MAIN 846 939 struct HeaderData hdata; 847 940 char thebuffer[MAXHEADERBUFFERSIZE]; … … 1134 1227 } 1135 1228 1136 #ifndef NO_RTCM3_MAIN1137 1229 for(i = 0; i < hdata.numheaders; ++i) 1138 1230 {
Note:
See TracChangeset
for help on using the changeset viewer.