Changeset 5529 in ntrip for trunk/BNC/src/RTCM
- Timestamp:
- Nov 6, 2013, 5:02:11 PM (11 years ago)
- Location:
- trunk/BNC/src/RTCM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM/GPSDecoder.cpp
r5520 r5529 105 105 } 106 106 107 int ie = iEntry(rnxStr , rnxVers);107 int ie = iEntry(rnxStr); 108 108 109 109 if (ie != -1) { … … 116 116 ////////////////////////////////////////////////////////////////////////////// 117 117 double t_obs::measdata(const QString& rnxStr, float rnxVers) const { 118 int ie = iEntry(rnxStr, rnxVers); 119 if (ie != -1) { 120 return _measdata[ie]; 121 } 122 else { 123 return 0.0; 124 } 118 119 int maxTrial = 1; 120 if (rnxVers < 3.0 && rnxStr.length() == 2) { 121 maxTrial = 3; 122 } 123 124 for (int iTrial = 1; iTrial <= maxTrial; iTrial++) { 125 QString rnxStrHlp = rnxStr; 126 if (iTrial == 2) { 127 rnxStrHlp += 'C'; 128 } 129 else if (iTrial == 3) { 130 rnxStrHlp += 'P'; 131 } 132 int ie = iEntry(rnxStrHlp); 133 if (ie != -1 && _measdata[ie] != 0.0) { 134 return _measdata[ie]; 135 } 136 } 137 138 return 0.0; 125 139 } 126 140 … … 141 155 // 142 156 ////////////////////////////////////////////////////////////////////////////// 143 int t_obs::iEntry(QString rnxStr, float rnxVers) const { 144 145 if (rnxVers < 3.0) { 146 if (rnxStr == "C1") rnxStr = "C1C"; 147 else if (rnxStr == "P1") rnxStr = "C1P"; 148 else if (rnxStr == "C2") rnxStr = "C2C"; 149 else if (rnxStr == "P2") rnxStr = "C2P"; 150 } 157 int t_obs::iEntry(QString rnxStr) const { 151 158 152 159 int res = 0; -
trunk/BNC/src/RTCM/GPSDecoder.h
r5367 r5529 96 96 97 97 private: 98 int iEntry(QString rnxStr , float rnxVer) const;98 int iEntry(QString rnxStr) const; 99 99 }; 100 100
Note:
See TracChangeset
for help on using the changeset viewer.