source:
ntrip/trunk/BNS/bns.h@
893
Last change on this file since 893 was 884, checked in by , 17 years ago | |
---|---|
File size: 1.6 KB |
Rev | Line | |
---|---|---|
[756] | 1 | #ifndef BNS_H |
2 | #define BNS_H | |
3 | ||
[784] | 4 | #include <newmat.h> |
5 | ||
[769] | 6 | #include <QtNetwork> |
[756] | 7 | #include <QThread> |
8 | ||
[758] | 9 | #include "bnseph.h" |
[863] | 10 | extern "C" { |
11 | #include "RTCM/clock_orbit_rtcm.h" | |
12 | } | |
[758] | 13 | |
[847] | 14 | class bnsRinex; |
[848] | 15 | class bnsSP3; |
[847] | 16 | |
[778] | 17 | class t_ephPair { |
18 | public: | |
19 | t_ephPair() { | |
20 | eph = 0; | |
21 | oldEph = 0; | |
22 | } | |
23 | ||
24 | ~t_ephPair() { | |
25 | delete eph; | |
26 | delete oldEph; | |
27 | } | |
28 | ||
[873] | 29 | ColumnVector xx; |
[884] | 30 | t_eph* eph; |
31 | t_eph* oldEph; | |
[778] | 32 | }; |
33 | ||
[757] | 34 | class t_bns : public QThread { |
35 | Q_OBJECT | |
[756] | 36 | public: |
[757] | 37 | t_bns(QObject* parent = 0); |
38 | virtual ~t_bns(); | |
[756] | 39 | virtual void run(); |
40 | ||
[757] | 41 | signals: |
42 | void newMessage(const QByteArray msg); | |
[760] | 43 | void error(const QByteArray msg); |
[836] | 44 | void moveSocket(QThread* tt); |
[756] | 45 | |
[758] | 46 | private slots: |
[884] | 47 | void slotNewEph(t_eph* ep); |
[769] | 48 | void slotNewConnection(); |
[758] | 49 | void slotMessage(const QByteArray msg); |
[760] | 50 | void slotError(const QByteArray msg); |
[836] | 51 | void slotMoveSocket(QThread* tt); |
[758] | 52 | |
[756] | 53 | private: |
[763] | 54 | void deleteBnsEph(); |
[770] | 55 | void openCaster(); |
[784] | 56 | void readEpoch(); |
[884] | 57 | void processSatellite(t_eph* ep, int GPSweek, double GPSweeks, |
[872] | 58 | const QString& prn, const ColumnVector& xx, |
59 | struct ClockOrbit::SatData* sd); | |
[784] | 60 | |
[778] | 61 | QTcpServer* _clkServer; |
62 | QTcpSocket* _clkSocket; | |
63 | QTcpSocket* _outSocket; | |
[858] | 64 | int _outSocketOpenTrial; |
65 | QDateTime _outSocketOpenTime; | |
[816] | 66 | QFile* _outFile; |
67 | QFile* _logFile; | |
68 | QTextStream* _outStream; | |
69 | QTextStream* _logStream; | |
[778] | 70 | t_bnseph* _bnseph; |
71 | QMutex _mutex; | |
72 | QMap<QString, t_ephPair*> _ephList; | |
[847] | 73 | bnsRinex* _rnx; |
[848] | 74 | bnsSP3* _sp3; |
[756] | 75 | }; |
76 | #endif |
Note:
See TracBrowser
for help on using the repository browser.