- Timestamp:
- Aug 8, 2010, 4:57:47 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpppclient.cpp
r2548 r2549 41 41 #include <newmatio.h> 42 42 #include <iomanip> 43 #include <sstream> 43 44 44 45 #include "bncpppclient.h" … … 54 55 55 56 using namespace std; 57 58 ////#define DEBUG_OUTPUT 56 59 57 60 // Constructor … … 126 129 t_obsInternal* obs = &(pp->_o); 127 130 131 #ifdef DEBUG_OUTPUT 132 ostringstream str; 133 str.setf(ios::fixed); 134 str << "bncPPPclient::putNewObs: " << obs->satSys << obs->satNum; 135 emit newMessage(QByteArray(str.str().c_str()), false); 136 #endif 137 128 138 if (obs->satSys != 'G' && !_useGlonass) { 129 139 return; … … 249 259 QString prn = QString("G%1").arg(gpseph.satellite, 2, 10, QChar('0')); 250 260 261 #ifdef DEBUG_OUTPUT 262 ostringstream str; 263 str.setf(ios::fixed); 264 str << "bncPPPclient::slotNewEphGPS: " << prn.toAscii().data(); 265 emit newMessage(QByteArray(str.str().c_str()), false); 266 #endif 267 251 268 if (_eph.contains(prn)) { 252 269 t_ephGPS* ee = static_cast<t_ephGPS*>(_eph.value(prn)); … … 270 287 271 288 QString prn = QString("R%1").arg(gloeph.almanac_number, 2, 10, QChar('0')); 289 290 #ifdef DEBUG_OUTPUT 291 ostringstream str; 292 str.setf(ios::fixed); 293 str << "bncPPPclient::slotNewEphGlonass: " << prn.toAscii().data(); 294 emit newMessage(QByteArray(str.str().c_str()), false); 295 #endif 272 296 273 297 if (_eph.contains(prn)) { … … 296 320 return; 297 321 } 322 323 #ifdef DEBUG_OUTPUT 324 ostringstream str; 325 str.setf(ios::fixed); 326 str << "bncPPPclient::slotNewCorrections: "; 327 #endif 298 328 299 329 // Remove All Corrections … … 332 362 333 363 cc->tt.set(GPSweek, GPSweeks); 364 365 #ifdef DEBUG_OUTPUT 366 str << prn.toAscii().data() << " "; 367 #endif 334 368 335 369 if ( messageType == COTYPE_GPSCOMBINED || … … 407 441 } 408 442 443 #ifdef DEBUG_OUTPUT 444 emit newMessage(QByteArray(str.str().c_str()), false); 445 #endif 446 409 447 QMutableMapIterator<QString, t_corr*> im(_corr); 410 448 while (im.hasNext()) {
Note:
See TracChangeset
for help on using the changeset viewer.