source: ntrip/trunk/BNS/bnsutils.h@ 860

Last change on this file since 860 was 860, checked in by mervart, 16 years ago

* empty log message *

File size: 843 bytes
Line 
1
2#ifndef BNSUTILS_H
3#define BNSUTILS_H
4
5#include <newmat.h>
6
7#include <QString>
8#include <QDateTime>
9
10class gpsEph;
11
12enum t_irc {failure = -1, success}; // return code
13
14void expandEnvVar(QString& str);
15
16QDateTime dateAndTimeFromGPSweek(int GPSWeek, double GPSWeeks);
17
18void GPSweekFromDateAndTime(const QDateTime& dateTime,
19 int& GPSWeek, double& GPSWeeks);
20
21void mjdFromDateAndTime(const QDateTime& dateTime, int& mjd, double& dayfrac);
22
23void currentGPSWeeks(int& week, double& sec);
24
25void satellitePosition(int GPSweek, double GPSweeks, const gpsEph* ep,
26 double& X, double& Y, double& Z, double&,
27 double& vX, double& vY, double& vZ);
28
29void XYZ_to_RSW(const ColumnVector& rr, const ColumnVector& vv,
30 const ColumnVector& xyz, ColumnVector& rsw);
31#endif
Note: See TracBrowser for help on using the repository browser.