Changeset 8417 in ntrip for trunk/BNC/src/bnctime.cpp


Ignore:
Timestamp:
Jul 13, 2018, 1:14:18 PM (6 years ago)
Author:
stuerze
Message:

some changes to allow 10 Hz observation data real-time processing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnctime.cpp

    r8372 r8417  
    66#include <sstream>
    77#include <iomanip>
     8#include <iostream>
    89
    910#include "bnctime.h"
     
    8283  if(msec/1000.0 < sec - 86400.0)
    8384    ++week;
    84   return set(week, msec/1000.0);
     85  return set(week, double(msec/1000.0));
    8586}
    8687
     
    118119  intsec = sec;
    119120  updatetime(&week, &intsec, msec, 0); /* Moscow -> GPS */
    120   sec = intsec+(msec%1000)/1000.0;
     121  sec = intsec+double((msec%1000)/1000.0);
    121122  return set(week, sec);
    122123}
     
    132133    msec -= 7*24*60*60*1000;
    133134  currentGPSWeeks(week, sec);
    134   if(msec/1000.0 < sec - 86400.0)
     135  if((msec/1000.0) < (sec - 86400.0)) {
    135136    ++week;
    136   return set(week, msec/1000.0);
     137  }
     138  return set(week, double(msec/1000.0));
    137139}
    138140
Note: See TracChangeset for help on using the changeset viewer.