- Timestamp:
- Oct 18, 2007, 1:00:50 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r516 r517 140 140 QMutexLocker locker(&_mutex); 141 141 142 if (!_ephStream) { 143 delete gpseph; 144 return; 145 } 146 142 147 gpsephemeris** ee = &_gpsEph[gpseph->satellite-PRN_GPS_START]; 143 148 if ( *ee == 0 || (*ee)->IODE != gpseph->IODE ) { 144 cout << "new GPS: " << gpseph->satellite << endl;145 149 delete *ee; 146 150 *ee = gpseph; … … 148 152 } 149 153 else { 150 cout << "GPS: " << gpseph->satellite << endl;151 154 delete gpseph; 152 155 } … … 159 162 QMutexLocker locker(&_mutex); 160 163 161 cout << "GLONASS: " << glonasseph->almanac_number << endl; 164 if (!_ephStream) { 165 delete glonasseph; 166 return; 167 } 168 162 169 delete glonasseph; 163 170 } … … 166 173 //////////////////////////////////////////////////////////////////////////// 167 174 void 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 } 169 180 } 170 181 … … 172 183 //////////////////////////////////////////////////////////////////////////// 173 184 void bncApp::printGPSEph(gpsephemeris* ep) { 174 185 if (_ephStream) { 186 *_ephStream << "GPS: " << ep->satellite << endl; 187 _ephFile->flush(); 188 } 175 189 } 176 190 … … 178 192 //////////////////////////////////////////////////////////////////////////// 179 193 void bncApp::printGlonassEph(glonassephemeris* ep) { 180 194 if (_ephStream) { 195 *_ephStream << "GLONASS: " << ep->almanac_number << endl; 196 _ephFile->flush(); 197 } 181 198 }
Note:
See TracChangeset
for help on using the changeset viewer.