Changeset 265 in ntrip for trunk/BNC/RTCM


Ignore:
Timestamp:
Nov 1, 2006, 11:27:42 AM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

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

    r254 r265  
    11011101
    11021102  epochWeek = refWeek;
    1103   epochSecs = secs + 3600.0*(floor((refSecs-secs)/3600.0+0.5));
     1103
     1104  epochSecs = secs;
     1105  while (epochSecs < refSecs - 1800) {
     1106    epochSecs += 3600;
     1107  }
     1108  while (epochSecs > refSecs + 1800) {
     1109    epochSecs -= 3600;
     1110  }
     1111
     1112  ////  epochSecs = secs + 3600.0*(floor((refSecs-secs)/3600.0+0.5));
    11041113 
    11051114  if (epochSecs<0          ) { epochWeek--; epochSecs+=secsPerWeek; };
Note: See TracChangeset for help on using the changeset viewer.