Changeset 320 in ntrip for trunk/BNC/RTCM3/rtcm3torinex.h


Ignore:
Timestamp:
Nov 15, 2006, 7:32:49 PM (17 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM3/rtcm3torinex.h

    r282 r320  
    44/*
    55  Converter for RTCM3 data to RINEX.
    6   $Id: rtcm3torinex.h,v 1.1 2006/11/02 13:34:00 stoecker Exp $
     6  $Id: rtcm3torinex.h,v 1.3 2006/11/15 12:31:31 stoecker Exp $
    77  Copyright (C) 2005-2006 by Dirk Stoecker <stoecker@euronik.eu>
    88
     
    2727#define PRN_GLONASS_START         38
    2828#define PRN_GLONASS_END           61
     29#define PRN_WAAS_START            120
     30#define PRN_WAAS_END              138
    2931
    3032#define GNSSENTRY_C1DATA     0
     
    7779#define RINEXENTRY_NUMBER     10
    7880
    79 #define LIGHTSPEED         2.99792458e8    /* m/sec                                           */
     81#define LIGHTSPEED         2.99792458e8    /* m/sec */
    8082#define GPS_FREQU_L1       1575420000.0  /* Hz */
    8183#define GPS_FREQU_L2       1227600000.0  /* Hz */
    8284#define GPS_WAVELENGTH_L1  (LIGHTSPEED / GPS_FREQU_L1) /* m */
    8385#define GPS_WAVELENGTH_L2  (LIGHTSPEED / GPS_FREQU_L2) /* m */
     86
     87#define GLO_FREQU_L1_BASE  1602000000.0  /* Hz */
     88#define GLO_FREQU_L2_BASE  1246000000.0  /* Hz */
     89#define GLO_FREQU_L1_STEP      562500.0  /* Hz */
     90#define GLO_FREQU_L2_STEP      437500.0  /* Hz */
     91#define GLO_FREQU_L1(a)      (GLO_FREQU_L1_BASE+(a)*GLO_FREQU_L1_STEP)
     92#define GLO_FREQU_L2(a)      (GLO_FREQU_L2_BASE+(a)*GLO_FREQU_L2_STEP)
     93#define GLO_WAVELENGTH_L1(a) (LIGHTSPEED / GLO_FREQU_L1(a)) /* m */
     94#define GLO_WAVELENGTH_L2(a) (LIGHTSPEED / GLO_FREQU_L2(a)) /* m */
    8495
    8596/* unimportant, only for approx. time needed */
     
    110121  int    GPSTOW;        /* in seconds */
    111122  struct gnssdata Data;
     123  struct gnssdata DataNew;
    112124  int    size;
    113125  int    lastlockl1[64];
     
    118130  int    validwarning;
    119131  int    init;
     132  int    startflags;
    120133  const char * headerfile;
    121134};
    122135
    123 struct converttimeinfo {
    124   int second;    /* seconds of GPS time [0..59] */
    125   int minute;    /* minutes of GPS time [0..59] */
    126   int hour;      /* hour of GPS time [0..24] */
    127   int day;       /* day of GPS time [1..28..30(31)*/
    128   int month;     /* month of GPS time [1..12]*/
    129   int year;      /* year of GPS time [1980..] */
    130 };
     136#ifndef PRINTFARG
     137#ifdef __GNUC__
     138#define PRINTFARG(a,b) __attribute__ ((format(printf, a, b)))
     139#else /* __GNUC__ */
     140#define PRINTFARG(a,b)
     141#endif /* __GNUC__ */
     142#endif /* PRINTFARG */
    131143
    132144void HandleHeader(struct RTCM3ParserData *Parser);
    133145int RTCM3Parser(struct RTCM3ParserData *handle);
    134146void HandleByte(struct RTCM3ParserData *Parser, unsigned int byte);
    135 void converttime(struct converttimeinfo *c, int week, int tow);
     147void PRINTFARG(1,2) RTCM3Error(const char *fmt, ...);
     148void PRINTFARG(1,2) RTCM3Text(const char *fmt, ...);
    136149
    137150#endif /* RTCM3TORINEX_H */
Note: See TracChangeset for help on using the changeset viewer.