source: ntrip/trunk/BNC/src/GPSDecoder.h@ 9454

Last change on this file since 9454 was 8235, checked in by stuerze, 7 years ago

antenna and receiver info from message type 1007, 1008 and 1033 completed

File size: 2.7 KB
Line 
1// Part of BNC, a utility for retrieving decoding and
2// converting GNSS data streams from NTRIP broadcasters.
3//
4// Copyright (C) 2007
5// German Federal Agency for Cartography and Geodesy (BKG)
6// http://www.bkg.bund.de
7// Czech Technical University Prague, Department of Geodesy
8// http://www.fsv.cvut.cz
9//
10// Email: euref-ip@bkg.bund.de
11//
12// This program is free software; you can redistribute it and/or
13// modify it under the terms of the GNU General Public License
14// as published by the Free Software Foundation, version 2.
15//
16// This program is distributed in the hope that it will be useful,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19// GNU General Public License for more details.
20//
21// You should have received a copy of the GNU General Public License
22// along with this program; if not, write to the Free Software
23// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
25#ifndef GPSDECODER_H
26#define GPSDECODER_H
27
28#include <iostream>
29#include <vector>
30#include <string>
31
32#include <QtCore>
33
34#include "bncconst.h"
35#include "bnctime.h"
36#include "satObs.h"
37
38class bncRinex;
39
40class GPSDecoder {
41 public:
42 GPSDecoder();
43 virtual ~GPSDecoder();
44
45 virtual t_irc Decode(char* buffer, int bufLen,
46 std::vector<std::string>& errmsg) = 0;
47
48
49 virtual int corrGPSEpochTime() const {return -1;}
50
51 void initRinex(const QByteArray& staID, const QUrl& mountPoint,
52 const QByteArray& latitude, const QByteArray& longitude,
53 const QByteArray& nmea, const QByteArray& ntripVersion);
54
55 void dumpRinexEpoch(const t_satObs& obs, const QByteArray& format);
56
57 void setRinexReconnectFlag(bool flag);
58
59 struct t_antRefPoint {
60 enum t_type { ARP, APC };
61
62 t_antRefPoint() {
63 xx = yy = zz = height = 0.0;
64 type = ARP;
65 height_f = false;
66 message = 0;
67 };
68
69 double xx;
70 double yy;
71 double zz;
72 t_type type;
73 double height;
74 bool height_f;
75 int message;
76 };
77
78 struct t_antInfo {
79 t_antInfo() {
80 };
81 char descriptor[256];
82 char serialnumber[256];
83 };
84
85 struct t_recInfo {
86 t_recInfo() {
87 };
88 char descriptor[256];
89 char serialnumber[256];
90 char firmware[256];
91 };
92
93 /** List of observations */
94 QList<t_satObs> _obsList;
95 QList<int> _typeList; // RTCM message types
96 QList<t_antInfo> _antType; // RTCM antenna descriptor
97 QList<t_recInfo> _recType; // RTCM receiver descriptor
98 QList<t_antRefPoint> _antList; // RTCM antenna XYZ
99 QString _gloFrq; // GLONASS slot
100 bncRinex* _rnx; // RINEX writer
101};
102
103#endif
Note: See TracBrowser for help on using the repository browser.