Changeset 5980 in ntrip for trunk/BNC/src/PPP


Ignore:
Timestamp:
Aug 17, 2014, 2:32:50 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.