[5708] | 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 | /* -------------------------------------------------------------------------
|
---|
| 26 | * BKG NTRIP Client
|
---|
| 27 | * -------------------------------------------------------------------------
|
---|
| 28 | *
|
---|
| 29 | * Class: t_options
|
---|
| 30 | *
|
---|
| 31 | * Purpose: Options for PPP client
|
---|
| 32 | *
|
---|
| 33 | * Author: L. Mervart
|
---|
| 34 | *
|
---|
| 35 | * Created: 29-Jul-2014
|
---|
| 36 | *
|
---|
| 37 | * Changes:
|
---|
| 38 | *
|
---|
| 39 | * -----------------------------------------------------------------------*/
|
---|
| 40 |
|
---|
| 41 | #include <newmatio.h>
|
---|
| 42 | #include "options.h"
|
---|
| 43 |
|
---|
| 44 | using namespace BNC;
|
---|
| 45 | using namespace std;
|
---|
| 46 |
|
---|
| 47 | // Constructor
|
---|
| 48 | //////////////////////////////////////////////////////////////////////////////
|
---|
| 49 | t_options::t_options() {
|
---|
| 50 | }
|
---|
| 51 |
|
---|
[5736] | 52 | // Destructor
|
---|
| 53 | //////////////////////////////////////////////////////////////////////////////
|
---|
| 54 | t_options::~t_options() {
|
---|
| 55 | }
|
---|
| 56 |
|
---|
[5757] | 57 | //
|
---|
| 58 | //////////////////////////////////////////////////////////////////////////////
|
---|
| 59 | bool t_options::dualFreqRequired() const {
|
---|
| 60 | return true;
|
---|
| 61 | }
|
---|
| 62 |
|
---|
| 63 | //
|
---|
| 64 | //////////////////////////////////////////////////////////////////////////////
|
---|
| 65 | bool t_options::biasRequired() const {
|
---|
| 66 | return false;
|
---|
| 67 | }
|
---|
| 68 |
|
---|
| 69 | //
|
---|
| 70 | //////////////////////////////////////////////////////////////////////////////
|
---|
| 71 | bool t_options::useGlonass() const {
|
---|
| 72 | return (_lcGLONASS.size() > 0);
|
---|
| 73 | }
|
---|
| 74 |
|
---|
| 75 | //
|
---|
| 76 | //////////////////////////////////////////////////////////////////////////////
|
---|
| 77 | bool t_options::xyzAprRoverSet() const {
|
---|
| 78 | return (_xyzAprRover[0] != 0.0 || _xyzAprRover[1] != 0.0 || _xyzAprRover[2] != 0.0);
|
---|
| 79 | }
|
---|
| 80 |
|
---|
| 81 | //
|
---|
| 82 | //////////////////////////////////////////////////////////////////////////////
|
---|
| 83 | bool t_options::estTropo() const {
|
---|
| 84 | return (_sigTropo > 0.0 || _noiseTropo > 0.0);
|
---|
| 85 | }
|
---|
| 86 |
|
---|
| 87 | //
|
---|
| 88 | //////////////////////////////////////////////////////////////////////////////
|
---|
| 89 | vector<t_lc::type> t_options::LCs() const {
|
---|
| 90 | vector<t_lc::type> allLCs;
|
---|
| 91 | for (unsigned ii = 0; ii < _lcGPS.size(); ii++) {
|
---|
| 92 | allLCs.push_back(_lcGPS[ii]);
|
---|
| 93 | }
|
---|
| 94 | for (unsigned ii = 0; ii < _lcGLONASS.size(); ii++) {
|
---|
| 95 | allLCs.push_back(_lcGLONASS[ii]);
|
---|
| 96 | }
|
---|
| 97 | for (unsigned ii = 0; ii < _lcGalileo.size(); ii++) {
|
---|
| 98 | allLCs.push_back(_lcGalileo[ii]);
|
---|
| 99 | }
|
---|
| 100 | return allLCs;
|
---|
| 101 | }
|
---|
| 102 |
|
---|
| 103 | //
|
---|
| 104 | //////////////////////////////////////////////////////////////////////////////
|
---|
| 105 | double t_options::maxRes(t_lc::type /* tLC */) const {
|
---|
| 106 | return _maxResC1;
|
---|
| 107 | }
|
---|