00001 #pragma ident "$Id: PCodeConst.hpp 3140 2012-06-18 15:03:02Z susancummins $" 00002 00003 //============================================================================ 00004 // 00005 // This file is part of GPSTk, the GPS Toolkit. 00006 // 00007 // The GPSTk is free software; you can redistribute it and/or modify 00008 // it under the terms of the GNU Lesser General Public License as published 00009 // by the Free Software Foundation; either version 2.1 of the License, or 00010 // any later version. 00011 // 00012 // The GPSTk is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU Lesser General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU Lesser General Public 00018 // License along with GPSTk; if not, write to the Free Software Foundation, 00019 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 00020 // 00021 // Copyright 2004, The University of Texas at Austin 00022 // 00023 //============================================================================ 00024 00025 //============================================================================ 00026 // 00027 //This software developed by Applied Research Laboratories at the University of 00028 //Texas at Austin, under contract to an agency or agencies within the U.S. 00029 //Department of Defense. The U.S. Government retains all rights to use, 00030 //duplicate, distribute, disclose, or release this software. 00031 // 00032 //Pursuant to DoD Directive 523024 00033 // 00034 // DISTRIBUTION STATEMENT A: This software has been approved for public 00035 // release, distribution is unlimited. 00036 // 00037 //============================================================================= 00038 00039 // PCodeConst.hpp - Constants for GPS X-register manipulation 00040 00041 00042 00043 #ifndef PCodeConst_HPP 00044 #define PCodeConst_HPP 00045 00046 //#define PCODE_DEBUG 00047 00048 namespace gpstk 00049 { 00055 enum codeType { P_CODE, Y_CODE, BOTH }; 00056 00058 const int MAX_BIT = 32; 00059 00061 const int MAX_PRN_CODE = 210; 00062 00064 const int X1_PER_DAY = 57600; 00065 00067 const long NUM_6SEC_WORDS = 1918125; 00068 00070 const long NUM_X2_WORDS = 1918131; 00071 00073 const unsigned int X1A_INIT = 0x0248; 00074 const unsigned int X1B_INIT = 0x0554; 00075 const unsigned int X2A_INIT = 0x0925; 00076 const unsigned int X2B_INIT = 0x0554; 00077 00079 const unsigned int X1A_TAPS = 0x0CA0; 00080 const unsigned int X1B_TAPS = 0x0F93; 00081 const unsigned int X2A_TAPS = 0x0FDD; 00082 const unsigned int X2B_TAPS = 0x098E; 00083 00085 const int XA_MAX_EPOCH = 3750; 00086 const int XB_MAX_EPOCH = 3749; 00087 00089 const int XA_COUNT = 4092; 00090 const int XB_COUNT = 4093; 00091 00096 const long XA_EPOCH_DELAY = 0; 00097 const long XB_EPOCH_DELAY = 343; 00098 00100 const long X2A_EPOCH_DELAY = 37; 00102 } // namespace 00103 00104 #endif
1.3.9.1