GalFNavISC.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 //
28 // This software was developed by Applied Research Laboratories at the
29 // University of Texas at Austin, under contract to an agency or agencies
30 // within the U.S. Department of Defense. The U.S. Government retains all
31 // rights to use, duplicate, distribute, disclose, or release this software.
32 //
33 // Pursuant to DoD Directive 523024
34 //
35 // DISTRIBUTION STATEMENT A: This software has been approved for public
36 // release, distribution is unlimited.
37 //
38 //==============================================================================
39 #include <cmath>
40 #include "GalFNavISC.hpp"
41 #include "FreqConv.hpp"
42 
43 using namespace std;
44 
45 namespace gnsstk
46 {
47  GalFNavISC ::
48  GalFNavISC()
49  {
50  weekFmt = "%4L(%4l)";
51  // Galileo F/NAV nominal page transmit time is 10 seconds per
52  // OS-SIS-ICD figure 14.
53  msgLenSec = 10.0;
54  }
55 
56 
57  void GalFNavISC ::
58  dumpCorrections(std::ostream& s) const
59  {
60  const ios::fmtflags oldFlags = s.flags();
61  s << " CORRECTION"
62  << endl << endl
63  << scientific << setprecision(8) << setfill(' ')
64  << setw(20) << left << "BGD(E1,E5a):" << setw(15) << isc << endl;
65  s.flags(oldFlags);
66  }
67 
68 
69  bool GalFNavISC ::
70  validate() const
71  {
72  return !std::isnan(isc);
73  }
74 
75 
76  bool GalFNavISC ::
77  getISC(const ObsID& oid, double& corrOut)
78  const
79  {
80  // if isc is NaN, we definitely can't return anything.
81  if (std::isnan(isc))
82  {
83  return false;
84  }
90  if ((oid.band == CarrierBand::L5) && // same as E5a
91  ((oid.code == TrackingCode::E5aI) ||
92  (oid.code == TrackingCode::E5aQ)))
93  {
94  corrOut = -(getGamma(CarrierBand::L1,oid.band) * isc);
95  return true;
96  }
97  return false;
98  }
99 }
gnsstk::getGamma
double getGamma(CarrierBand band1, CarrierBand band2)
Definition: FreqConv.cpp:67
L1
gnsstk::Matrix< double > L1
Definition: Matrix_LUDecomp_T.cpp:46
example5.oid
oid
Definition: example5.py:29
FreqConv.hpp
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::ObsID
Definition: ObsID.hpp:82
std
Definition: Angle.hpp:142
GalFNavISC.hpp


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