source: ntrip/branches/BNC_2.12/src/GPSDecoder.h@ 8677

Last change on this file since 8677 was 8200, checked in by stuerze, 7 years ago

receiver type extraction from 1033 RTCM3 messages is added

File size: 2.4 KB
RevLine 
[297]1// Part of BNC, a utility for retrieving decoding and
[464]2// converting GNSS data streams from NTRIP broadcasters.
[297]3//
[464]4// Copyright (C) 2007
[297]5// German Federal Agency for Cartography and Geodesy (BKG)
6// http://www.bkg.bund.de
[464]7// Czech Technical University Prague, Department of Geodesy
[297]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.
[35]24
[222]25#ifndef GPSDECODER_H
26#define GPSDECODER_H
27
[625]28#include <iostream>
[1218]29#include <vector>
30#include <string>
[35]31
[5884]32#include <QtCore>
33
[649]34#include "bncconst.h"
[5884]35#include "bnctime.h"
[6137]36#include "satObs.h"
[649]37
[5884]38class bncRinex;
39
[35]40class GPSDecoder {
[622]41 public:
[3528]42 GPSDecoder();
[5884]43 virtual ~GPSDecoder();
[622]44
[3528]45 virtual t_irc Decode(char* buffer, int bufLen,
46 std::vector<std::string>& errmsg) = 0;
47
48
[1567]49 virtual int corrGPSEpochTime() const {return -1;}
50
[3529]51 void initRinex(const QByteArray& staID, const QUrl& mountPoint,
52 const QByteArray& latitude, const QByteArray& longitude,
53 const QByteArray& nmea, const QByteArray& ntripVersion);
54
[6137]55 void dumpRinexEpoch(const t_satObs& obs, const QByteArray& format);
[3528]56
57 void setRinexReconnectFlag(bool flag);
58
[1268]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
[6812]78 /** List of observations */
[6137]79 QList<t_satObs> _obsList;
[3528]80 QList<int> _typeList; // RTCM message types
81 QStringList _antType; // RTCM antenna descriptor
[8200]82 QStringList _recType; // RTCM receiver descriptor
[3528]83 QList<t_antInfo> _antList; // RTCM antenna XYZ
[6864]84 QString _gloFrq; // GLONASS slot
[3528]85 bncRinex* _rnx; // RINEX writer
[222]86};
[35]87
88#endif
Note: See TracBrowser for help on using the repository browser.