Changeset 4417 in ntrip for trunk/rtcm3torinex


Ignore:
Timestamp:
Jul 9, 2012, 2:55:54 PM (8 years ago)
Author:
stoecker
Message:

added support functions

Location:
trunk/rtcm3torinex/lib
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/rtcm3torinex/lib/rtcm3torinex.c

    r4383 r4417  
    22  Converter for RTCM3 data to RINEX.
    33  $Id$
    4   Copyright (C) 2005-2008 by Dirk Stöcker <stoecker@alberding.eu>
     4  Copyright (C) 2005-2012 by Dirk Stöcker <stoecker@alberding.eu>
    55
    66  This software is a complete NTRIP-RTCM3 to RINEX converter as well as
  • trunk/rtcm3torinex/lib/rtcm3torinex.h

    r4374 r4417  
    55  Converter for RTCM3 data to RINEX.
    66  $Id$
    7   Copyright (C) 2005-2006 by Dirk Stöcker <stoecker@alberding.eu>
     7  Copyright (C) 2005-2012 by Dirk Stöcker <stoecker@alberding.eu>
    88
    99  This program is free software; you can redistribute it and/or modify
     
    6666#define GNSSENTRY_SNR     3
    6767
    68 #define GNSSENTRY_C1DATA     ((0<<2)+GNSSENTRY_CODE)
    69 #define GNSSENTRY_L1CDATA    ((0<<2)+GNSSENTRY_PHASE)
    70 #define GNSSENTRY_D1CDATA    ((0<<2)+GNSSENTRY_DOPPLER)
    71 #define GNSSENTRY_S1CDATA    ((0<<2)+GNSSENTRY_SNR)
    72 
    73 #define GNSSENTRY_C2DATA     ((1<<2)+GNSSENTRY_CODE)
    74 #define GNSSENTRY_L2CDATA    ((1<<2)+GNSSENTRY_PHASE)
    75 #define GNSSENTRY_D2CDATA    ((1<<2)+GNSSENTRY_DOPPLER)
    76 #define GNSSENTRY_S2CDATA    ((1<<2)+GNSSENTRY_SNR)
     68#define GNSSENTRY_TYPEC1    (0<<2)
     69#define GNSSENTRY_TYPEC2    (1<<2)
     70#define GNSSENTRY_TYPEP1    (2<<2)
     71#define GNSSENTRY_TYPEP2    (3<<2)
     72#define GNSSENTRY_TYPEC5    (4<<2)
     73#define GNSSENTRY_TYPEC6    (5<<2)
     74#define GNSSENTRY_TYPEC5B   (6<<2)
     75#define GNSSENTRY_TYPEC5AB  (7<<2)
     76#define GNSSENTRY_TYPECSAIF (8<<2)
     77#define GNSSENTRY_TYPEC1N   (9<<2)
     78
     79#define GNSSENTRY_C1DATA     (GNSSENTRY_TYPEC1+GNSSENTRY_CODE)
     80#define GNSSENTRY_L1CDATA    (GNSSENTRY_TYPEC1+GNSSENTRY_PHASE)
     81#define GNSSENTRY_D1CDATA    (GNSSENTRY_TYPEC1+GNSSENTRY_DOPPLER)
     82#define GNSSENTRY_S1CDATA    (GNSSENTRY_TYPEC1+GNSSENTRY_SNR)
     83
     84#define GNSSENTRY_C2DATA     (GNSSENTRY_TYPEC2+GNSSENTRY_CODE)
     85#define GNSSENTRY_L2CDATA    (GNSSENTRY_TYPEC2+GNSSENTRY_PHASE)
     86#define GNSSENTRY_D2CDATA    (GNSSENTRY_TYPEC2+GNSSENTRY_DOPPLER)
     87#define GNSSENTRY_S2CDATA    (GNSSENTRY_TYPEC2+GNSSENTRY_SNR)
    7788
    7889#define GNSSENTRY_CB1DATA    GNSSENTRY_C2DATA
     
    8192#define GNSSENTRY_SB1DATA    GNSSENTRY_S2CDATA
    8293
    83 #define GNSSENTRY_P1DATA     ((2<<2)+GNSSENTRY_CODE)
    84 #define GNSSENTRY_L1PDATA    ((2<<2)+GNSSENTRY_PHASE)
    85 #define GNSSENTRY_D1PDATA    ((2<<2)+GNSSENTRY_DOPPLER)
    86 #define GNSSENTRY_S1PDATA    ((2<<2)+GNSSENTRY_SNR)
    87 
    88 #define GNSSENTRY_P2DATA     ((3<<2)+GNSSENTRY_CODE)
    89 #define GNSSENTRY_L2PDATA    ((3<<2)+GNSSENTRY_PHASE)
    90 #define GNSSENTRY_D2PDATA    ((3<<2)+GNSSENTRY_DOPPLER)
    91 #define GNSSENTRY_S2PDATA    ((3<<2)+GNSSENTRY_SNR)
    92 
    93 #define GNSSENTRY_C5DATA     ((4<<2)+GNSSENTRY_CODE)
    94 #define GNSSENTRY_L5DATA     ((4<<2)+GNSSENTRY_PHASE)
    95 #define GNSSENTRY_D5DATA     ((4<<2)+GNSSENTRY_DOPPLER)
    96 #define GNSSENTRY_S5DATA     ((4<<2)+GNSSENTRY_SNR)
    97 
    98 #define GNSSENTRY_C6DATA     ((5<<2)+GNSSENTRY_CODE)
    99 #define GNSSENTRY_L6DATA     ((5<<2)+GNSSENTRY_PHASE)
    100 #define GNSSENTRY_D6DATA     ((5<<2)+GNSSENTRY_DOPPLER)
    101 #define GNSSENTRY_S6DATA     ((5<<2)+GNSSENTRY_SNR)
     94#define GNSSENTRY_P1DATA     (GNSSENTRY_TYPEP1+GNSSENTRY_CODE)
     95#define GNSSENTRY_L1PDATA    (GNSSENTRY_TYPEP1+GNSSENTRY_PHASE)
     96#define GNSSENTRY_D1PDATA    (GNSSENTRY_TYPEP1+GNSSENTRY_DOPPLER)
     97#define GNSSENTRY_S1PDATA    (GNSSENTRY_TYPEP1+GNSSENTRY_SNR)
     98
     99#define GNSSENTRY_P2DATA     (GNSSENTRY_TYPEP2+GNSSENTRY_CODE)
     100#define GNSSENTRY_L2PDATA    (GNSSENTRY_TYPEP2+GNSSENTRY_PHASE)
     101#define GNSSENTRY_D2PDATA    (GNSSENTRY_TYPEP2+GNSSENTRY_DOPPLER)
     102#define GNSSENTRY_S2PDATA    (GNSSENTRY_TYPEP2+GNSSENTRY_SNR)
     103
     104#define GNSSENTRY_C5DATA     (GNSSENTRY_TYPEC5+GNSSENTRY_CODE)
     105#define GNSSENTRY_L5DATA     (GNSSENTRY_TYPEC5+GNSSENTRY_PHASE)
     106#define GNSSENTRY_D5DATA     (GNSSENTRY_TYPEC5+GNSSENTRY_DOPPLER)
     107#define GNSSENTRY_S5DATA     (GNSSENTRY_TYPEC5+GNSSENTRY_SNR)
     108
     109#define GNSSENTRY_C6DATA     (GNSSENTRY_TYPEC6+GNSSENTRY_CODE)
     110#define GNSSENTRY_L6DATA     (GNSSENTRY_TYPEC6+GNSSENTRY_PHASE)
     111#define GNSSENTRY_D6DATA     (GNSSENTRY_TYPEC6+GNSSENTRY_DOPPLER)
     112#define GNSSENTRY_S6DATA     (GNSSENTRY_TYPEC6+GNSSENTRY_SNR)
    102113
    103114#define GNSSENTRY_CB3DATA    GNSSENTRY_C6DATA
     
    111122#define GNSSENTRY_SLEXDATA   GNSSENTRY_S6DATA
    112123
    113 #define GNSSENTRY_C5BDATA    ((6<<2)+GNSSENTRY_CODE)
    114 #define GNSSENTRY_L5BDATA    ((6<<2)+GNSSENTRY_PHASE)
    115 #define GNSSENTRY_D5BDATA    ((6<<2)+GNSSENTRY_DOPPLER)
    116 #define GNSSENTRY_S5BDATA    ((6<<2)+GNSSENTRY_SNR)
     124#define GNSSENTRY_C5BDATA    (GNSSENTRY_TYPEC5B+GNSSENTRY_CODE)
     125#define GNSSENTRY_L5BDATA    (GNSSENTRY_TYPEC5B+GNSSENTRY_PHASE)
     126#define GNSSENTRY_D5BDATA    (GNSSENTRY_TYPEC5B+GNSSENTRY_DOPPLER)
     127#define GNSSENTRY_S5BDATA    (GNSSENTRY_TYPEC5B+GNSSENTRY_SNR)
    117128
    118129#define GNSSENTRY_CB2DATA    GNSSENTRY_C5BDATA
     
    121132#define GNSSENTRY_SB2DATA    GNSSENTRY_S5BDATA
    122133
    123 #define GNSSENTRY_C5ABDATA   ((7<<2)+GNSSENTRY_CODE)
    124 #define GNSSENTRY_L5ABDATA   ((7<<2)+GNSSENTRY_PHASE)
    125 #define GNSSENTRY_D5ABDATA   ((7<<2)+GNSSENTRY_DOPPLER)
    126 #define GNSSENTRY_S5ABDATA   ((7<<2)+GNSSENTRY_SNR)
    127 
    128 #define GNSSENTRY_CSAIFDATA  ((8<<2)+GNSSENTRY_CODE)
    129 #define GNSSENTRY_LSAIFDATA  ((8<<2)+GNSSENTRY_PHASE)
    130 #define GNSSENTRY_DSAIFDATA  ((8<<2)+GNSSENTRY_DOPPLER)
    131 #define GNSSENTRY_SSAIFDATA  ((8<<2)+GNSSENTRY_SNR)
    132 
    133 #define GNSSENTRY_C1NDATA    ((9<<2)+GNSSENTRY_CODE)
    134 #define GNSSENTRY_L1NDATA    ((9<<2)+GNSSENTRY_PHASE)
    135 #define GNSSENTRY_D1NDATA    ((9<<2)+GNSSENTRY_DOPPLER)
    136 #define GNSSENTRY_S1NDATA    ((9<<2)+GNSSENTRY_SNR)
     134#define GNSSENTRY_C5ABDATA   (GNSSENTRY_TYPEC5AB+GNSSENTRY_CODE)
     135#define GNSSENTRY_L5ABDATA   (GNSSENTRY_TYPEC5AB+GNSSENTRY_PHASE)
     136#define GNSSENTRY_D5ABDATA   (GNSSENTRY_TYPEC5AB+GNSSENTRY_DOPPLER)
     137#define GNSSENTRY_S5ABDATA   (GNSSENTRY_TYPEC5AB+GNSSENTRY_SNR)
     138
     139#define GNSSENTRY_CSAIFDATA  (GNSSENTRY_TYPECSAIF+GNSSENTRY_CODE)
     140#define GNSSENTRY_LSAIFDATA  (GNSSENTRY_TYPECSAIF+GNSSENTRY_PHASE)
     141#define GNSSENTRY_DSAIFDATA  (GNSSENTRY_TYPECSAIF+GNSSENTRY_DOPPLER)
     142#define GNSSENTRY_SSAIFDATA  (GNSSENTRY_TYPECSAIF+GNSSENTRY_SNR)
     143
     144#define GNSSENTRY_C1NDATA    (GNSSENTRY_TYPEC1N+GNSSENTRY_CODE)
     145#define GNSSENTRY_L1NDATA    (GNSSENTRY_TYPEC1N+GNSSENTRY_PHASE)
     146#define GNSSENTRY_D1NDATA    (GNSSENTRY_TYPEC1N+GNSSENTRY_DOPPLER)
     147#define GNSSENTRY_S1NDATA    (GNSSENTRY_TYPEC1N+GNSSENTRY_SNR)
    137148
    138149#define GNSSENTRY_NUMBER     40 /* number of types!!! */
Note: See TracChangeset for help on using the changeset viewer.