Changeset 81 in ntrip


Ignore:
Timestamp:
Aug 29, 2006, 5:42:36 PM (18 years ago)
Author:
stoecker
Message:

fixed unit of measurement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rtcm3torinex/rtcm3torinex.c

    r33 r81  
    11/*
    22  Converter for RTCM3 data to RINEX.
    3   $Id: rtcm3torinex.c,v 1.3 2006/04/20 08:37:23 stoecker Exp $
     3  $Id: rtcm3torinex.c,v 1.4 2006/05/08 09:25:11 stoecker Exp $
    44  Copyright (C) 2005-2006 by Dirk Stoecker <stoecker@euronav.de>
    55
     
    4242
    4343/* CVS revision and version */
    44 static char revisionstr[] = "$Revision: 1.3 $";
    45 static char datestr[]     = "$Date: 2006/04/20 08:37:23 $";
     44static char revisionstr[] = "$Revision: 1.4 $";
     45static char datestr[]     = "$Date: 2006/05/08 09:25:11 $";
    4646static int stop = 0;
    4747
     
    115115#define GNSSDF_LOCKLOSSL1     (1<<29)  /* lost lock on L1 */
    116116#define GNSSDF_LOCKLOSSL2     (1<<30)  /* lost lock on L2 */
     117#define LIGHTSPEED         2.99792458e8  /* m/sec */
     118#define GPS_FREQU_L1       1575420000.0  /* Hz */
     119#define GPS_FREQU_L2       1227600000.0  /* Hz */
     120#define GPS_WAVELENGTH_L1  (LIGHTSPEED / GPS_FREQU_L1) /* m */
     121#define GPS_WAVELENGTH_L2  (LIGHTSPEED / GPS_FREQU_L2) /* m */
    117122
    118123struct gnssdata {
     
    478483            }
    479484          }
     485          gnss->measdata[num][le] /= GPS_WAVELENGTH_L1;
    480486          if(type == 1003 || type == 1004)
    481487          {
     
    525531              }
    526532            }
     533            gnss->measdata[num][le] /= GPS_WAVELENGTH_L2;
    527534          }
    528535        }
Note: See TracChangeset for help on using the changeset viewer.