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

Last change on this file since 7455 was 6864, checked in by stuerze, 10 years ago

scanning of GLONASS slots is added

File size: 2.3 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_antInfo {
60 enum t_type { ARP, APC };
61
62 t_antInfo() {
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 /** List of observations */
79 QList<t_satObs> _obsList;
80 QList<int> _typeList; // RTCM message types
81 QStringList _antType; // RTCM antenna descriptor
82 QList<t_antInfo> _antList; // RTCM antenna XYZ
83 QString _gloFrq; // GLONASS slot
84 bncRinex* _rnx; // RINEX writer
85};
86
87#endif
Note: See TracBrowser for help on using the repository browser.