Changeset 4394 in ntrip
- Timestamp:
- Jul 6, 2012, 4:33:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM/GPSDecoder.cpp
r4393 r4394 102 102 // 103 103 ////////////////////////////////////////////////////////////////////////////// 104 double t_obs::measdata(const QString& rnxStr, int* iEntry) const {104 double t_obs::measdata(const QString& rnxStr, int* p_iEntry) const { 105 105 106 if (iEntry) { 107 *iEntry = 0; 106 int iEntry = -1; 107 108 // TODO: this is a preliminary solution 109 // ------------------------------------ 110 if (rnxStr.indexOf("C1") == 0) { 111 iEntry = GNSSENTRY_C1DATA; 112 } 113 else if (rnxStr.indexOf("P1") == 0) { 114 iEntry = GNSSENTRY_P1DATA; 115 } 116 else if (rnxStr.indexOf("L1") == 0) { 117 iEntry = GNSSENTRY_L1CDATA; 118 } 119 else if (rnxStr.indexOf("D1") == 0) { 120 iEntry = GNSSENTRY_D1CDATA; 121 } 122 else if (rnxStr.indexOf("S1") == 0) { 123 iEntry = GNSSENTRY_S1CDATA; 124 } 125 else if (rnxStr.indexOf("C2") == 0) { 126 iEntry = GNSSENTRY_C2DATA; 127 } 128 else if (rnxStr.indexOf("P2") == 0) { 129 iEntry = GNSSENTRY_P2DATA; 130 } 131 else if (rnxStr.indexOf("L2") == 0) { 132 iEntry = GNSSENTRY_L2CDATA; 133 } 134 else if (rnxStr.indexOf("D2") == 0) { 135 iEntry = GNSSENTRY_D2CDATA; 136 } 137 else if (rnxStr.indexOf("S2") == 0) { 138 iEntry = GNSSENTRY_S2CDATA; 139 } 140 else if (rnxStr.indexOf("C5") == 0) { 141 iEntry = GNSSENTRY_C5DATA; 142 } 143 else if (rnxStr.indexOf("L5") == 0) { 144 iEntry = GNSSENTRY_L5DATA; 145 } 146 else if (rnxStr.indexOf("D5") == 0) { 147 iEntry = GNSSENTRY_D5DATA; 148 } 149 else if (rnxStr.indexOf("S5") == 0) { 150 iEntry = GNSSENTRY_S5DATA; 108 151 } 109 152 110 return 0.0; 153 // Set iEntry pointer if required 154 // ------------------------------ 155 if (p_iEntry) { 156 *p_iEntry = iEntry; 157 } 158 159 // Return the value if found 160 // ------------------------- 161 if (iEntry != -1) { 162 return _measdata[iEntry]; 163 } 164 else { 165 return 0.0; 166 } 111 167 } 112 168
Note:
See TracChangeset
for help on using the changeset viewer.