Changeset 4149 in ntrip


Ignore:
Timestamp:
May 11, 2012, 1:19:19 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r4148 r4149  
    431431void bncPPPclient::processFrontEpoch() {
    432432
     433#ifdef BNC_DEBUG
     434  QString msg = "List of Corrections\n";
     435  QMapIterator<QString, t_corr*> itC(_corr);
     436  while (itC.hasNext()) {
     437    itC.next();
     438    QString       src  = itC.key();
     439    const t_corr* corr = itC.value();
     440    msg += QString("%1 %2 %3 %4\n")
     441      .arg(corr->prn)
     442      .arg(corr->iod)
     443      .arg(QString(corr->tClk.datestr().c_str()) + "_" + QString(corr->tClk.timestr().c_str()))
     444      .arg(QString(corr->tRao.datestr().c_str()) + "_" + QString(corr->tRao.timestr().c_str()));
     445  }
     446
     447  msg += "List of Ephemeris\n";
     448  QMapIterator<QString, t_ephPair*> itE(_eph);
     449  while (itE.hasNext()) {
     450    itE.next();
     451    QString          prn     = itE.key();
     452    const t_ephPair* ephPair = itE.value();
     453    if (ephPair->prev) {
     454      msg += QString("%1 %2 %3 %4 %5\n")
     455        .arg(prn)
     456        .arg(ephPair->last->IOD())
     457        .arg(QString(ephPair->last->TOC().datestr().c_str()) + "_" +
     458             QString(ephPair->last->TOC().timestr().c_str()))
     459        .arg(ephPair->prev->IOD())
     460        .arg(QString(ephPair->prev->TOC().datestr().c_str()) + "_" +
     461             QString(ephPair->prev->TOC().timestr().c_str()));
     462    }
     463    else {
     464      msg += QString("%1 %2 %3\n")
     465        .arg(prn)
     466        .arg(ephPair->last->IOD())
     467        .arg(QString(ephPair->last->TOC().datestr().c_str()) + "_" +
     468             QString(ephPair->last->TOC().timestr().c_str()));
     469    }
     470  }
     471
     472  emit newMessage(msg.toAscii(), false);
     473#endif // BNC_DEBUG
     474
    433475  // Data Pre-Processing
    434476  // -------------------
Note: See TracChangeset for help on using the changeset viewer.