Changeset 8966 in ntrip


Ignore:
Timestamp:
Jul 1, 2020, 9:48:35 AM (3 months ago)
Author:
stuerze
Message:

minor format changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_rtcm.h

    r8944 r8966  
    1616
    1717enum COR_BASE {
    18   COBBASE_GPS = 1057,
     18  COBBASE_GPS     = 1057,
    1919  COBBASE_GLONASS = 1063,
    2020  COBBASE_GALILEO = 1240,
    21   COBBASE_QZSS = 1246,
    22   COBBASE_SBAS = 1252,
    23   COBBASE_BDS = 1258,
     21  COBBASE_QZSS    = 1246,
     22  COBBASE_SBAS    = 1252,
     23  COBBASE_BDS     = 1258,
    2424};
    2525
     
    3535
    3636enum ClockOrbitType {
    37   COTYPE_GPSORBIT = COBBASE_GPS + COBOFS_ORBIT,
     37  COTYPE_GPSORBIT    = COBBASE_GPS + COBOFS_ORBIT,
    3838  COTYPE_GPSCLOCK,
    3939  COTYPE_GPSCOMBINED = COBBASE_GPS + COBOFS_COMBINED,
     
    4141  COTYPE_GPSHR,
    4242
    43   COTYPE_GLONASSORBIT = COBBASE_GLONASS + COBOFS_ORBIT,
     43  COTYPE_GLONASSORBIT    = COBBASE_GLONASS + COBOFS_ORBIT,
    4444  COTYPE_GLONASSCLOCK,
    4545  COTYPE_GLONASSCOMBINED = COBBASE_GLONASS + COBOFS_COMBINED,
     
    4747  COTYPE_GLONASSHR,
    4848
    49   COTYPE_GALILEOORBIT = COBBASE_GALILEO + COBOFS_ORBIT,
     49  COTYPE_GALILEOORBIT    = COBBASE_GALILEO + COBOFS_ORBIT,
    5050  COTYPE_GALILEOCLOCK,
    5151  COTYPE_GALILEOCOMBINED = COBBASE_GALILEO + COBOFS_COMBINED,
     
    5353  COTYPE_GALILEOHR,
    5454
    55   COTYPE_QZSSORBIT = COBBASE_QZSS + COBOFS_ORBIT,
     55  COTYPE_QZSSORBIT    = COBBASE_QZSS + COBOFS_ORBIT,
    5656  COTYPE_QZSSCLOCK,
    5757  COTYPE_QZSSCOMBINED = COBBASE_QZSS + COBOFS_COMBINED,
     
    5959  COTYPE_QZSSHR,
    6060
    61   COTYPE_SBASORBIT = COBBASE_SBAS + COBOFS_ORBIT,
     61  COTYPE_SBASORBIT    = COBBASE_SBAS + COBOFS_ORBIT,
    6262  COTYPE_SBASCLOCK,
    6363  COTYPE_SBASCOMBINED = COBBASE_SBAS + COBOFS_COMBINED,
     
    6565  COTYPE_SBASHR,
    6666
    67   COTYPE_BDSORBIT = COBBASE_BDS + COBOFS_ORBIT,
     67  COTYPE_BDSORBIT    = COBBASE_BDS + COBOFS_ORBIT,
    6868  COTYPE_BDSCLOCK,
    6969  COTYPE_BDSCOMBINED = COBBASE_BDS + COBOFS_COMBINED,
     
    7575
    7676enum CodeBiasType {
    77   BTYPE_GPS = COBBASE_GPS + COBOFS_BIAS,
     77  BTYPE_GPS     = COBBASE_GPS    + COBOFS_BIAS,
    7878  BTYPE_GLONASS = COBBASE_GLONASS + COBOFS_BIAS,
    7979  BTYPE_GALILEO = COBBASE_GALILEO + COBOFS_BIAS,
    80   BTYPE_QZSS = COBBASE_QZSS + COBOFS_BIAS,
    81   BTYPE_SBAS = COBBASE_SBAS + COBOFS_BIAS,
    82   BTYPE_BDS = COBBASE_BDS + COBOFS_BIAS,
     80  BTYPE_QZSS    = COBBASE_QZSS    + COBOFS_BIAS,
     81  BTYPE_SBAS    = COBBASE_SBAS    + COBOFS_BIAS,
     82  BTYPE_BDS     = COBBASE_BDS    + COBOFS_BIAS,
    8383  BTYPE_AUTO = 0
    8484};
     
    126126
    127127enum COR_OFFSETS {
    128   CLOCKORBIT_OFFSETGPS=0,
    129   CLOCKORBIT_OFFSETGLONASS=CLOCKORBIT_NUMGPS,
    130   CLOCKORBIT_OFFSETGALILEO=CLOCKORBIT_NUMGPS+CLOCKORBIT_NUMGLONASS,
    131   CLOCKORBIT_OFFSETQZSS=CLOCKORBIT_NUMGPS+CLOCKORBIT_NUMGLONASS
    132   +CLOCKORBIT_NUMGALILEO,
    133   CLOCKORBIT_OFFSETSBAS=CLOCKORBIT_NUMGPS+CLOCKORBIT_NUMGLONASS
    134   +CLOCKORBIT_NUMGALILEO+CLOCKORBIT_NUMQZSS,
    135   CLOCKORBIT_OFFSETBDS=CLOCKORBIT_NUMGPS+CLOCKORBIT_NUMGLONASS
    136   +CLOCKORBIT_NUMGALILEO+CLOCKORBIT_NUMQZSS+CLOCKORBIT_NUMSBAS,
    137   CLOCKORBIT_COUNTSAT=CLOCKORBIT_NUMGPS+CLOCKORBIT_NUMGLONASS
    138   +CLOCKORBIT_NUMGALILEO+CLOCKORBIT_NUMQZSS+CLOCKORBIT_NUMSBAS
    139   +CLOCKORBIT_NUMBDS
     128  CLOCKORBIT_OFFSETGPS     = 0,
     129  CLOCKORBIT_OFFSETGLONASS = CLOCKORBIT_NUMGPS,
     130  CLOCKORBIT_OFFSETGALILEO = CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS,
     131  CLOCKORBIT_OFFSETQZSS    = CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO,
     132  CLOCKORBIT_OFFSETSBAS    = CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO
     133                           + CLOCKORBIT_NUMQZSS,
     134  CLOCKORBIT_OFFSETBDS     = CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO
     135                           + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMSBAS,
     136  CLOCKORBIT_COUNTSAT      = CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS + CLOCKORBIT_NUMGALILEO
     137                           + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMSBAS + CLOCKORBIT_NUMBDS
    140138};
    141139
     
    267265#endif
    268266
    269 struct ClockOrbit
    270 {
     267struct ClockOrbit {
    271268  enum ClockOrbitType messageType;
    272269  unsigned int EpochTime[CLOCKORBIT_SATNUM];   /* 0 .. system specific maximum */
    273270  unsigned int NumberOfSat[CLOCKORBIT_SATNUM]; /* 0 .. CLOCKORBIT_NUM... */
    274 
    275271  unsigned int Supplied[COBOFS_NUM];           /* boolean */
    276272#ifdef COR_LATENCY
     
    289285    double UserRangeAccuracy; /* accuracy values in [m] */
    290286    double hrclock;
    291     struct OrbitPart
    292     {
     287    struct OrbitPart {
    293288      double DeltaRadial;           /* m */
    294289      double DeltaAlongTrack;       /* m */
     
    298293      double DotDeltaCrossTrack;    /* m/s */
    299294    } Orbit;
    300     struct ClockPart
    301     {
     295    struct ClockPart {
    302296      double DeltaA0;               /* m */
    303297      double DeltaA1;               /* m/s */
     
    307301};
    308302
    309 struct CodeBias
    310 {
     303struct CodeBias {
    311304  enum CodeBiasType messageType;
    312305  unsigned int EpochTime[CLOCKORBIT_SATNUM];   /* 0 .. system specific maximum */
     
    316309  unsigned int SSRProviderID;
    317310  unsigned int SSRSolutionID;
    318   struct BiasSat
    319   {
     311  struct BiasSat {
    320312    unsigned int ID; /* all */
    321313    unsigned int NumberOfCodeBiases;
    322     struct CodeBiasEntry
    323     {
     314    struct CodeBiasEntry {
    324315      enum CodeType Type;
    325316      float         Bias;           /* m */
     
    328319};
    329320
    330 struct PhaseBias
    331 {
     321struct PhaseBias {
    332322  enum PhaseBiasType messageType;
    333323  unsigned int EpochTime[CLOCKORBIT_SATNUM];   /* 0 .. system specific maximum */
     
    339329  unsigned int DispersiveBiasConsistencyIndicator;
    340330  unsigned int MWConsistencyIndicator;
    341   struct PhaseBiasSat
    342   {
     331  struct PhaseBiasSat {
    343332    unsigned int ID; /* all */
    344333    unsigned int NumberOfPhaseBiases;
    345334    double YawAngle; /* radiant */
    346335    double YawRate;  /* radiant/s */
    347     struct PhaseBiasEntry
    348     {
     336    struct PhaseBiasEntry {
    349337      enum CodeType Type;
    350338      unsigned int  SignalIntegerIndicator;
     
    356344};
    357345
    358 struct VTEC
    359 {
     346struct VTEC {
    360347  unsigned int EpochTime; /* GPS */
    361348  unsigned int UpdateInterval;
     
    386373enum GCOB_RETURN {
    387374  /* all well */
    388   GCOBR_MESSAGEFOLLOWS = 1,
    389   GCOBR_OK = 0,
     375  GCOBR_MESSAGEFOLLOWS        = 1,
     376  GCOBR_OK                    = 0,
    390377  /* unknown data, a warning */
    391   GCOBR_UNKNOWNTYPE = -1,
    392   GCOBR_UNKNOWNDATA = -2,
    393   GCOBR_CRCMISMATCH = -3,
    394   GCOBR_SHORTMESSAGE = -4,
     378  GCOBR_UNKNOWNTYPE           = -1,
     379  GCOBR_UNKNOWNDATA           = -2,
     380  GCOBR_CRCMISMATCH           = -3,
     381  GCOBR_SHORTMESSAGE          = -4,
    395382  /* failed to do the work */
    396383  GCOBR_NOCLOCKORBITPARAMETER = -10,
    397   GCOBR_NOCODEBIASPARAMETER = -11,
    398   GCOBR_NOPHASEBIASPARAMETER = -12,
    399   GCOBR_NOVTECPARAMETER = -13,
     384  GCOBR_NOCODEBIASPARAMETER   = -11,
     385  GCOBR_NOPHASEBIASPARAMETER  = -12,
     386  GCOBR_NOVTECPARAMETER       = -13,
    400387  /* data mismatch - data in storage does not match new data */
    401   GCOBR_TIMEMISMATCH = -20,
    402   GCOBR_DATAMISMATCH = -21,
     388  GCOBR_TIMEMISMATCH          = -20,
     389  GCOBR_DATAMISMATCH          = -21,
    403390  /* not enough data - can decode the block completely */
    404   GCOBR_SHORTBUFFER = -30,
    405   GCOBR_MESSAGEEXCEEDSBUFFER = -31};
     391  GCOBR_SHORTBUFFER           = -30,
     392  GCOBR_MESSAGEEXCEEDSBUFFER  = -31};
    406393
    407394/* NOTE: When an error message has been emitted, the output structures may have been modified. Make a copy of the previous variant before calling the
Note: See TracChangeset for help on using the changeset viewer.