[297] | 1 | // Part of BNC, a utility for retrieving decoding and
|
---|
[464] | 2 | // converting GNSS data streams from NTRIP broadcasters.
|
---|
[242] | 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.
|
---|
[242] | 24 |
|
---|
| 25 | #ifndef INC_RTCM2DECODER_H
|
---|
| 26 | #define INC_RTCM2DECODER_H
|
---|
| 27 |
|
---|
[1044] | 28 | #include <map>
|
---|
[1218] | 29 | #include <vector>
|
---|
| 30 | #include <list>
|
---|
[1044] | 31 |
|
---|
[242] | 32 | #include "GPSDecoder.h"
|
---|
| 33 | #include "RTCM2.h"
|
---|
[1044] | 34 | #include "RTCM2_2021.h"
|
---|
[2492] | 35 | #include "ephemeris.h"
|
---|
[3562] | 36 | #include "bncephuser.h"
|
---|
[242] | 37 |
|
---|
[6443] | 38 | class RTCM2Decoder: public GPSDecoder {
|
---|
[242] | 39 |
|
---|
| 40 | public:
|
---|
[1044] | 41 | RTCM2Decoder(const std::string& ID);
|
---|
[645] | 42 | virtual ~RTCM2Decoder();
|
---|
[1218] | 43 | virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg);
|
---|
[242] | 44 |
|
---|
[1044] | 45 | t_irc getStaCrd(double& xx, double& yy, double& zz);
|
---|
| 46 |
|
---|
[1218] | 47 | t_irc getStaCrd(double& xx, double& yy, double& zz,
|
---|
[1167] | 48 | double& dx1, double& dy1, double& dz1,
|
---|
| 49 | double& dx2, double& dy2, double& dz2);
|
---|
| 50 |
|
---|
[1044] | 51 | const rtcm2::RTCM2_2021& msg2021() const { return _msg2021; }
|
---|
| 52 |
|
---|
| 53 | std::string ID() const { return _ID; }
|
---|
| 54 |
|
---|
[242] | 55 | private:
|
---|
| 56 |
|
---|
[1218] | 57 | void translateCorr2Obs(std::vector<std::string>& errmsg);
|
---|
[1044] | 58 |
|
---|
[6443] | 59 | QMutex _mutex;
|
---|
| 60 | std::string _ID;
|
---|
| 61 | std::string _buffer;
|
---|
| 62 | rtcm2::RTCM2packet _PP;
|
---|
[1044] | 63 |
|
---|
| 64 | // for messages 18, 19 decoding
|
---|
[6443] | 65 | rtcm2::RTCM2_Obs _ObsBlock;
|
---|
[1044] | 66 |
|
---|
| 67 | // for messages 20, 21 decoding
|
---|
[6443] | 68 | rtcm2::RTCM2_03 _msg03;
|
---|
| 69 | rtcm2::RTCM2_22 _msg22;
|
---|
| 70 | rtcm2::RTCM2_23 _msg23;
|
---|
| 71 | rtcm2::RTCM2_24 _msg24;
|
---|
| 72 | rtcm2::RTCM2_2021 _msg2021;
|
---|
| 73 | bncEphUser _ephUser;
|
---|
[242] | 74 | };
|
---|
| 75 |
|
---|
| 76 | #endif // include blocker
|
---|