Line | |
---|
1 | #ifndef BNS_H
|
---|
2 | #define BNS_H
|
---|
3 |
|
---|
4 | #include <newmat.h>
|
---|
5 |
|
---|
6 | #include <QtNetwork>
|
---|
7 | #include <QThread>
|
---|
8 |
|
---|
9 | #include "bnseph.h"
|
---|
10 |
|
---|
11 | class bnsRinex;
|
---|
12 | class bnsSP3;
|
---|
13 |
|
---|
14 | class t_ephPair {
|
---|
15 | public:
|
---|
16 | t_ephPair() {
|
---|
17 | eph = 0;
|
---|
18 | oldEph = 0;
|
---|
19 | }
|
---|
20 |
|
---|
21 | ~t_ephPair() {
|
---|
22 | delete eph;
|
---|
23 | delete oldEph;
|
---|
24 | }
|
---|
25 |
|
---|
26 | gpsEph* eph;
|
---|
27 | gpsEph* oldEph;
|
---|
28 | };
|
---|
29 |
|
---|
30 | class t_bns : public QThread {
|
---|
31 | Q_OBJECT
|
---|
32 | public:
|
---|
33 | t_bns(QObject* parent = 0);
|
---|
34 | virtual ~t_bns();
|
---|
35 | virtual void run();
|
---|
36 |
|
---|
37 | signals:
|
---|
38 | void newMessage(const QByteArray msg);
|
---|
39 | void error(const QByteArray msg);
|
---|
40 | void moveSocket(QThread* tt);
|
---|
41 |
|
---|
42 | private slots:
|
---|
43 | void slotNewEph(gpsEph* ep);
|
---|
44 | void slotNewConnection();
|
---|
45 | void slotMessage(const QByteArray msg);
|
---|
46 | void slotError(const QByteArray msg);
|
---|
47 | void slotMoveSocket(QThread* tt);
|
---|
48 |
|
---|
49 | private:
|
---|
50 | void deleteBnsEph();
|
---|
51 | void openCaster();
|
---|
52 | void readEpoch();
|
---|
53 | void processSatellite(int GPSweek, double GPSweeks, const QString& prn,
|
---|
54 | const ColumnVector& xx);
|
---|
55 |
|
---|
56 | QTcpServer* _clkServer;
|
---|
57 | QTcpSocket* _clkSocket;
|
---|
58 | QTcpSocket* _outSocket;
|
---|
59 | QFile* _outFile;
|
---|
60 | QFile* _logFile;
|
---|
61 | QTextStream* _outStream;
|
---|
62 | QTextStream* _logStream;
|
---|
63 | t_bnseph* _bnseph;
|
---|
64 | QMutex _mutex;
|
---|
65 | QMap<QString, t_ephPair*> _ephList;
|
---|
66 | bnsRinex* _rnx;
|
---|
67 | bnsSP3* _sp3;
|
---|
68 | };
|
---|
69 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.