PCodeConst.hpp
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 // PCodeConst.hpp - Constants for GPS X-register manipulation
40 //#define PCODE_DEBUG
41 
42 #ifndef PCodeConst_HPP
43 #define PCodeConst_HPP
44 
45 namespace gnsstk
46 {
48 
52  enum codeType { P_CODE, Y_CODE, BOTH };
53 
55  const int MAX_BIT = 32;
56 
58  const int MAX_PRN_CODE = 210;
59 
61  const int X1_PER_DAY = 57600;
62 
64  const long NUM_6SEC_WORDS = 1918125;
65 
67  const long NUM_X2_WORDS = 1918131;
68 
70  const unsigned int X1A_INIT = 0x0248;
71  const unsigned int X1B_INIT = 0x0554;
72  const unsigned int X2A_INIT = 0x0925;
73  const unsigned int X2B_INIT = 0x0554;
74 
76  const unsigned int X1A_TAPS = 0x0CA0;
77  const unsigned int X1B_TAPS = 0x0F93;
78  const unsigned int X2A_TAPS = 0x0FDD;
79  const unsigned int X2B_TAPS = 0x098E;
80 
82  const int XA_MAX_EPOCH = 3750;
83  const int XB_MAX_EPOCH = 3749;
84 
86  const int XA_COUNT = 4092;
87  const int XB_COUNT = 4093;
88 
93  const long XA_EPOCH_DELAY = 0;
94  const long XB_EPOCH_DELAY = 343;
95 
97  const long X2A_EPOCH_DELAY = 37;
99 } // namespace
100 
101 #endif
gnsstk::X2A_EPOCH_DELAY
const long X2A_EPOCH_DELAY
The 37 chip delay at the end of every X2A epoch.
Definition: PCodeConst.hpp:97
gnsstk::X1B_INIT
const unsigned int X1B_INIT
Definition: PCodeConst.hpp:71
gnsstk::X2A_TAPS
const unsigned int X2A_TAPS
Definition: PCodeConst.hpp:78
gnsstk::X1_PER_DAY
const int X1_PER_DAY
Number of X1 epochs in one day.
Definition: PCodeConst.hpp:61
gnsstk::NUM_6SEC_WORDS
const long NUM_6SEC_WORDS
Number of 4 byte unsigned ints necessary to hold 6 sec of P-code.
Definition: PCodeConst.hpp:64
gnsstk::NUM_X2_WORDS
const long NUM_X2_WORDS
Number of 4 byte unsigned ints necessary to hold an X2 sequence (with leading delay)
Definition: PCodeConst.hpp:67
gnsstk::Y_CODE
@ Y_CODE
Definition: PCodeConst.hpp:52
gnsstk::X2B_INIT
const unsigned int X2B_INIT
Definition: PCodeConst.hpp:73
gnsstk::XB_EPOCH_DELAY
const long XB_EPOCH_DELAY
Definition: PCodeConst.hpp:94
gnsstk::XA_MAX_EPOCH
const int XA_MAX_EPOCH
X?_MAX_EPOCH is the maximum number of epochs in a sequence.
Definition: PCodeConst.hpp:82
gnsstk::XA_EPOCH_DELAY
const long XA_EPOCH_DELAY
Definition: PCodeConst.hpp:93
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::X1A_INIT
const unsigned int X1A_INIT
INIT variables are starting conditions of 12-bit registers (IS-GPS-200)
Definition: PCodeConst.hpp:70
gnsstk::X1A_TAPS
const unsigned int X1A_TAPS
TAPS variables denote which stages of 12-bit registers are XOR'd.
Definition: PCodeConst.hpp:76
gnsstk::codeType
codeType
Definition: PCodeConst.hpp:52
gnsstk::MAX_PRN_CODE
const int MAX_PRN_CODE
Maximum PRN Code number (1-n)
Definition: PCodeConst.hpp:58
gnsstk::BOTH
@ BOTH
Definition: PCodeConst.hpp:52
gnsstk::XA_COUNT
const int XA_COUNT
X?_COUNT is the number of bits in an epoch.
Definition: PCodeConst.hpp:86
gnsstk::MAX_BIT
const int MAX_BIT
Number of bits assumed to be in a unsigned long int.
Definition: PCodeConst.hpp:55
gnsstk::X2B_TAPS
const unsigned int X2B_TAPS
Definition: PCodeConst.hpp:79
gnsstk::P_CODE
@ P_CODE
Definition: PCodeConst.hpp:52
gnsstk::X2A_INIT
const unsigned int X2A_INIT
Definition: PCodeConst.hpp:72
gnsstk::XB_MAX_EPOCH
const int XB_MAX_EPOCH
Definition: PCodeConst.hpp:83
gnsstk::X1B_TAPS
const unsigned int X1B_TAPS
Definition: PCodeConst.hpp:77
gnsstk::XB_COUNT
const int XB_COUNT
Definition: PCodeConst.hpp:87


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