Changeset 2041 in ntrip
- Timestamp:
- Nov 26, 2009, 3:41:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpppclient.cpp
r2040 r2041 165 165 //////////////////////////////////////////////////////////////////////////// 166 166 t_irc bncPPPclient::getSatPos(const t_time& tt, const QString& prn, 167 ColumnVector& xc, ColumnVector& vv) { 167 ColumnVector& xc, ColumnVector& vv, bool& corr) { 168 169 const double MAXAGE = 120.0; 170 171 corr = false; 168 172 169 173 if (_eph.contains(prn)) { … … 173 177 if (_corr.contains(prn)) { 174 178 t_corr* cc = _corr.value(prn); 175 cout << "found: " << prn.toAscii().data() 176 << " age: " << (tt - cc->tt) << " " 177 << ee->IOD() << " " << cc->iod << endl; 178 } 179 else { 180 cout << "not found: " << prn.toAscii().data() << endl; 179 if (ee->IOD() == cc->iod && (tt - cc->tt) < MAXAGE) { 180 corr = true; 181 applyCorr(cc, xc, vv); 182 } 181 183 } 182 184 … … 185 187 186 188 return failure; 189 } 190 191 // 192 //////////////////////////////////////////////////////////////////////////// 193 void bncPPPclient::applyCorr(const t_corr* cc, ColumnVector& xc, 194 ColumnVector& vv) { 195 187 196 } 188 197 … … 202 211 cout.setf(ios::fixed); 203 212 204 if (getSatPos(_epoData->tt, prn, xc, vv) == success) { 213 bool corr = false; 214 if (getSatPos(_epoData->tt, prn, xc, vv, corr) == success) { 205 215 cout << _epoData->tt.timestr(1) << " " << prn.toAscii().data() << " " 206 216 << setw(14) << setprecision(3) << xc(1) << " " 207 217 << setw(14) << setprecision(3) << xc(2) << " " 208 218 << setw(14) << setprecision(3) << xc(3) << " " 209 << setw(14) << setprecision(6) << xc(4)*1.e6 << endl; 219 << setw(14) << setprecision(6) << xc(4)*1.e6; 220 if (corr) { 221 cout << endl; 222 } 223 else { 224 cout << " !\n"; 225 } 210 226 } 211 227 }
Note:
See TracChangeset
for help on using the changeset viewer.