Changeset 2041 in ntrip


Ignore:
Timestamp:
Nov 26, 2009, 3:41:33 PM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2040 r2041  
    165165////////////////////////////////////////////////////////////////////////////
    166166t_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;
    168172
    169173  if (_eph.contains(prn)) {
     
    173177    if (_corr.contains(prn)) {
    174178      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      }
    181183    }
    182184
     
    185187
    186188  return failure;
     189}
     190
     191//
     192////////////////////////////////////////////////////////////////////////////
     193void bncPPPclient::applyCorr(const t_corr* cc, ColumnVector& xc,
     194                             ColumnVector& vv) {
     195
    187196}
    188197
     
    202211    cout.setf(ios::fixed);
    203212
    204     if (getSatPos(_epoData->tt, prn, xc, vv) == success) {
     213    bool corr = false;
     214    if (getSatPos(_epoData->tt, prn, xc, vv, corr) == success) {
    205215      cout << _epoData->tt.timestr(1) << " " << prn.toAscii().data() << "   "
    206216           << setw(14) << setprecision(3) << xc(1)                << "  "
    207217           << setw(14) << setprecision(3) << xc(2)                << "  "
    208218           << 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      }
    210226    }
    211227  }
Note: See TracChangeset for help on using the changeset viewer.