Changeset 1153 in ntrip for trunk/BNC/RTCM3
- Timestamp:
- Oct 7, 2008, 12:28:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3Decoder.cpp
r1130 r1153 63 63 //////////////////////////////////////////////////////////////////////////// 64 64 RTCM3Decoder::RTCM3Decoder(const QString& staID) : GPSDecoder() { 65 66 const int LEAPSECONDS = 14; /* only needed for approx. time */67 65 68 66 QSettings settings; … … 95 93 _Parser.rinex3 = 0; 96 94 97 time_t tim;98 tim = time(0) - ((10*365+2+5)*24*60*60 + LEAPSECONDS);99 100 95 memset(&_Parser, 0, sizeof(_Parser)); 101 _Parser.GPSWeek = tim/(7*24*60*60); 102 _Parser.GPSTOW = tim%(7*24*60*60); 96 97 double secGPS; 98 currentGPSWeeks(_Parser.GPSWeek, secGPS); 99 _Parser.GPSTOW = int(secGPS); 103 100 104 101 connect(this, SIGNAL(newGPSEph(gpsephemeris*)), … … 142 139 double sec; 143 140 _newSecGPS = _coDecoder->_epochList[ii]; 144 leapsecGPSWeeks(week, sec);141 currentGPSWeeks(week, sec); 145 142 double dt = fabs(sec - _newSecGPS); 146 143 const double secPerWeek = 7.0 * 24.0 * 3600.0;
Note:
See TracChangeset
for help on using the changeset viewer.