Changeset 7539


Ignore:
Timestamp:
07/05/18 13:12:30 (2 weeks ago)
Author:
paulf
Message:

version 2.48 of k2ew with 1024 week gps rollover fixed

Location:
trunk/src/data_sources/k2ew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/data_sources/k2ew/k2ewmain.c

    r7371 r7539  
    332332#include "glbvars.h"         /* externs to globals & 'K2_MAX_STREAMS' define */ 
    333333 
    334 #define K2EW_VERSION_STR "2.47 2018-04-25" /* version string for program */ 
     334#define K2EW_VERSION_STR "2.48 2018-07-05 - gps rollover fix" /* version string for program */ 
    335335 
    336336#define K2_STMDEBUG_FLG 0       /* 1 for stream input debug display enabled */ 
  • trunk/src/data_sources/k2ew/outptthrd.c

    r7291 r7539  
    168168      starttime = (double)(timestamp + K2_TIME_CONV) + (double)msec * 0.001; 
    169169 
     170      /* check for 1024 week rollover glitch 2018/2019   jr 01jul2018 */ 
     171      if (starttime > 911143558 && starttime < 1530403744 ) 
     172      { 
     173        starttime += 619315200;   /* add 1024 weeks of seconds */ 
     174      } 
     175 
    170176      /* Check packet time; reject packets older than 1981, which would mean 
    171177       * the K2 clock has reset to 0 (1 Jan 1980 in KMI land; 31536000 is 
Note: See TracChangeset for help on using the changeset viewer.