Changeset 517 in ntrip


Ignore:
Timestamp:
Oct 18, 2007, 1:00:50 PM (17 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r516 r517  
    140140  QMutexLocker locker(&_mutex);
    141141
     142  if (!_ephStream) {
     143    delete gpseph;
     144    return;
     145  }
     146
    142147  gpsephemeris** ee = &_gpsEph[gpseph->satellite-PRN_GPS_START];
    143148  if ( *ee == 0 || (*ee)->IODE != gpseph->IODE ) {
    144     cout << "new GPS: " << gpseph->satellite << endl;
    145149    delete *ee;
    146150    *ee = gpseph;
     
    148152  }
    149153  else {
    150     cout << "GPS: " << gpseph->satellite << endl;
    151154    delete gpseph;
    152155  }
     
    159162  QMutexLocker locker(&_mutex);
    160163
    161   cout << "GLONASS: " << glonasseph->almanac_number << endl;
     164  if (!_ephStream) {
     165    delete glonasseph;
     166    return;
     167  }
     168
    162169  delete glonasseph;
    163170}
     
    166173////////////////////////////////////////////////////////////////////////////
    167174void bncApp::printEphHeader() {
    168 
     175  if (_ephStream) {
     176    *_ephStream << QDate::currentDate().toString("yy-MM-dd ").toAscii().data();
     177    *_ephStream << QTime::currentTime().toString("hh:mm:ss ").toAscii().data();
     178    _ephFile->flush();
     179  }
    169180}
    170181
     
    172183////////////////////////////////////////////////////////////////////////////
    173184void bncApp::printGPSEph(gpsephemeris* ep) {
    174 
     185  if (_ephStream) {
     186    *_ephStream << "GPS: "  << ep->satellite << endl;
     187    _ephFile->flush();
     188  }
    175189}
    176190
     
    178192////////////////////////////////////////////////////////////////////////////
    179193void bncApp::printGlonassEph(glonassephemeris* ep) {
    180 
     194  if (_ephStream) {
     195    *_ephStream << "GLONASS: "  << ep->almanac_number << endl;
     196    _ephFile->flush();
     197  }
    181198}
Note: See TracChangeset for help on using the changeset viewer.