diff FXAnalyse.c @ 86:9daa5e2e4b11

Julian day is never used. Remove it
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Thu, 21 Mar 2013 12:02:06 +0100
parents 6ac1d3de1ae2
children 0950d4b3a45c
line wrap: on
line diff
--- a/FXAnalyse.c	Thu Mar 21 11:59:11 2013 +0100
+++ b/FXAnalyse.c	Thu Mar 21 12:02:06 2013 +0100
@@ -30,7 +30,6 @@
 char LogFileName[MAX_PATHNAME_LEN];
 
 double utc = 0;
-double mjd = 0;
 
 double Ch1, Ch2, Ch3, Ch4;
 double Math1, Math2, Math3, Math4, Math5;
@@ -202,7 +201,6 @@
                         	   "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
                         	   "+-*^/?<>=#!$%&|~'_");
 	mupDefineVar(parser, "UTC", &utc);
-	mupDefineVar(parser, "MJD", &mjd);
 	mupDefineVar(parser, "Ch1", &Ch1);
 	mupDefineVar(parser, "Ch2", &Ch2);
 	mupDefineVar(parser, "Ch3", &Ch3);
@@ -606,10 +604,7 @@
 				LocalTime.tm_isdst = -1;  // daylight saving flag MUST be set to -1 (unallocated is bugging and +1 is making 1 hour error in summer)
 				utcTime = mktime (&LocalTime);
 				utc = (double) utcTime + strtod(Sec,NULL);
-				mjd=utc/86400.;		//nb de jours depuis l'origine d'UTC (01/01/1900 à 00h00 GMT)
-				mjd+=15020;			//date MJD de la date origine d'UTC
 				SetCtrlVal(MainPanel, PANEL_UTC, utc);
-				SetCtrlVal(MainPanel, PANEL_MJD, mjd);
 				
 				// scan the line for counters's channels information