Changeset 8855 in ntrip for branches/BNC_2.12
- Timestamp:
- Nov 21, 2019, 10:47:25 AM (5 years ago)
- Location:
- branches/BNC_2.12/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/RTCM3/RTCM3Decoder.cpp
r8854 r8855 1082 1082 GETBITS(eph._L2PFlag, 1) 1083 1083 GETBITS(fitIntervalFalg, 1) 1084 if (fitIntervalFalg == 0) { 1085 eph._fitInterval = 4.0; 1086 } 1084 eph._fitInterval = fitIntervalFromFlag(fitIntervalFalg, eph._IODC, eph.type()); 1087 1085 eph._TOT = 0.9999e9; 1088 1086 … … 1247 1245 GETBITS(eph._IODC, 10) 1248 1246 GETBITS(fitIntervalFalg, 1) 1249 if (fitIntervalFalg == 0) { 1250 eph._fitInterval = 2.0; 1251 } 1247 eph._fitInterval = fitIntervalFromFlag(fitIntervalFalg, eph._IODC, eph.type()); 1252 1248 eph._TOT = 0.9999e9; 1253 1249 -
branches/BNC_2.12/src/bncutils.cpp
r8805 r8855 807 807 } 808 808 809 // 810 //////////////////////////////////////////////////////////////////////////// 809 811 double accuracyFromIndex(int index, t_eph::e_type type) { 810 812 double accuracy = -1.0; … … 868 870 } 869 871 870 872 // 873 //////////////////////////////////////////////////////////////////////////// 871 874 int indexFromAccuracy(double accuracy, t_eph::e_type type) { 872 875 … … 944 947 945 948 return (type == t_eph::Galileo) ? 255 : 15; 949 } 950 951 // Returns fit interval in hours from flag 952 //////////////////////////////////////////////////////////////////////////// 953 double fitIntervalFromFlag(int flag, double iodc, t_eph::e_type type) { 954 double fitInterval = 0.0; 955 956 switch (flag) { 957 case 0: 958 if (type == t_eph::GPS) { 959 fitInterval = 4.0; 960 } 961 else if (type == t_eph::QZSS) { 962 fitInterval = 2.0; 963 } 964 break; 965 case 1: 966 if (type == t_eph::GPS) { 967 if (iodc >= 240 && iodc <= 247) { 968 fitInterval = 8.0; 969 } 970 else if ((iodc >= 248 && iodc <= 255) || 971 (iodc == 496) ) { 972 fitInterval = 14.0; 973 } 974 else if ((iodc >= 497 && iodc <= 503) || 975 (iodc >= 2021 && iodc <= 1023) ) { 976 fitInterval = 26.0; 977 } 978 else { 979 fitInterval = 6.0; 980 } 981 } 982 break; 983 } 984 return fitInterval; 946 985 } 947 986 -
branches/BNC_2.12/src/bncutils.h
r8805 r8855 137 137 138 138 int indexFromAccuracy(double accuracy, t_eph::e_type type); 139 140 double fitIntervalFromFlag(int flag, double iodc, t_eph::e_type type); 139 141 140 142 double associatedLegendreFunction(int n, int m, double t);
Note:
See TracChangeset
for help on using the changeset viewer.