Changeset 4296 in ntrip
- Timestamp:
- Jun 23, 2012, 8:17:01 AM (13 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/src/bncsp3.cpp ¶
r4278 r4296 28 28 bncSP3::bncSP3(const QString& sklFileName, const QString& intr, int sampl) 29 29 : bncoutf(sklFileName, intr, sampl) { 30 31 _lastGPSweek = 0;32 _lastGPSweeks = 0.0;33 30 } 34 31 … … 45 42 if (reopen(GPSweek, GPSweeks) == success) { 46 43 47 if (_lastGPSweek != GPSweek || _lastGPSweeks != GPSweeks) { 48 _lastGPSweek = GPSweek; 49 _lastGPSweeks = GPSweeks; 50 51 QDateTime datTim = dateAndTimeFromGPSweek(GPSweek, GPSweeks); 52 double sec = fmod(GPSweeks, 60.0); 53 54 _out << datTim.toString("* yyyy MM dd hh mm").toAscii().data() 55 << setw(12) << setprecision(8) << sec << endl; 44 bncTime epoTime(GPSweek, GPSweeks); 45 46 if (epoTime != _lastEpoTime) { 47 48 // Check the sampling interval (print empty epochs) 49 // ------------------------------------------------ 50 if (_lastEpoTime.valid()) { 51 for (bncTime ep = _lastEpoTime +_sampl; ep < epoTime; ep = ep +_sampl) { 52 _out << "* " << ep.datestr(' ') << ep.timestr(8, ' ') << endl; 53 } 54 } 55 56 // Print the new epoch 57 // ------------------- 58 _out << "* " << epoTime.datestr(' ') << epoTime.timestr(8, ' ') << endl; 59 60 _lastEpoTime = epoTime; 56 61 } 62 57 63 _out << "P" << prn.toAscii().data() 58 64 << setw(14) << setprecision(6) << xx(1) / 1000.0 -
TabularUnified trunk/BNC/src/bncsp3.h ¶
r4278 r4296 7 7 8 8 #include "bncoutf.h" 9 #include "bnctime.h" 9 10 10 11 class bncSP3 : public bncoutf { … … 18 19 virtual void writeHeader(const QDateTime& datTim); 19 20 virtual void closeFile(); 20 int _lastGPSweek; 21 double _lastGPSweeks; 21 bncTime _lastEpoTime; 22 22 }; 23 23
Note:
See TracChangeset
for help on using the changeset viewer.