Changeset 3011 in ntrip


Ignore:
Timestamp:
Feb 22, 2011, 7:19:04 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/combination
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/combination/bnccomb.cpp

    r3000 r3011  
    462462        }
    463463      }
     464      out << currentDateAndTimeGPS().toString("yy-MM-dd hh:mm:ss ").toAscii().data();
    464465      out.setRealNumberNotation(QTextStream::FixedNotation);
    465466      out.setFieldWidth(8);
     
    470471  }
    471472
     473  printResults(out, resCorr);
    472474  dumpResults(resTime, resCorr);
    473475
    474476  emit newMessage(_log, false);
    475477}
     478
     479// Print results to caster
     480////////////////////////////////////////////////////////////////////////////
     481void bncComb::printResults(QTextStream& out,
     482                           const QMap<QString, t_corr*>& resCorr) {
     483
     484  QMapIterator<QString, t_corr*> it(resCorr);
     485  while (it.hasNext()) {
     486    it.next();
     487    t_corr* corr = it.value();
     488    out << currentDateAndTimeGPS().toString("yy-MM-dd hh:mm:ss ").toAscii().data();
     489    out << corr->prn << " " << corr->iod << " ";
     490    out.setRealNumberNotation(QTextStream::FixedNotation);
     491    out.setFieldWidth(8);
     492    out.setRealNumberPrecision(4);
     493    out << corr->dClk * t_CST::c << endl;
     494  }
     495}
  • trunk/BNC/combination/bnccomb.h

    r2990 r3011  
    6969  void dumpResults(const bncTime& resTime,
    7070                   const QMap<QString, t_corr*>& resCorr);
     71  void printResults(QTextStream& out,
     72                    const QMap<QString, t_corr*>& resCorr);
    7173  void switchToLastEph(const t_eph* lastEph, const t_eph* prevEph,
    7274                       t_corr* newCorr);
Note: See TracChangeset for help on using the changeset viewer.