Changeset 2065 in ntrip


Ignore:
Timestamp:
Dec 1, 2009, 2:13:03 PM (14 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.cpp

    r2064 r2065  
    183183  satData->rho = (satData->xx - xRec).norm_Frobenius();
    184184
    185   double tropDelay = delay_saast();
     185  double tropDelay = delay_saast(satData->eleSat);
    186186
    187187  cout << "tropDelay " << tropDelay << endl;
     
    192192// Tropospheric Model (Saastamoinen)
    193193////////////////////////////////////////////////////////////////////////////
    194 double bncModel::delay_saast() {
     194double bncModel::delay_saast(double Ele) {
    195195
    196196  double height = _ellBanc(3);
    197   double Ele = M_PI/2.0;
    198197
    199198  double pp =  1013.25 * pow(1.0 - 2.26e-5 * height, 5.225);
  • trunk/BNC/bncmodel.h

    r2064 r2065  
    5555 private:
    5656  double cmpValueP3(t_satData* satData);
    57   double delay_saast();
     57  double delay_saast(double Ele);
    5858
    5959  QList<bncParam*> _params;
  • trunk/BNC/bncpppclient.h

    r2060 r2065  
    5252  double       clk;
    5353  bool         clkCorr;
     54  double       eleSat;
     55  double       azSat;
    5456  double       rho;
    5557};
  • trunk/BNC/bncutils.cpp

    r2063 r2065  
    222222  return failure;
    223223}
     224
     225// Rectangular Coordinates -> North, East, Up Components
     226////////////////////////////////////////////////////////////////////////////
     227void xyz2neu(const double* Ell, const double* xyz, double* neu) {
     228
     229  double sinPhi = sin(Ell[0]);
     230  double cosPhi = cos(Ell[0]);
     231  double sinLam = sin(Ell[1]);
     232  double cosLam = cos(Ell[1]);
     233
     234  neu[0] = - sinPhi*cosLam * xyz[0]
     235           - sinPhi*sinLam * xyz[1]
     236           + cosPhi        * xyz[2];
     237
     238  neu[1] = - sinLam * xyz[0]
     239           + cosLam * xyz[1];
     240
     241  neu[2] = + cosPhi*cosLam * xyz[0]
     242           + cosPhi*sinLam * xyz[1]
     243           + sinPhi        * xyz[2];
     244}
  • trunk/BNC/bncutils.h

    r2063 r2065  
    4949t_irc xyz2ell(const double* XYZ, double* Ell);
    5050
     51void xyz2neu(const double* Ell, const double* xyz, double* neu);
     52
    5153#endif
Note: See TracChangeset for help on using the changeset viewer.