Changeset 8855 in ntrip for branches/BNC_2.12/src/bncutils.cpp
- Timestamp:
- Nov 21, 2019, 10:47:25 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.