source: ntrip/trunk/BNS/bnseph.h@ 776

Last change on this file since 776 was 771, checked in by mervart, 17 years ago

* empty log message *

File size: 2.3 KB
Line 
1#ifndef BNSEPH_H
2#define BNSEPH_H
3
4#include <QThread>
5#include <QtNetwork>
6
7struct gpsephemeris {
8 int flags; /* GPSEPHF_xxx */
9 int satellite; /* SV ID ICD-GPS data position */
10 int IODE; /* [s2w3b01-08] */
11 int URAindex; /* [1..15] [s1w3b13-16] */
12 int SVhealth; /* [s1w3b17-22] */
13 int GPSweek; /* [s1w3b01-10] */
14 int IODC; /* [s1w3b23-32,w8b01-08] */
15 int TOW; /* [s] [s1w2b01-17] */
16 int TOC; /* [s] [s1w8b09-24] */
17 int TOE; /* [s] [s2w10b1-16] */
18 double clock_bias; /* [s] [s1w10b1-22, af0] */
19 double clock_drift; /* [s/s] [s1w9b09-24, af1] */
20 double clock_driftrate; /* [s/s^2] [s1w9b01-08, af2] */
21 double Crs; /* [m] [s2w3b09-24] */
22 double Delta_n; /* [rad/s] [s2w4b01-16 * Pi] */
23 double M0; /* [rad] [s2w4b17-24,w5b01-24 * Pi]*/
24 double Cuc; /* [rad] [s2w6b01-16] */
25 double e; /* [s2w6b17-24,w6b01-24] */
26 double Cus; /* [rad] [s2w8b01-16] */
27 double sqrt_A; /* [m^0.5] [s2w8b16-24,w9b01-24] */
28 double Cic; /* [rad] [s3w3b01-16] */
29 double OMEGA0; /* [rad] [s3w3b17-24,w4b01-24 * Pi]*/
30 double Cis; /* [rad] [s3w5b01-16] */
31 double i0; /* [rad] [s3w5b17-24,w6b01-24 * Pi]*/
32 double Crc; /* [m] [s3w701-16] */
33 double omega; /* [rad] [s3w7b17-24,w8b01-24 * Pi]*/
34 double OMEGADOT; /* [rad/s] [s3w9b01-24 * Pi] */
35 double IDOT; /* [rad/s] [s3w10b9-22 * Pi] */
36 double TGD; /* [s] [s1w7b17-24] */
37};
38
39class t_bnseph : public QThread {
40 Q_OBJECT
41 public:
42 t_bnseph(QObject* parent = 0);
43 virtual ~t_bnseph();
44 virtual void run();
45
46 signals:
47 void newMessage(const QByteArray msg);
48 void error(const QByteArray msg);
49
50 private:
51 void readEph();
52 QTcpSocket* _socket;
53};
54#endif
Note: See TracBrowser for help on using the repository browser.