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