Changeset 219 in ntrip for trunk


Ignore:
Timestamp:
Oct 6, 2006, 6:05:23 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM/RTCM2.cpp

    r218 r219  
    10861086            obs->SVPRN          = _ObsBlock.PRN[iSat];
    10871087            obs->GPSWeek        = epochWeek;
    1088             obs->GPSWeeks       = (int) epochSecs;
     1088            obs->GPSWeeks       = int(floor(epochSecs+0.5));
    10891089            obs->sec            = _ObsBlock.secs;
    10901090            obs->pCodeIndicator = 0;
  • trunk/BNC/bncutils.cpp

    r218 r219  
    8585                     + gmt->tm_hour ) / 24.0;
    8686
    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);
    9388
    9489  MJD_GPSWeeks(mjd, week, sec);
  • trunk/BNC/bncutils.h

    r210 r219  
    1010QDateTime dateAndTimeFromGPSweek(int GPSWeek, double GPSWeeks);
    1111
    12 void gpsWeekAndSec(int& week, double& sec);
     12double MJD(int year, int month, double day);
     13void MJD_GPSWeeks(double mjd, int& week, double& second);
     14void currentGPSWeeks(int& week, double& sec);
    1315
    1416#endif
Note: See TracChangeset for help on using the changeset viewer.