Changeset 5807 in ntrip for trunk/BNC/src/bncutils.h


Ignore:
Timestamp:
Aug 6, 2014, 11:09:26 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncutils.h

    r5753 r5807  
    3434#include <bncconst.h>
    3535
    36 void expandEnvVar(QString& str);
     36void         expandEnvVar(QString& str);
    3737
    38 QDateTime dateAndTimeFromGPSweek(int GPSWeek, double GPSWeeks);
     38QDateTime    dateAndTimeFromGPSweek(int GPSWeek, double GPSWeeks);
    3939
    40 void currentGPSWeeks(int& week, double& sec);
     40void         currentGPSWeeks(int& week, double& sec);
    4141
    42 QDateTime currentDateAndTimeGPS();
     42QDateTime    currentDateAndTimeGPS();
    4343
    44 QByteArray ggaString(const QByteArray& latitude,
    45                      const QByteArray& longitude,
    46                      const QByteArray& height);
     44QByteArray   ggaString(const QByteArray& latitude, const QByteArray& longitude,
     45                       const QByteArray& height);
    4746
    48 void RSW_to_XYZ(const ColumnVector& rr, const ColumnVector& vv,
    49                 const ColumnVector& rsw, ColumnVector& xyz);
     47void         RSW_to_XYZ(const ColumnVector& rr, const ColumnVector& vv,
     48                        const ColumnVector& rsw, ColumnVector& xyz);
    5049
    51 void XYZ_to_RSW(const ColumnVector& rr, const ColumnVector& vv,
    52                 const ColumnVector& xyz, ColumnVector& rsw);
     50void         XYZ_to_RSW(const ColumnVector& rr, const ColumnVector& vv,
     51                        const ColumnVector& xyz, ColumnVector& rsw);
    5352
    54 t_irc xyz2ell(const double* XYZ, double* Ell);
     53t_irc        xyz2ell(const double* XYZ, double* Ell);
    5554
    56 void xyz2neu(const double* Ell, const double* xyz, double* neu);
     55void         xyz2neu(const double* Ell, const double* xyz, double* neu);
    5756
    58 void neu2xyz(const double* Ell, const double* neu, double* xyz);
     57void         neu2xyz(const double* Ell, const double* neu, double* xyz);
    5958
    60 void jacobiXYZ_NEU(const double* Ell, Matrix& jacobi);
     59void         jacobiXYZ_NEU(const double* Ell, Matrix& jacobi);
    6160
    62 void jacobiEll_XYZ(const double* Ell, Matrix& jacobi);
     61void         jacobiEll_XYZ(const double* Ell, Matrix& jacobi);
    6362
    64 void covariXYZ_NEU(const SymmetricMatrix& Qxyz, const double* Ell,
    65                    SymmetricMatrix& Qneu);
     63void         covariXYZ_NEU(const SymmetricMatrix& Qxyz, const double* Ell,
     64                           SymmetricMatrix& Qneu);
    6665
    67 void covariNEU_XYZ(const SymmetricMatrix& Qneu, const double* Ell,
    68                    SymmetricMatrix& Qxyz);
     66void         covariNEU_XYZ(const SymmetricMatrix& Qneu, const double* Ell,
     67                           SymmetricMatrix& Qxyz);
    6968
    70 double nint(double val);
     69double       Frac(double x);
    7170
    72 ColumnVector rungeKutta4(double xi, const ColumnVector& yi, double dx,
    73                          double* acc,
    74             ColumnVector (*der)(double x, const ColumnVector& y, double* acc));
     71double       Modulo(double x, double y);
    7572
    76 void GPSweekFromDateAndTime(const QDateTime& dateTime,
    77                             int& GPSWeek, double& GPSWeeks);
     73double       nint(double val);
    7874
    79 void GPSweekFromYMDhms(int year, int month, int day, int hour, int min,
    80                        double sec, int& GPSWeek, double& GPSWeeks);
     75ColumnVector rungeKutta4(double xi, const ColumnVector& yi, double dx, double* acc,
     76                         ColumnVector (*der)(double x, const ColumnVector& y, double* acc));
    8177
    82 void mjdFromDateAndTime(const QDateTime& dateTime, int& mjd, double& dayfrac);
     78void         GPSweekFromDateAndTime(const QDateTime& dateTime, int& GPSWeek, double& GPSWeeks);
    8379
    84 bool findInVector(const std::vector<QString>& vv, const QString& str);
     80void         GPSweekFromYMDhms(int year, int month, int day, int hour, int min, double sec,
     81                               int& GPSWeek, double& GPSWeeks);
    8582
    86 int readInt(const QString& str, int pos, int len, int& value);
     83void         mjdFromDateAndTime(const QDateTime& dateTime, int& mjd, double& dayfrac);
    8784
    88 int readDbl(const QString& str, int pos, int len, double& value);
     85bool         findInVector(const std::vector<QString>& vv, const QString& str);
    8986
    90 void topos(double xRec, double yRec, double zRec,
    91            double xSat, double ySat, double zSat,
    92            double& rho, double& eleSat, double& azSat);
     87int          readInt(const QString& str, int pos, int len, int& value);
    9388
    94 void deg2DMS(double decDeg, int& deg, int& min, double& sec);
     89int          readDbl(const QString& str, int pos, int len, double& value);
    9590
    96 QString fortranFormat(double value, int width, int prec);
     91void         topos(double xRec, double yRec, double zRec, double xSat, double ySat, double zSat,
     92                   double& rho, double& eleSat, double& azSat);
     93
     94void         deg2DMS(double decDeg, int& deg, int& min, double& sec);
     95
     96QString      fortranFormat(double value, int width, int prec);
     97
     98void         kalman(const Matrix& AA, const ColumnVector& ll, const DiagonalMatrix& PP,
     99                    SymmetricMatrix& QQ, ColumnVector& dx);
    97100
    98101#endif
Note: See TracChangeset for help on using the changeset viewer.