Changeset 2793 in ntrip for trunk/BNC/bncmodel.cpp
- Timestamp:
- Dec 14, 2010, 3:33:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmodel.cpp
r2792 r2793 962 962 QMap<QString, t_satData*>& satDataGal) { 963 963 964 965 964 QString prnCode; 966 965 QString prnPhase; … … 971 970 double maxRes; 972 971 973 // First check Glonass 974 // ------------------- 975 findMaxRes(vv,satDataGlo, prnCode, maxResCode, prnPhase, maxResPhase); 976 if (maxResPhase > MAXRES_PHASE_GLO) { 977 satDataGlo.remove(prnPhase); 978 prnRemoved = prnPhase; 979 maxRes = maxResPhase; 980 } 981 982 // then check Galileo 983 // ------------------ 984 else { 972 int irc = 0; 973 974 // Check Glonass 975 // ------------- 976 if (irc == 0) { 977 findMaxRes(vv,satDataGlo, prnCode, maxResCode, prnPhase, maxResPhase); 978 if (maxResPhase > MAXRES_PHASE_GLO) { 979 satDataGlo.remove(prnPhase); 980 prnRemoved = prnPhase; 981 maxRes = maxResPhase; 982 irc = 1; 983 } 984 } 985 986 // Check Galileo 987 // ------------- 988 if (irc == 0) { 985 989 findMaxRes(vv,satDataGal, prnCode, maxResCode, prnPhase, maxResPhase); 986 990 if (maxResPhase > MAXRES_PHASE_GAL) { … … 988 992 prnRemoved = prnPhase; 989 993 maxRes = maxResPhase; 994 irc = 1; 990 995 } 991 996 else if (maxResCode > MAXRES_CODE_GAL) { … … 993 998 prnRemoved = prnCode; 994 999 maxRes = maxResCode; 995 } 996 997 // and then check GPS 998 // ------------------ 999 else { 1000 findMaxRes(vv,satDataGPS, prnCode, maxResCode, prnPhase, maxResPhase); 1001 if (maxResPhase > MAXRES_PHASE_GPS) { 1002 satDataGPS.remove(prnPhase); 1003 prnRemoved = prnPhase; 1004 maxRes = maxResPhase; 1005 } 1006 else if (maxResCode > MAXRES_CODE_GPS) { 1007 satDataGPS.remove(prnCode); 1008 prnRemoved = prnCode; 1009 maxRes = maxResCode; 1010 } 1000 irc = 1; 1001 } 1002 } 1003 1004 // Check GPS 1005 // --------- 1006 if (irc == 0) { 1007 findMaxRes(vv,satDataGPS, prnCode, maxResCode, prnPhase, maxResPhase); 1008 if (maxResPhase > MAXRES_PHASE_GPS) { 1009 satDataGPS.remove(prnPhase); 1010 prnRemoved = prnPhase; 1011 maxRes = maxResPhase; 1012 irc = 1; 1013 } 1014 else if (maxResCode > MAXRES_CODE_GPS) { 1015 satDataGPS.remove(prnCode); 1016 prnRemoved = prnCode; 1017 maxRes = maxResCode; 1018 irc = 1; 1011 1019 } 1012 1020 } 1013 1021 1014 if ( !prnRemoved.isEmpty()) {1022 if (irc != 0) { 1015 1023 _log += "Outlier " + prnRemoved.toAscii() + " " 1016 1024 + QByteArray::number(maxRes, 'f', 3) + "\n"; 1017 1025 _QQ = QQsav; 1018 return 1; 1019 } 1020 else { 1021 return 0; 1022 } 1026 } 1027 1028 return irc; 1023 1029 } 1024 1030
Note:
See TracChangeset
for help on using the changeset viewer.