[280] | 1 | // Part of BNC, a utility for retrieving decoding and
|
---|
[464] | 2 | // converting GNSS data streams from NTRIP broadcasters.
|
---|
[280] | 3 | //
|
---|
[464] | 4 | // Copyright (C) 2007
|
---|
[280] | 5 | // German Federal Agency for Cartography and Geodesy (BKG)
|
---|
| 6 | // http://www.bkg.bund.de
|
---|
[464] | 7 | // Czech Technical University Prague, Department of Geodesy
|
---|
[280] | 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.
|
---|
[464] | 24 |
|
---|
[6017] | 25 | #include <string>
|
---|
| 26 |
|
---|
[126] | 27 | #ifndef BNCCONST_H
|
---|
| 28 | #define BNCCONST_H
|
---|
| 29 |
|
---|
[192] | 30 | enum t_irc {failure = -1, success, fatal}; // return code
|
---|
[138] | 31 |
|
---|
[6017] | 32 | class t_frequency {
|
---|
[4265] | 33 | public:
|
---|
[6017] | 34 | enum type {dummy = 0, G1, G2, G5, R1, R2,
|
---|
| 35 | E1, // E1 / 1575.42
|
---|
| 36 | E5, // E5a / 1176.45
|
---|
| 37 | E7, // E5b / 1207.140
|
---|
| 38 | E8, // E5(E5a+E5b) / 1191.795
|
---|
| 39 | E6, // E6 / 1278.75
|
---|
| 40 | max};
|
---|
| 41 |
|
---|
| 42 | static std::string toString(type tt) {
|
---|
| 43 | if (tt == G1) return "G1";
|
---|
| 44 | else if (tt == G2) return "G2";
|
---|
| 45 | else if (tt == G5) return "G5";
|
---|
| 46 | else if (tt == R1) return "R1";
|
---|
| 47 | else if (tt == R2) return "R2";
|
---|
| 48 | else if (tt == E1) return "E1";
|
---|
| 49 | else if (tt == E5) return "E5";
|
---|
| 50 | else if (tt == E6) return "E6";
|
---|
| 51 | else if (tt == E7) return "E7";
|
---|
| 52 | else if (tt == E8) return "E8";
|
---|
| 53 | return std::string();
|
---|
[4265] | 54 | }
|
---|
[6017] | 55 | };
|
---|
[4265] | 56 |
|
---|
[6017] | 57 | class t_CST {
|
---|
| 58 | public:
|
---|
| 59 | static double freq(t_frequency::type fType, int slotNum);
|
---|
| 60 | static double lambda(t_frequency::type fType, int slotNum);
|
---|
| 61 |
|
---|
[4265] | 62 | static const double c;
|
---|
| 63 | static const double omega;
|
---|
| 64 | static const double aell;
|
---|
| 65 | static const double fInv;
|
---|
[126] | 66 | };
|
---|
| 67 |
|
---|
| 68 |
|
---|
| 69 | #endif
|
---|