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

Last change on this file since 10475 was 3045, checked in by mervart, 14 years ago
File size: 1.1 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
13namespace BNS {
14 enum t_irc {failure = -1, success}; // return code
15
16 void expandEnvVar(QString& str);
17
18 QDateTime dateAndTimeFromGPSweek(int GPSWeek, double GPSWeeks);
19
20 void GPSweekFromDateAndTime(const QDateTime& dateTime,
21 int& GPSWeek, double& GPSWeeks);
22
23 void GPSweekFromYMDhms(int year, int month, int day, int hour, int min,
24 double sec, int& GPSWeek, double& GPSWeeks);
25
26 void mjdFromDateAndTime(const QDateTime& dateTime, int& mjd, double& dayfrac);
27
28 void currentGPSWeeks(int& week, double& sec);
29
30 void XYZ_to_RSW(const ColumnVector& rr, const ColumnVector& vv,
31 const ColumnVector& xyz, ColumnVector& rsw);
32
33 ColumnVector rungeKutta4(double xi, const ColumnVector& yi, double dx,
34 double* acc,
35 ColumnVector (*der)(double x, const ColumnVector& y, double* acc));
36
37 QByteArray waitForLine(QTcpSocket* socket);
38}
39#endif
Note: See TracBrowser for help on using the repository browser.