Changeset 852 in ntrip
- Timestamp:
- Apr 25, 2008, 1:31:46 PM (17 years ago)
- Location:
- trunk/BNS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bnsoutf.cpp
r851 r852 38 38 _path += QDir::separator(); 39 39 } 40 41 _lastGPSweek = 0; 42 _lastGPSweeks = 0.0; 40 43 } 41 44 -
trunk/BNS/bnsoutf.h
r851 r852 18 18 virtual void writeHeader(const QDateTime& datTim) = 0; 19 19 std::ofstream _out; 20 int _lastGPSweek; 21 double _lastGPSweeks; 20 22 21 23 private: -
trunk/BNS/bnssp3.cpp
r850 r852 17 17 18 18 #include <iomanip> 19 #include <math.h> 19 20 20 21 #include "bnssp3.h" … … 38 39 //////////////////////////////////////////////////////////////////////////// 39 40 void bnsSP3::writeHeader(const QDateTime& datTim) { 40 _out << "THIS IS A DUMMY HEADER" << endl; 41 _out << "THIS IS A DUMMY SP3 HEADER" << endl; 41 42 } 42 43 … … 48 49 bnsoutf::write(GPSweek, GPSweeks, prn, xx); 49 50 50 int year, month, day, hour, min; 51 double sec; 51 if (_lastGPSweek != GPSweek || _lastGPSweeks != GPSweeks) { 52 _lastGPSweek = GPSweek; 53 _lastGPSweeks = GPSweeks; 52 54 53 _out << "* " << setw(4) << year 54 << setw(3) << month 55 << setw(3) << day 56 << setw(3) << hour 57 << setw(3) << min 58 << setw(12) << setprecision(8) << sec << endl; 55 QDateTime datTim = dateAndTimeFromGPSweek(GPSweek, GPSweeks); 56 double sec = fmod(GPSweeks, 60.0); 57 58 _out << "* " 59 << datTim.toString("yyyy MM dd hh mm").toAscii().data() 60 << setw(12) << setprecision(8) << sec << endl; 61 } 59 62 _out << "P" << prn.toAscii().data() 60 63 << setw(14) << setprecision(6) << xx(1) / 1000.0 61 64 << setw(14) << setprecision(6) << xx(2) / 1000.0 62 65 << setw(14) << setprecision(6) << xx(3) / 1000.0 63 << " 999999.999999"<< endl;66 << setw(14) << setprecision(6) << xx(4) * 1e6 << endl; 64 67 }
Note:
See TracChangeset
for help on using the changeset viewer.