Ignore:
Timestamp:
Jul 3, 2012, 2:10:38 PM (12 years ago)
Author:
stoecker
Message:

add RINEX3 code type support

File:
1 edited

Legend:

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

    r4369 r4371  
    2323*/
    2424
    25 #define RTCM3TORINEX_VERSION "1.50"
     25#define RTCM3TORINEX_VERSION "2"
    2626
    2727#include <stdio.h>
     
    5151#define RTCM3_MSM_NUMCELLS    64
    5252
    53 /* system identifiers, use start PRN as value */
    54 #define RTCM3_MSM_GPS     PRN_GPS_START
    55 #define RTCM3_MSM_GLONASS PRN_GLONASS_START
    56 #define RTCM3_MSM_GALILEO PRN_GALILEO_START
    57 #define RTCM3_MSM_SBAS    PRN_SBAS_START
    58 #define RTCM3_MSM_QZSS    PRN_QZSS_START
    59 #define RTCM3_MSM_COMPASS PRN_COMPASS_START
     53/* system identifiers */
     54#define RTCM3_MSM_GPS     0
     55#define RTCM3_MSM_GLONASS 1
     56#define RTCM3_MSM_GALILEO 2
     57#define RTCM3_MSM_SBAS    3
     58#define RTCM3_MSM_QZSS    4
     59#define RTCM3_MSM_COMPASS 5
     60
     61#define RTCM3_MSM_NUMSYS  6
    6062
    6163#define GNSSENTRY_CODE    0
     
    410412  int    SISA;
    411413  int    E5aHS;
     414};
     415
     416struct DataInfo {
     417  long long flags[RINEXENTRY_NUMBER];
     418  int       pos[RINEXENTRY_NUMBER];
     419  int       numtypes;
     420  char      type[GNSSENTRY_NUMBER];
    412421};
    413422
     
    443452  int    leapsec;
    444453#endif /* NO_RTCM3_MAIN */
    445   int    datapos[RINEXENTRY_NUMBER];
    446   long long dataflag[RINEXENTRY_NUMBER];
    447   /* for RINEX2 GPS and GLO are both handled in GPS */
    448   int    dataposGPS[RINEXENTRY_NUMBER]; /* SBAS has same entries */
    449   long long dataflagGPS[RINEXENTRY_NUMBER];
    450   int    dataposGLO[RINEXENTRY_NUMBER]; /* only used for RINEX3 */
    451   long long dataflagGLO[RINEXENTRY_NUMBER];
    452   int    dataposGAL[RINEXENTRY_NUMBER]; /* only used for RINEX3 */
    453   long long dataflagGAL[RINEXENTRY_NUMBER];
    454   int    dataposQZS[RINEXENTRY_NUMBER]; /* only used for RINEX3 */
    455   long long dataflagQZS[RINEXENTRY_NUMBER];
    456   int    dataposCOM[RINEXENTRY_NUMBER]; /* only used for RINEX3 */
    457   long long dataflagCOM[RINEXENTRY_NUMBER];
    458   int    numdatatypesGPS;
    459   int    numdatatypesGLO; /* only used for RINEX3 */
    460   int    numdatatypesGAL; /* only used for RINEX3 */
    461   int    numdatatypesQZS; /* only used for RINEX3 */
    462   int    numdatatypesCOM; /* only used for RINEX3 */
    463   int    validwarning;
    464   int    init;
    465   int    startflags;
    466   int    rinex3;
     454  int          pos[RINEXENTRY_NUMBER];
     455  long long    flags[RINEXENTRY_NUMBER];
     456  /* For RINEX2 only field GPS is used */
     457  struct DataInfo info[RTCM3_MSM_NUMSYS];
     458  int          validwarning;
     459  int          init;
     460  int          startflags;
     461  int          rinex3;
    467462  const char * headerfile;
    468463  const char * glonassephemeris;
    469464  const char * gpsephemeris;
    470   FILE *glonassfile;
    471   FILE *gpsfile;
     465  FILE *       glonassfile;
     466  FILE *       gpsfile;
    472467};
    473468
Note: See TracChangeset for help on using the changeset viewer.