BCISCorrector.cpp
Go to the documentation of this file.
1 //==============================================================================
2 //
3 // This file is part of GNSSTk, the ARL:UT GNSS Toolkit.
4 //
5 // The GNSSTk is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published
7 // by the Free Software Foundation; either version 3.0 of the License, or
8 // any later version.
9 //
10 // The GNSSTk is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with GNSSTk; if not, write to the Free Software Foundation,
17 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 //
19 // This software was developed by Applied Research Laboratories at the
20 // University of Texas at Austin.
21 // Copyright 2004-2022, The Board of Regents of The University of Texas System
22 //
23 //==============================================================================
24 
25 //==============================================================================
26 //
27 // This software was developed by Applied Research Laboratories at the
28 // University of Texas at Austin, under contract to an agency or agencies
29 // within the U.S. Department of Defense. The U.S. Government retains all
30 // rights to use, duplicate, distribute, disclose, or release this software.
31 //
32 // Pursuant to DoD Directive 523024
33 //
34 // DISTRIBUTION STATEMENT A: This software has been approved for public
35 // release, distribution is unlimited.
36 //
37 //==============================================================================
38 
39 
40 #include "BCISCorrector.hpp"
41 
42 namespace gnsstk
43 {
46  : navLib(nl)
47  {
49  }
50 
51 
52  bool BCISCorrector ::
53  getCorr(const Position& rxPos, const Position& svPos,
54  const SatID& sat, const ObsID& obs,
55  const CommonTime& when, NavType nav,
56  double& corrOut)
57  {
58  if (navLib.getISC(sat, obs, when, corrOut))
59  {
60  return true;
61  }
62  corrOut = std::numeric_limits<double>::quiet_NaN();
63  return false;
64  }
65 
66 
67  bool BCISCorrector ::
68  getCorr(const Position& rxPos, const Xvt& svPos,
69  const SatID& sat, const ObsID& obs,
70  const CommonTime& when, NavType nav,
71  double& corrOut)
72  {
73  Position svp(svPos.x);
74  return getCorr(rxPos, svp, sat, obs, when, nav, corrOut);
75  }
76 } // namespace gnsstk
gnsstk::BCISCorrector::navLib
NavLibrary & navLib
Reference to the nav library from which we will get ISC data.
Definition: BCISCorrector.hpp:75
gnsstk::SatID
Definition: SatID.hpp:89
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::NavLibrary::getISC
bool getISC(const SatID &sat, const ObsID &oid, const CommonTime &when, double &corrOut, SVHealth xmitHealth=SVHealth::Any, NavValidityType valid=NavValidityType::ValidOnly, NavSearchOrder order=NavSearchOrder::User)
Definition: NavLibrary.cpp:225
gnsstk::Xvt::x
Triple x
Sat position ECEF Cartesian (X,Y,Z) meters.
Definition: Xvt.hpp:151
gnsstk::NavLibrary
Definition: NavLibrary.hpp:944
gnsstk::ObsID
Definition: ObsID.hpp:82
gnsstk::CommonTime
Definition: CommonTime.hpp:84
nl
int nl
Definition: IERS1996NutationData.hpp:44
gnsstk::Xvt
Definition: Xvt.hpp:60
gnsstk::CorrectorType::ISC
@ ISC
Inter-signal bias corrector.
gnsstk::Position
Definition: Position.hpp:136
gnsstk::BCISCorrector::BCISCorrector
BCISCorrector(NavLibrary &nl)
Definition: BCISCorrector.cpp:45
BCISCorrector.hpp
gnsstk::NavType
NavType
Supported navigation types.
Definition: NavType.hpp:58
gnsstk::GroupPathCorrector::corrType
CorrectorType corrType
Set by child classes, indicates what type of bias is computed.
Definition: GroupPathCorrector.hpp:87
gnsstk::BCISCorrector::getCorr
bool getCorr(const Position &rxPos, const Position &svPos, const SatID &sat, const ObsID &obs, const CommonTime &when, NavType nav, double &corrOut) override
Definition: BCISCorrector.cpp:53


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:38