Changeset 8373 in ntrip for branches/BNC_2.12/src/bnctime.cpp


Ignore:
Timestamp:
Jun 13, 2018, 2:46:20 PM (3 years ago)
Author:
stuerze
Message:

minor changes to allow 10 Hz observation data processing (latency checker) and resampling (RINEX files, feed engine)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/bnctime.cpp

    r7138 r8373  
    3737  int  deltad;
    3838  int  dow = 0;
    39   while ( gpssec >= 86400 ) {
    40     gpssec-=86400;
     39  while ( gpssec >= 86400.0 ) {
     40    gpssec-=86400.0;
    4141    dow++;
    4242  }
    43   while ( gpssec <  0 ) {
    44     gpssec+=86400;
     43  while ( gpssec <  0.0 ) {
     44    gpssec+=86400.0;
    4545    dow--;
    4646  }
     
    5959  gpssec += 14.0;
    6060  gpsw   += 1356.0;
    61   while ( gpssec >= 86400 ) {
    62     gpssec-=86400;
     61  while ( gpssec >= 86400.0 ) {
     62    gpssec-=86400.0;
    6363    dow++;
    6464  }
    65   while ( gpssec <  0 ) {
    66     gpssec+=86400;
     65  while ( gpssec <  0.0 ) {
     66    gpssec+=86400.0;
    6767    dow--;
    6868  }
     
    142142  _sec = daysec;
    143143  _mjd = mjd;
    144   while ( _sec >= 86400 ) {
    145     _sec-=86400;
     144  while ( _sec >= 86400.0 ) {
     145    _sec-=86400.0;
    146146    _mjd++;
    147147  }
    148   while ( _sec <  0 ) {
    149     _sec+=86400;
     148  while ( _sec <  0.0 ) {
     149    _sec+=86400.0;
    150150    _mjd--;
    151151  }
Note: See TracChangeset for help on using the changeset viewer.