Changeset 2240 in ntrip for trunk/BNC/bncmodel.h


Ignore:
Timestamp:
Jan 12, 2010, 3:17:44 PM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.h

    r2231 r2240  
    3838class bncParam {
    3939 public:
    40   enum parType {CRD_X, CRD_Y, CRD_Z, RECCLK, TROPO, AMB_L3};
     40  enum parType {CRD_X, CRD_Y, CRD_Z, RECCLK_GPS, RECCLK_GLO, TROPO, AMB_L3};
    4141  bncParam(parType typeIn, int indexIn, const QString& prn);
    4242  ~bncParam();
    43   double partial(t_satData* satData, const QString& prnIn);
     43  double partial(t_satData* satData, bool phase);
    4444  bool isCrd() const {
    4545    return (type == CRD_X || type == CRD_Y || type == CRD_Z);
     46  }
     47  bool isClk() const {
     48    return (type == RECCLK_GPS|| type == RECCLK_GLO);
    4649  }
    4750  parType  type;
     
    5962  t_irc cmpBancroft(t_epoData* epoData);
    6063  t_irc update(t_epoData* epoData);
    61   bncTime time() const {return _time;}
    62   double x()   const {return _params[0]->xx;}
    63   double y()   const {return _params[1]->xx;}
    64   double z()   const {return _params[2]->xx;}
    65   double clk() const {return _params[3]->xx;}
    66   double trp() const {return _estTropo ? _params[4]->xx : 0.0;}
    67  
     64  bncTime time()  const {return _time;}
     65  double x()      const {return _params[0]->xx;}
     66  double y()      const {return _params[1]->xx;}
     67  double z()      const {return _params[2]->xx;}
     68  double clkGPS() const {
     69    for (int ii = 0; ii < _params.size(); ++ii) {
     70      bncParam* pp = _params[ii];
     71      if (pp->type == bncParam::RECCLK_GPS) {
     72        return pp->xx;
     73      }
     74    }
     75    return 0.0;
     76  }
     77  double clkGlo() const {
     78    for (int ii = 0; ii < _params.size(); ++ii) {
     79      bncParam* pp = _params[ii];
     80      if (pp->type == bncParam::RECCLK_GLO) {
     81        return pp->xx;
     82      }
     83    }
     84    return 0.0;
     85  }
     86  double trp() const {
     87    for (int ii = 0; ii < _params.size(); ++ii) {
     88      bncParam* pp = _params[ii];
     89      if (pp->type == bncParam::TROPO) {
     90        return pp->xx;
     91      }
     92    }
     93    return 0.0;
     94  }
     95
    6896 signals:
    6997  void newMessage(QByteArray msg, bool showOnScreen);
     
    92120  QFile*             _nmeaFile;
    93121  QTextStream*       _nmeaStream;
     122  bool               _useGlonass;
    94123};
    95124
Note: See TracChangeset for help on using the changeset viewer.