📄 ogrt_defines.h
字号:
/* ************************************************************************ * * * OpenGPS Receiver * * * * -------------------------------------------------------------------- * * * * Module: ogrt_defines.h * * * * Version: 0.1 * * * * Date: 13.10.03 * * * * Author: C. Kelley, G. Beyerle * * * * -------------------------------------------------------------------- * * * * Copyright (C) 2001-2003 C. Kelley, G. Beyerle * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * * * -------------------------------------------------------------------- * * * * OpenGPS is based on Clifford Kelley's OpenSourceGPS distribution. * * The OpenSourceGPS distribution can be obtained from * * http://www.home.earthlink.net/~cwkelley * * * * -------------------------------------------------------------------- * * * * Real-time process * * * ************************************************************************ *//* ******************************* changes ******************************** ************************************************************************ *//*********************************************************************** GPS RECEIVER (GPSRCVR) Ver. 1.02 12 Channel All-in-View GPS Receiver Program based on Mitel GP2021 chipset Clifford Kelley cwkelley@earthlink.net Copyright (c) 1996-2002 Clifford Kelley. All Rights Reserved. This LICENSE must be included with the OGR code.***********************************************************************//*Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions aremet: CONDITIONS1. Redistributions of GPSRCVR source code must retain the above copyrightnotice, this list of conditions, and the following disclaimer.2. Redistributions in binary form must contain the above copyrightnotice, this list of conditions and the following disclaimer in thedocumentation and/or other materials provided with the distribution.3. All modifications to the source code must be clearly marked assuch. Binary redistributions based on modified source code must beclearly marked as modified versions in the documentation and/or othermaterials provided with the distribution.4. Notice must be given of the location of the availability of theunmodified current source code, e.g., http://www.Kelley.com/or ftp://ftp.Kelley.comin the documentation and/or other materials provided with thedistribution.5. All advertising and published materials mentioning features or useof this software must display the following acknowledgment: "Thisproduct includes software developed by Clifford Kelley and othercontributors."6. The name of Clifford Kelley may not be used to endorse or promoteproducts derived from this software without specific prior writtenpermission. DISCLAIMERThis software is provided by Clifford Kelley and contributors "as is" andany expressed or implied warranties, including, but not limited to, theimplied warranties of merchantability and fitness for a particularpurpose are disclaimed. In no event shall Clifford Kelley orcontributors be liable for any direct, indirect, incidental, special,exemplary, or consequential damages (including, but not limited to,procurement of substitute goods or services; loss of use, data, orprofits; or business interruption) however caused and on any theory ofliability, whether in contract, strict liability, or tort (includingnegligence or otherwise) arising in any way out of the use of thissoftware, even if advised of the possibility of such damage.*//* ------------------------------- defines -------------------------------- *///#define CARRIER_AIDING// ratio of L1 carrier frq (1.5754 GHz) and code frq (1.023 MHz)#define CARRIER_AIDING_SCALE 1540//#define NOF_CARR_SYNC 240//#define NOF_CARR_SYNC 100//#define RTAI_STACK_SIZE 4000#define RTAI_STACK_SIZE 8000// FIFO buffer sizes //#define FIFOBUFLEN_NAVBIT 10000//#define FIFOBUFLEN_INQUAD 200000#define FIFOBUFLEN_NAVBIT 100#define FIFOBUFLEN_INQUAD 100//#define TICK_PERIOD 101000 /* 0.101 ms */#define TICK_PERIOD 252000 /* 0.252 ms *///#define TICK_PERIOD 505000 /* 0.505 ms *///#define TICK_PERIOD 900000 /* 1.500 ms *///#define TICK_PERIOD 920000 /* 1.500 ms *///#define PERIOD_COUNT 1 /* repeat every period */#define BITPATTERN1 0x5600#define BITPATTERN2 0x1234#define BITPATTERN3 0x7800#define BITPATTERN4 0x4321//#define MODE_UNISAT 1#define PREAMBLE 0x22c00000L // 0x8b << 22#define PARBIT1 0x3b1f3480L#define PARBIT2 0x1d8f9a40L#define PARBIT3 0x2ec7cd00L#define PARBIT4 0x1763e680L#define PARBIT5 0x2bb1f340L#define PARBIT6 0x0b7a89c0L/* --- default values --- */#define CONFIRM_ABOVE_THRESH_MAX 8#define CONFIRM_COUNT_MAX 10#define PULL_IN_COUNT_MAX 1500#define ALIGN_COUNT_MAX 1000/* --- stop if user prg not responsive for more than 'WATCHDOG_USER_MAX' sec */#define WATCHDOG_USER_MAX 20/* ----------------------------- end of file ------------------------------ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -