Changeset 5980 in ntrip


Ignore:
Timestamp:
Aug 17, 2014, 2:32:50 PM (8 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppRun.cpp

    r5977 r5980  
    4343#include <iostream>
    4444#include <iomanip>
     45#include <sstream>
    4546#include <string.h>
    4647#include <map>
     
    241242    delete _epoData.front(); _epoData.pop_front();
    242243   
    243     emit newMessage(QByteArray(output._log.c_str()), true);
     244    ostringstream log;
     245    if (output._error) {
     246      log << output._log;
     247    }
     248    else {
     249      log.setf(ios::fixed);
     250      log << staID.data()
     251          << "  X = "  << setprecision(4) << output._xyzRover[0]
     252          << "  Y = "  << setprecision(4) << output._xyzRover[1]
     253          << "  Z = "  << setprecision(4) << output._xyzRover[2]
     254          << "  dN = " << setprecision(4) << output._neu[0]     
     255          << "  dE = " << setprecision(4) << output._neu[1]     
     256          << "  dU = " << setprecision(4) << output._neu[2];
     257    }
     258
     259    emit newMessage(QByteArray(log.str().c_str()), true);
    244260  }
    245261}
  • trunk/BNC/src/bncwindow.cpp

    r5976 r5980  
    18151815void bncWindow::slotWindowMessage(const QByteArray msg, bool showOnScreen) {
    18161816  if (showOnScreen ) {
    1817     _log->append(QDateTime::currentDateTime().toUTC().toString("yy-MM-dd hh:mm:ss ") + msg + '\n');
     1817    _log->append(QDateTime::currentDateTime().toUTC().toString("yy-MM-dd hh:mm:ss ") + msg);
    18181818  }
    18191819
Note: See TracChangeset for help on using the changeset viewer.