Changeset 8988 in ntrip for branches/BNC_2.12
- Timestamp:
- Jul 20, 2020, 3:56:40 PM (4 years ago)
- Location:
- branches/BNC_2.12/src/RTCM3/clock_and_orbit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/RTCM3/clock_and_orbit/clock_orbit_igs.c
r8987 r8988 576 576 return GCOBR_SHORTBUFFER; 577 577 578 #ifdef BNC_DEBUG578 #ifdef DEBUG 579 579 fprintf(stderr, "GetSSR START: size %d, numbits %d\n",(int)size, numbits); 580 580 #endif … … 597 597 G_RTCM_MESSAGE_NUMBER(type) 598 598 G_IGS_SSR_VERSION(version) 599 #ifdef BNC_DEBUG599 #ifdef DEBUG 600 600 fprintf(stderr, "rtcmType %d igsVersion %d ",type, version); 601 601 #endif 602 602 G_IGS_MESSAGE_NUMBER(type) 603 #ifdef BNC_DEBUG603 #ifdef DEBUG 604 604 fprintf(stderr, "igsType IM%d size %d\n",type,(int)sizeofrtcmblock); 605 605 #endif … … 620 620 G_VTEC_QUALITY_INDICATOR(v->Quality) 621 621 G_NO_IONO_LAYERS(v->NumLayers) 622 #ifdef BNC_DEBUG622 #ifdef DEBUG 623 623 fprintf(stderr, "epochTime %d ui %d mmi %d ssrIod %d providerId %d solId %d vtecQ %8.3f numLay %d \n", 624 624 v->EpochTime, v->UpdateInterval, mmi, … … 629 629 G_IONO_DEGREE(v->Layers[l].Degree) 630 630 G_IONO_ORDER(v->Layers[l].Order) 631 #ifdef BNC_DEBUG631 #ifdef DEBUG 632 632 fprintf(stderr, "h %8.3f deg %d ord %d \n", 633 633 v->Layers[l].Height, v->Layers[l].Degree, v->Layers[l].Order); … … 636 636 for (d = o; d <= v->Layers[l].Degree; ++d) { 637 637 G_IONO_COEFF_C(v->Layers[l].Cosinus[d][o]) 638 #ifdef BNC_DEBUG638 #ifdef DEBUG 639 639 fprintf(stderr, "C[%02d][%02d] %8.3f \n", 640 640 d, o, v->Layers[l].Cosinus[d][o]); … … 645 645 for (d = o; d <= v->Layers[l].Degree; ++d) { 646 646 G_IONO_COEFF_S(v->Layers[l].Sinus[d][o]) 647 #ifdef BNC_DEBUG647 #ifdef DEBUG 648 648 fprintf(stderr, "S[%02d][%02d] %8.3f \n", 649 649 d, o, v->Layers[l].Sinus[d][o]); … … 652 652 } 653 653 } 654 #ifdef BNC_DEBUG654 #ifdef DEBUG 655 655 for(type = 0; type < (unsigned int)size && (unsigned char)buffer[type] != 0xD3; ++type) 656 656 numbits += 8; … … 675 675 G_NO_OF_SATELLITES(nums) 676 676 co->Supplied[COBOFS_ORBIT] |= 1; 677 #ifdef BNC_DEBUG677 #ifdef DEBUG 678 678 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d rd %d ssrIod %d providerId %d solId %d\n", 679 679 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 698 698 G_DELTA_DOT_ALONG_TRACK(co->Sat[pos].Orbit.DotDeltaAlongTrack) 699 699 G_DELTA_DOT_CROSS_TRACK(co->Sat[pos].Orbit.DotDeltaCrossTrack) 700 #ifdef BNC_DEBUG700 #ifdef DEBUG 701 701 fprintf(stderr, "id %2d iod %3d dr %8.4f da %8.4f dc %8.4f dr %8.3f da %8.3f dc %8.3f\n", 702 702 co->Sat[pos].ID,co->Sat[pos].IOD,co->Sat[pos].Orbit.DeltaRadial, … … 720 720 G_NO_OF_SATELLITES(nums) 721 721 co->Supplied[COBOFS_CLOCK] |= 1; 722 #ifdef BNC_DEBUG722 #ifdef DEBUG 723 723 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 724 724 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 739 739 G_DELTA_CLOCK_C1(co->Sat[pos].Clock.DeltaA1) 740 740 G_DELTA_CLOCK_C2(co->Sat[pos].Clock.DeltaA2) 741 #ifdef BNC_DEBUG741 #ifdef DEBUG 742 742 fprintf(stderr, "id %2d c0 %8.3f c1 %8.3f c2 %8.3f\n", 743 743 co->Sat[pos].ID, co->Sat[pos].Clock.DeltaA0, co->Sat[pos].Clock.DeltaA1, … … 760 760 co->Supplied[COBOFS_ORBIT] |= 1; 761 761 co->Supplied[COBOFS_CLOCK] |= 1; 762 #ifdef BNC_DEBUG762 #ifdef DEBUG 763 763 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d rd %d ssrIod %d providerId %d solId %d\n", 764 764 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 786 786 G_DELTA_CLOCK_C1(co->Sat[pos].Clock.DeltaA1) 787 787 G_DELTA_CLOCK_C2(co->Sat[pos].Clock.DeltaA2) 788 #ifdef BNC_DEBUG788 #ifdef DEBUG 789 789 fprintf(stderr, "id %2d iod %3d dr %10.6f da %10.6f dc %10.6f dr %10.6f da %10.6f dc %10.6f c0 %10.6f c1 %10.6f c2 %10.6f\n", 790 790 co->Sat[pos].ID,co->Sat[pos].IOD,co->Sat[pos].Orbit.DeltaRadial, … … 808 808 G_NO_OF_SATELLITES(nums) 809 809 co->Supplied[COBOFS_URA] |= 1; 810 #ifdef BNC_DEBUG810 #ifdef DEBUG 811 811 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 812 812 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 825 825 co->Sat[pos].ID = id; 826 826 G_SSR_URA(co->Sat[pos].UserRangeAccuracy) 827 #ifdef BNC_DEBUG827 #ifdef DEBUG 828 828 fprintf(stderr, "id %2d ura %8.3f \n", 829 829 co->Sat[pos].ID, co->Sat[pos].UserRangeAccuracy); … … 843 843 G_NO_OF_SATELLITES(nums) 844 844 co->Supplied[COBOFS_HR] |= 1; 845 #ifdef BNC_DEBUG845 #ifdef DEBUG 846 846 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 847 847 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 860 860 co->Sat[pos].ID = id; 861 861 G_HR_CLOCK_CORRECTION(co->Sat[pos].hrclock) 862 #ifdef BNC_DEBUG862 #ifdef DEBUG 863 863 fprintf(stderr, "id %2d hrClock %8.3f \n", 864 864 co->Sat[pos].ID, co->Sat[pos].hrclock); … … 877 877 G_SSR_SOLUTION_ID(b->SSRSolutionID) 878 878 G_NO_OF_SATELLITES(nums) 879 #ifdef BNC_DEBUG879 #ifdef DEBUG 880 880 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 881 881 b->EpochTime[s], b->UpdateInterval,mmi,b->NumberOfSat[s],nums, … … 894 894 b->Sat[pos].ID = id; 895 895 G_NO_OF_BIASES(b->Sat[pos].NumberOfCodeBiases) 896 #ifdef BNC_DEBUG896 #ifdef DEBUG 897 897 fprintf(stderr, "id %2d #%d ", 898 898 b->Sat[pos].ID, b->Sat[pos].NumberOfCodeBiases); … … 901 901 G_GNSS_SIGNAL_IDENTIFIER(b->Sat[pos].Biases[j].Type) 902 902 G_CODE_BIAS(b->Sat[pos].Biases[j].Bias) 903 #ifdef BNC_DEBUG903 #ifdef DEBUG 904 904 fprintf(stderr, "t%02d b %8.2f ", 905 905 b->Sat[pos].Biases[j].Type, b->Sat[pos].Biases[j].Bias); 906 906 #endif 907 907 } 908 #ifdef BNC_DEBUG908 #ifdef DEBUG 909 909 fprintf(stderr, "\n"); 910 910 #endif … … 924 924 G_MW_CONSISTENCY_INDICATOR(pb->MWConsistencyIndicator) 925 925 G_NO_OF_SATELLITES(nums) 926 #ifdef BNC_DEBUG926 #ifdef DEBUG 927 927 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d dispInd %d mwInd %d\n", 928 928 pb->EpochTime[s], pb->UpdateInterval,mmi,pb->NumberOfSat[s],nums, … … 944 944 G_YAW_ANGLE(pb->Sat[pos].YawAngle) 945 945 G_YAW_RATE(pb->Sat[pos].YawRate) 946 #ifdef BNC_DEBUG946 #ifdef DEBUG 947 947 fprintf(stderr, "id %2d #%d y %10.6f yr %10.6f ", 948 948 pb->Sat[pos].ID, pb->Sat[pos].NumberOfPhaseBiases, … … 955 955 G_DISCONTINUITY_COUNTER(pb->Sat[pos].Biases[j].SignalDiscontinuityCounter) 956 956 G_PHASE_BIAS(pb->Sat[pos].Biases[j].Bias) 957 #ifdef BNC_DEBUG957 #ifdef DEBUG 958 958 fprintf(stderr, "t%02d int %d wl %d disc %d b %8.4f ", 959 959 pb->Sat[pos].Biases[j].Type, … … 964 964 #endif 965 965 } 966 #ifdef BNC_DEBUG966 #ifdef DEBUG 967 967 fprintf(stderr, "\n"); 968 968 #endif … … 972 972 continue; 973 973 } 974 #ifdef BNC_DEBUG974 #ifdef DEBUG 975 975 for(type = 0; type < (unsigned int)size && (unsigned char)buffer[type] != 0xD3; ++type) 976 976 numbits += 8; -
branches/BNC_2.12/src/RTCM3/clock_and_orbit/clock_orbit_rtcm.c
r8987 r8988 766 766 return GCOBR_SHORTBUFFER; 767 767 768 #ifdef BNC_DEBUG768 #ifdef DEBUG 769 769 fprintf(stderr, "GetSSR START: size %d, numbits %d\n",(int)size, numbits); 770 770 #endif … … 786 786 787 787 G_RTCM_MESSAGE_NUMBER(type) 788 #ifdef BNC_DEBUG788 #ifdef DEBUG 789 789 fprintf(stderr, "type %d size %d\n",type,(int)sizeofrtcmblock); 790 790 #endif … … 804 804 G_VTEC_QUALITY_INDICATOR(v->Quality) 805 805 G_NO_IONO_LAYERS(v->NumLayers) 806 #ifdef BNC_DEBUG806 #ifdef DEBUG 807 807 fprintf(stderr, "epochTime %d ui %d mmi %d ssrIod %d providerId %d solId %d vtecQ %8.3f numLay %d \n", 808 808 v->EpochTime, v->UpdateInterval, mmi, … … 813 813 G_IONO_DEGREE(v->Layers[l].Degree) 814 814 G_IONO_ORDER(v->Layers[l].Order) 815 #ifdef BNC_DEBUG815 #ifdef DEBUG 816 816 fprintf(stderr, "h %8.3f deg %d ord %d \n", 817 817 v->Layers[l].Height, v->Layers[l].Degree, v->Layers[l].Order); … … 820 820 for (d = o; d <= v->Layers[l].Degree; ++d) { 821 821 G_IONO_COEFF(v->Layers[l].Cosinus[d][o]) 822 #ifdef BNC_DEBUG822 #ifdef DEBUG 823 823 fprintf(stderr, "C[%02d][%02d] %8.3f \n", 824 824 d, o, v->Layers[l].Cosinus[d][o]); … … 829 829 for (d = o; d <= v->Layers[l].Degree; ++d) { 830 830 G_IONO_COEFF(v->Layers[l].Sinus[d][o]) 831 #ifdef BNC_DEBUG831 #ifdef DEBUG 832 832 fprintf(stderr, "S[%02d][%02d] %8.3f \n", 833 833 d, o, v->Layers[l].Sinus[d][o]); … … 836 836 } 837 837 } 838 #ifdef BNC_DEBUG838 #ifdef DEBUG 839 839 for(type = 0; type < (unsigned int)size && (unsigned char)buffer[type] != 0xD3; ++type) 840 840 numbits += 8; … … 868 868 G_MW_CONSISTENCY_INDICATOR(pb->MWConsistencyIndicator) 869 869 G_NO_OF_SATELLITES(nums) 870 #ifdef BNC_DEBUG870 #ifdef DEBUG 871 871 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d dispInd %d mwInd %d\n", 872 872 pb->EpochTime[s], pb->UpdateInterval,mmi,pb->NumberOfSat[s],nums, … … 901 901 G_YAW_ANGLE(pb->Sat[pos].YawAngle) 902 902 G_YAW_RATE(pb->Sat[pos].YawRate) 903 #ifdef BNC_DEBUG903 #ifdef DEBUG 904 904 fprintf(stderr, "id %2d #%d y %10.6f yr %10.6f ", 905 905 pb->Sat[pos].ID, pb->Sat[pos].NumberOfPhaseBiases, … … 914 914 pb->Sat[pos].Biases[j].SignalDiscontinuityCounter) 915 915 G_PHASE_BIAS(pb->Sat[pos].Biases[j].Bias) 916 #ifdef BNC_DEBUG916 #ifdef DEBUG 917 917 fprintf(stderr, "t%02d int %d wl %d disc %d b %8.4f ", 918 918 pb->Sat[pos].Biases[j].Type, … … 923 923 #endif 924 924 } 925 #ifdef BNC_DEBUG925 #ifdef DEBUG 926 926 fprintf(stderr, "\n"); 927 927 #endif 928 928 } 929 #ifdef BNC_DEBUG929 #ifdef DEBUG 930 930 for(type = 0; type < (unsigned int)size && (unsigned char)buffer[type] != 0xD3; ++type) 931 931 numbits += 8; … … 960 960 G_NO_OF_SATELLITES(nums) 961 961 co->Supplied[COBOFS_ORBIT] |= 1; 962 #ifdef BNC_DEBUG962 #ifdef DEBUG 963 963 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d rd %d ssrIod %d providerId %d solId %d\n", 964 964 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 1016 1016 G_DELTA_DOT_ALONG_TRACK(co->Sat[pos].Orbit.DotDeltaAlongTrack) 1017 1017 G_DELTA_DOT_CROSS_TRACK(co->Sat[pos].Orbit.DotDeltaCrossTrack) 1018 #ifdef BNC_DEBUG1018 #ifdef DEBUG 1019 1019 fprintf(stderr, "id %2d iod %3d dr %8.4f da %8.4f dc %8.4f dr %8.3f da %8.3f dc %8.3f\n", 1020 1020 co->Sat[pos].ID,co->Sat[pos].IOD,co->Sat[pos].Orbit.DeltaRadial, … … 1049 1049 G_NO_OF_SATELLITES(nums) 1050 1050 co->Supplied[COBOFS_CLOCK] |= 1; 1051 #ifdef BNC_DEBUG1051 #ifdef DEBUG 1052 1052 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 1053 1053 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 1082 1082 G_DELTA_CLOCK_C1(co->Sat[pos].Clock.DeltaA1) 1083 1083 G_DELTA_CLOCK_C2(co->Sat[pos].Clock.DeltaA2) 1084 #ifdef BNC_DEBUG1084 #ifdef DEBUG 1085 1085 fprintf(stderr, "id %2d c0 %8.3f c1 %8.3f c2 %8.3f\n", 1086 1086 co->Sat[pos].ID, co->Sat[pos].Clock.DeltaA0, co->Sat[pos].Clock.DeltaA1, … … 1114 1114 co->Supplied[COBOFS_ORBIT] |= 1; 1115 1115 co->Supplied[COBOFS_CLOCK] |= 1; 1116 #ifdef BNC_DEBUG1116 #ifdef DEBUG 1117 1117 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d rd %d ssrIod %d providerId %d solId %d\n", 1118 1118 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 1173 1173 G_DELTA_CLOCK_C1(co->Sat[pos].Clock.DeltaA1) 1174 1174 G_DELTA_CLOCK_C2(co->Sat[pos].Clock.DeltaA2) 1175 #ifdef BNC_DEBUG1175 #ifdef DEBUG 1176 1176 fprintf(stderr, "id %2d iod %3d dr %10.6f da %10.6f dc %10.6f dr %10.6f da %10.6f dc %10.6f c0 %10.6f c1 %10.6f c2 %10.6f\n", 1177 1177 co->Sat[pos].ID,co->Sat[pos].IOD,co->Sat[pos].Orbit.DeltaRadial, … … 1206 1206 G_NO_OF_SATELLITES(nums) 1207 1207 co->Supplied[COBOFS_URA] |= 1; 1208 #ifdef BNC_DEBUG1208 #ifdef DEBUG 1209 1209 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 1210 1210 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 1236 1236 co->Sat[pos].ID = id; 1237 1237 G_SSR_URA(co->Sat[pos].UserRangeAccuracy) 1238 #ifdef BNC_DEBUG1238 #ifdef DEBUG 1239 1239 fprintf(stderr, "id %2d ura %8.3f \n", 1240 1240 co->Sat[pos].ID, co->Sat[pos].UserRangeAccuracy); … … 1265 1265 G_NO_OF_SATELLITES(nums) 1266 1266 co->Supplied[COBOFS_HR] |= 1; 1267 #ifdef BNC_DEBUG1267 #ifdef DEBUG 1268 1268 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 1269 1269 co->EpochTime[s], co->UpdateInterval,mmi,co->NumberOfSat[s],nums, … … 1295 1295 co->Sat[pos].ID = id; 1296 1296 G_HR_CLOCK_CORRECTION(co->Sat[pos].hrclock) 1297 #ifdef BNC_DEBUG1297 #ifdef DEBUG 1298 1298 fprintf(stderr, "id %2d hrClock %8.3f \n", 1299 1299 co->Sat[pos].ID, co->Sat[pos].hrclock); … … 1323 1323 G_SSR_SOLUTION_ID(b->SSRSolutionID) 1324 1324 G_NO_OF_SATELLITES(nums) 1325 #ifdef BNC_DEBUG1325 #ifdef DEBUG 1326 1326 fprintf(stderr, "epochTime %d ui %d mmi %d sats %d/%d ssrIod %d providerId %d solId %d\n", 1327 1327 b->EpochTime[s], b->UpdateInterval,mmi,b->NumberOfSat[s],nums, … … 1353 1353 b->Sat[pos].ID = id; 1354 1354 G_NO_OF_CODE_BIASES(b->Sat[pos].NumberOfCodeBiases) 1355 #ifdef BNC_DEBUG1355 #ifdef DEBUG 1356 1356 fprintf(stderr, "id %2d #%d ", 1357 1357 b->Sat[pos].ID, b->Sat[pos].NumberOfCodeBiases); … … 1360 1360 G_SIGNAL_IDENTIFIER(b->Sat[pos].Biases[j].Type) 1361 1361 G_CODE_BIAS(b->Sat[pos].Biases[j].Bias) 1362 #ifdef BNC_DEBUG1362 #ifdef DEBUG 1363 1363 fprintf(stderr, "t%02d b %8.2f ", 1364 1364 b->Sat[pos].Biases[j].Type, b->Sat[pos].Biases[j].Bias); 1365 1365 #endif 1366 1366 } 1367 #ifdef BNC_DEBUG1367 #ifdef DEBUG 1368 1368 fprintf(stderr, "\n"); 1369 1369 #endif … … 1373 1373 continue; 1374 1374 } 1375 #ifdef BNC_DEBUG1375 #ifdef DEBUG 1376 1376 for(type = 0; type < (unsigned int)size && (unsigned char)buffer[type] != 0xD3; ++type) 1377 1377 numbits += 8;
Note:
See TracChangeset
for help on using the changeset viewer.