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

Last change on this file since 7283 was 3045, checked in by mervart, 14 years ago
File size: 1.1 KB
RevLine 
[773]1
2#ifndef BNSUTILS_H
3#define BNSUTILS_H
4
[804]5#include <newmat.h>
6
[773]7#include <QString>
8#include <QDateTime>
[930]9#include <QTcpSocket>
[773]10
[798]11class gpsEph;
12
[3045]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}
[773]39#endif
Note: See TracBrowser for help on using the repository browser.