Changeset 6812 in ntrip for trunk/BNC/src/ephemeris.h


Ignore:
Timestamp:
May 5, 2015, 3:44:39 PM (9 years ago)
Author:
stoecker
Message:

integrate RTCM3 parsing into BNC and directly fill target structures, add doxygen documentation

Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src

    • Property svn:ignore
      •  

        old new  
        55debug
        66release
         7html
  • trunk/BNC/src/ephemeris.h

    r6809 r6812  
    99#include "bncconst.h"
    1010#include "t_prn.h"
    11 
    12 extern "C" {
    13 #  include "rtcm3torinex.h"
    14 }
     11#include "gnss.h"
    1512
    1613class t_orbCorr;
     
    5552class t_ephGPS : public t_eph {
    5653 friend class t_ephEncoder;
     54 friend class RTCM3Decoder;
    5755 public:
    5856  t_ephGPS() { }
     
    6361  virtual QString toString(double version) const;
    6462  virtual int  IOD() const { return static_cast<int>(_IODC); }
    65   void set(const gpsephemeris* ee);
    6663  double TGD() const {return _TGD;} // Timing Group Delay (P1-P2 DCB)
    6764
     
    109106class t_ephGlo : public t_eph {
    110107 friend class t_ephEncoder;
     108 friend class RTCM3Decoder;
    111109 public:
    112110  t_ephGlo() { _xv.ReSize(6); }
     
    118116  virtual int  IOD() const;
    119117  virtual int slotNum() const {return int(_frequency_number);}
    120   void set(const glonassephemeris* ee);
    121118
    122119 private:
     
    150147class t_ephGal : public t_eph {
    151148 friend class t_ephEncoder;
    152  public:
    153   t_ephGal() : _flags(0) { };
     149 friend class RTCM3Decoder;
     150 public:
     151  t_ephGal() { };
    154152  t_ephGal(float rnxVersion, const QStringList& lines);
    155153  virtual ~t_ephGal() {}
     
    158156  virtual e_type type() const {return t_eph::Galileo;}
    159157  virtual int  IOD() const { return static_cast<int>(_IODnav); }
    160   void set(const galileoephemeris* ee);
    161158
    162159 private:
     
    167164  double  _clock_driftrate;  //  [s/s^2]
    168165
    169   double  _IODnav;             
     166  double  _IODnav;
    170167  double  _Crs;              //  [m]   
    171168  double  _Delta_n;          //  [rad/s]
     
    199196
    200197  double  _TOT;              // [s]
    201 
    202   int     _flags;            // GALEPHF_E5ADINVALID   E5aDVS set invalid
    203                              // GALEPHF_E5BDINVALID   E5bDVS set invalid
    204                              // GALEPHF_INAV          INAV data
    205                              // GALEPHF_FNAV          FNAV data
    206                              // GALEPHF_E1DINVALID    E1DVS set invalid
     198  /** Data comes from I/NAV when <code>true</code> */
     199  bool    _inav;
     200  /** Data comes from F/NAV when <code>true</code> */
     201  bool    _fnav;
     202  /** EE Data is not valid */
     203  bool    _e1DataInValid;
     204  /** E5A Data is not valid */
     205  bool    _e5aDataInValid;
     206  /** E5B Data is not valid */
     207  bool    _e5bDataInValid;
    207208};
    208209
    209210class t_ephSBAS : public t_eph {
    210211 friend class t_ephEncoder;
     212 friend class RTCM3Decoder;
    211213 public:
    212214  t_ephSBAS() {}
     
    214216  virtual ~t_ephSBAS() {}
    215217
    216   void            set(const sbasephemeris* ee);
    217218  virtual e_type  type() const {return t_eph::SBAS;}
    218219  virtual int     IOD() const {return _IODN;}
     
    245246class t_ephBDS : public t_eph {
    246247 friend class t_ephEncoder;
     248 friend class RTCM3Decoder;
    247249 public:
    248250 t_ephBDS() {}
     
    250252  virtual ~t_ephBDS() {}
    251253
    252   void set(const bdsephemeris* ee);
    253254  virtual e_type  type() const {return t_eph::BDS;}
    254255  virtual int     IOD() const {return _AODC;}
     
    258259  virtual t_irc position(int GPSweek, double GPSweeks, double* xc, double* vv) const;
    259260
    260   bncTime _TOT;
     261  double _TOT;
    261262  bncTime _TOE;
    262   bncTime _TOC_bdt;
    263   bncTime _TOE_bdt;
    264263  int     _AODE;
    265264  int     _AODC;
     265  int     _URAI;             //  [0..15] index from RTCM stream
    266266  mutable double  _URA;      //  user range accuracy
    267267  double  _clock_bias;       //  [s]   
     
    286286  double  _TGD2;             //  [s]   
    287287  int     _SatH1;            //
    288   double  _TOTs;             //  [s] of BDT week; RINEX file entry
    289   double  _TOEs;             //  [s] of BDT week; RINEX file entry
     288  double  _TOW;              //  [s] of BDT week; RINEX file entry
     289  double  _TOEsec;           //  [s] of BDT week; RINEX file entry
     290  double  _TOEweek;
    290291};
    291292
Note: See TracChangeset for help on using the changeset viewer.