Index: trunk/rtcm3torinex/rtcm3torinex.c
===================================================================
--- trunk/rtcm3torinex/rtcm3torinex.c	(revision 80)
+++ trunk/rtcm3torinex/rtcm3torinex.c	(revision 81)
@@ -1,5 +1,5 @@
 /*
   Converter for RTCM3 data to RINEX.
-  $Id: rtcm3torinex.c,v 1.3 2006/04/20 08:37:23 stoecker Exp $
+  $Id: rtcm3torinex.c,v 1.4 2006/05/08 09:25:11 stoecker Exp $
   Copyright (C) 2005-2006 by Dirk Stoecker <stoecker@euronav.de>
 
@@ -42,6 +42,6 @@
 
 /* CVS revision and version */
-static char revisionstr[] = "$Revision: 1.3 $";
-static char datestr[]     = "$Date: 2006/04/20 08:37:23 $";
+static char revisionstr[] = "$Revision: 1.4 $";
+static char datestr[]     = "$Date: 2006/05/08 09:25:11 $";
 static int stop = 0;
 
@@ -115,4 +115,9 @@
 #define GNSSDF_LOCKLOSSL1     (1<<29)  /* lost lock on L1 */
 #define GNSSDF_LOCKLOSSL2     (1<<30)  /* lost lock on L2 */
+#define LIGHTSPEED         2.99792458e8  /* m/sec */
+#define GPS_FREQU_L1       1575420000.0  /* Hz */
+#define GPS_FREQU_L2       1227600000.0  /* Hz */
+#define GPS_WAVELENGTH_L1  (LIGHTSPEED / GPS_FREQU_L1) /* m */
+#define GPS_WAVELENGTH_L2  (LIGHTSPEED / GPS_FREQU_L2) /* m */
 
 struct gnssdata {
@@ -478,4 +483,5 @@
             }
           }
+          gnss->measdata[num][le] /= GPS_WAVELENGTH_L1;
           if(type == 1003 || type == 1004)
           {
@@ -525,4 +531,5 @@
               }
             }
+            gnss->measdata[num][le] /= GPS_WAVELENGTH_L2;
           }
         }
