- Timestamp:
- Oct 6, 2006, 6:05:23 PM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM/RTCM2.cpp
r218 r219 1086 1086 obs->SVPRN = _ObsBlock.PRN[iSat]; 1087 1087 obs->GPSWeek = epochWeek; 1088 obs->GPSWeeks = (int) epochSecs;1088 obs->GPSWeeks = int(floor(epochSecs+0.5)); 1089 1089 obs->sec = _ObsBlock.secs; 1090 1090 obs->pCodeIndicator = 0; -
trunk/BNC/bncutils.cpp
r218 r219 85 85 + gmt->tm_hour ) / 24.0; 86 86 87 double mjd = MJD(1900+gmt->tm_year, gmt->tm_mon+1, gmt->tm_mday+1+dayFrac); 88 89 cout << 1900+gmt->tm_year << " " << gmt->tm_mon+1 << " " << gmt->tm_mday+1 90 << " " << gmt->tm_hour 91 << " " << gmt->tm_min 92 << " " << gmt->tm_sec << endl; 87 double mjd = MJD(1900+gmt->tm_year, gmt->tm_mon+1, gmt->tm_mday+dayFrac); 93 88 94 89 MJD_GPSWeeks(mjd, week, sec); -
trunk/BNC/bncutils.h
r210 r219 10 10 QDateTime dateAndTimeFromGPSweek(int GPSWeek, double GPSWeeks); 11 11 12 void gpsWeekAndSec(int& week, double& sec); 12 double MJD(int year, int month, double day); 13 void MJD_GPSWeeks(double mjd, int& week, double& second); 14 void currentGPSWeeks(int& week, double& sec); 13 15 14 16 #endif
Note:
See TracChangeset
for help on using the changeset viewer.