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

Last change on this file since 2998 was 2558, checked in by mervart, 14 years ago
File size: 1.0 KB
Line 
1
2#ifndef BNSUTILS_H
3#define BNSUTILS_H
4
5#include <newmat.h>
6
7#include <QString>
8#include <QDateTime>
9#include <QTcpSocket>
10
11class gpsEph;
12
13enum t_irc {failure = -1, success}; // return code
14
15void expandEnvVar(QString& str);
16
17QDateTime dateAndTimeFromGPSweek(int GPSWeek, double GPSWeeks);
18
19void GPSweekFromDateAndTime(const QDateTime& dateTime,
20 int& GPSWeek, double& GPSWeeks);
21
22void GPSweekFromYMDhms(int year, int month, int day, int hour, int min,
23 double sec, int& GPSWeek, double& GPSWeeks);
24
25void mjdFromDateAndTime(const QDateTime& dateTime, int& mjd, double& dayfrac);
26
27void currentGPSWeeks(int& week, double& sec);
28
29void XYZ_to_RSW(const ColumnVector& rr, const ColumnVector& vv,
30 const ColumnVector& xyz, ColumnVector& rsw);
31
32ColumnVector rungeKutta4(double xi, const ColumnVector& yi, double dx,
33 double* acc,
34 ColumnVector (*der)(double x, const ColumnVector& y, double* acc));
35
36QByteArray waitForLine(QTcpSocket* socket);
37
38#endif
Note: See TracBrowser for help on using the repository browser.