- Timestamp:
- Nov 19, 2011, 3:43:16 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/GPSS/hassDecoder.cpp
r3506 r3507 17 17 18 18 #include "hassDecoder.h" 19 #include "bnctime.h" 19 20 20 21 using namespace std; … … 62 63 >> deltaClk >> rateDeltaX >> rateDeltaY >> rateDeltaZ; 63 64 65 bncTime tt; 66 tt.setmjd(daySec, mjd); 67 68 _GPSweeks = tt.gpssec(); 69 long coTime = tt.gpsw() * 7*24*3600 + long(floor(_GPSweeks+0.5)); 70 71 QString corrLine; 72 73 int messageType = -1; 74 int updateInterval = 0; 75 76 corrLine.sprintf("%d %d %d %.1f %s" 77 " %3d" 78 " %8.3f %8.3f %8.3f %8.3f" 79 " %10.5f %10.5f %10.5f %10.5f" 80 " %10.5f", 81 messageType, updateInterval, tt.gpsw(), _GPSweeks, 82 prn.toAscii().data(), IOD, 83 deltaClk, deltaX, deltaY, deltaZ, 84 0.0, rateDeltaX, rateDeltaY, rateDeltaZ, 0.0); 85 86 printLine(corrLine, coTime); 64 87 } 65 88 -
trunk/BNC/bnctime.h
r2923 r3507 13 13 bncTime& set(int year, int month, int day, int hour, int min, double sec); 14 14 bncTime& set(int year, int month, int day, double daysec); 15 bncTime& setmjd(double daysec, int mjd); 15 16 16 17 unsigned int mjd() const; … … 37 38 38 39 private: 39 bncTime& setmjd(double daysec, int mjd);40 40 void reset() {_mjd = 0; _sec = 0;} 41 41
Note:
See TracChangeset
for help on using the changeset viewer.