Changeset 3218 in ntrip


Ignore:
Timestamp:
Mar 31, 2011, 10:03:00 AM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3217 r3218  
    618618            << setw(8)  << setprecision(3) << dcbP1P2
    619619            << setw(6)  << setprecision(1) << dT;
    620         ostringstream outLine; outLine.setf(std::ios::fixed);
    621 
     620
     621        QString line;
    622622        int messageType = COTYPE_GPSCOMBINED;
    623         int updateInterval = 0;
    624         outLine << messageType    << " "
    625                 << updateInterval << " "
    626                 << time12.gpsw()  << " "
    627                 << setprecision(8) << time12.gpssec() << " "
    628                 << corr->prn.toAscii().data() << " "
    629                 << corr->iod << " "
    630                 << corr->dClk * t_CST::c << " "
    631                 << corr->rao[0] << " " << corr->rao[1] << " " << corr->rao[2] << " "
    632                 << corr->dotDClk * t_CST::c << " "
    633                 << corr->dotRao[0] << " " << corr->dotRao[1] << " " << corr->dotRao[2] << " "
    634                 << corr->dotDotDClk * t_CST::c << " "
    635                 << corr->dotDotRao[0] << " " << corr->dotDotRao[1] << " " << corr->dotDotRao[2] << " "
    636                 << " COMB";
    637         corrLines << QString(outLine.str().c_str());
     623        int updateInt   = 0;
     624        line.sprintf("%d %d %d %.1f %s"
     625                     "   %3d"
     626                     "   %8.3f %8.3f %8.3f %8.3f"
     627                     "   %10.5f %10.5f %10.5f %10.5f"
     628                     "   %10.5f",
     629                     messageType, updateInt, time12.gpsw(), time12.gpssec(),
     630                     corr->prn.toAscii().data(),
     631                     corr->iod,
     632                     corr->dClk,
     633                     corr->rao[0],
     634                     corr->rao[1],
     635                     corr->rao[2],
     636                     corr->dotDClk,
     637                     corr->dotRao[0],
     638                     corr->dotRao[1],
     639                     corr->dotRao[2],
     640                     corr->dotDotDClk);
     641        corrLines << line;
    638642      }
    639643      else {
Note: See TracChangeset for help on using the changeset viewer.