亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gpsrcvr.c

?? C寫的用軟件無線電實現的GPS模擬程序
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* ************************************************************************    *                                                                      *   *                          GPS Simulation                              *   *                                                                      *   * -------------------------------------------------------------------- *   *                                                                      *   *    Module:   gpsrcvr.c                                               *   *                                                                      *   *   Version:   0.1                                                     *   *                                                                      *   *      Date:   17.02.02                                                *   *                                                                      *   *    Author:   G. Beyerle                                              *   *                                                                      *   * -------------------------------------------------------------------- *   *                                                                      *   * Copyright (c) 1996-2001 Clifford Kelley.  All Rights Reserved.       *   * Copyright (C) 2002-2006 Georg 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.            *   *                                                                      *   * -------------------------------------------------------------------- *   *                                                                      *   * The files 'gpsfuncs.cpp', 'gpsrcvr.cpp' and 'gp2021.cpp' are modi-   *   * fied versions of the files with the same name from Clifford Kelley's *    * OpenSourceGPS distribution. The unmodified files can be obtained     *   * from http://www.home.earthlink.net/~cwkelley                         *   *                                                                      *   * -------------------------------------------------------------------- *   *                                                                      *   *                                GPS receiver                          *   *                                                                      *   ************************************************************************ *//* ******************************* changes ********************************   dd.mm.yy -   ************************************************************************ *//***********************************************************************  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-2001 Clifford Kelley.  All Rights Reserved.  This LICENSE must be included with the GPSRCVR 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.*/////  Additional structure definitions//typedef struct velocity{  double  east, north, up,           clock_err,           x, y, z;} VELOCITY;typedef struct hms{ int   deg,        min; float sec;} HMS;HMS cur_lat, cur_long;int a_missed, n_chan, chmax = 11;unsigned test[16]={   0x0001, 0x0002, 0x0004, 0x0008,   0x0010, 0x0020, 0x0040, 0x0080,  0x0100, 0x0200, 0x0400, 0x0800,   0x1000, 0x2000, 0x4000, 0x8000};int prn_code[37] = {   0,       0x3f6, 0x3ec, 0x3d8, 0x3b0, 0x04b, 0x096, 0x2cb, 0x196, 0x32c,  0x3ba, 0x374, 0x1d0, 0x3a0, 0x340, 0x280, 0x100, 0x113, 0x226,  0x04c, 0x098, 0x130, 0x260, 0x267, 0x338, 0x270, 0x0e0, 0x1c0,  0x380, 0x22b, 0x056, 0x0ac, 0x158, 0x058, 0x18b, 0x316, 0x058};////   include files//#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#include <time.h>#include <assert.h>#ifdef __TURBOC__# include <conio.h>#endif#include "ogsdefine.h"#include "ogsstructs.h"#include "ogsextern.h"#include "ogsprototypes.h"#include "ogslibrary.h"//#include "gp2021.cpp"//#include "gpsfuncs.cpp"#define IRQLEVEL        0       // IRQ Line#define FRQUNIT         42.57475e-3// Function definitions//  These are arrays for debugging//  they can be written into while running and dumped to a//  file at the end of the rum//  int far i_prmtpta[6][1500],far q_prmtpta[6][1500];//  int far i_dithera[6][1500],far q_dithera[6][1500];//  long far car_freq[6][1500],far chip_freq[6][1500];//// definitions with default values which can be overridden in// file 'rcvr_par.dat'//static int    nav_tic,               search_max_f,               search_min_f  = 0,               cold_prn      = 1,              pull_in_time  = 1000,   // pull in time in msec              phase_test    = 500,              confirm_m     = 10,              n_of_m_thresh = 8,              key,              tic_count     = 0,              hms_count     = 0,              nav_count,              min_flag,              nav_flag,              sec_flag,              n_track;static unsigned int interr_int = 512;static long   rms              = 312,       // noise RMS              acq_thresh       = 650,              code_corr,              time_on          = 0,              delta_frq        = 4698,      // carrier frq search interval in units of 42.6 mHz (200 Hz)              d_tow,              trk_div             = 19643;static float  clock_offset        = -0.6,              cod_lock_det_thresh = 0.5;static float  nav_up              = 1.0;//              pull_code_k   = 111,//              pull_code_d   = 7,//              pull_carr_k   = -12,//              pull_carr_d   = 28,//              trk_code_k    = 55, //              trk_code_d    = 3, //              trk_carr_k    = -9, //              trk_carr_d    = 21,// typical values// loop gain//   CodGain  = 50e-3;    50 if chips are used//   CarGain  = 4*pi*100;  // band width//   CodBW    =  1;  //   CarBW    = 20; // damping ratio//   DampRatio = 0.707 : PLL is critically dampedstatic float   bw_car_track    = 25,                 damp_car_track  = 0.707,                gain_car_track  = 4*M_PI*0.1,                bw_cod_track    = 1,                 damp_cod_track  = 0.707,                gain_cod_track  = 50,                  bw_car_pullin   = 25,                 damp_car_pullin = 0.707,                gain_car_pullin = 4*M_PI*0.1,                bw_cod_pullin   = 1,                 damp_cod_pullin = 0.707,                gain_cod_pullin = 50;static double speed, heading;static ECEF   rec_pos_ecef;static PVT    rpvt;//  write messages to log filestatic int out_pos    = 1,            out_vel    = 1,            out_time   = 1,            out_kalman = 1,            out_debug  = 1;typedef struct{} CONTROLPARAMETER;CONTROLPARAMETER Par;static float  car_PLL_track_p1,               car_PLL_track_p2,              cod_PLL_track_p1,               cod_PLL_track_p2,              car_PLL_pullin_p1,               car_PLL_pullin_p2,              cod_PLL_pullin_p1,               cod_PLL_pullin_p2;/* ------------------------------- globals ---------------------------------- */time_t thetime;/* ------------------------------ prototypes -------------------------------- */static void ch_confirm( char ch);static void ch_pull_in( char ch);static void ch_track( char ch);static void ch_acq( char ch);static void read_rcvr_par( void);void write_to_file_carfrq( long car_frq, int prn);void write_to_file_IQ( long Ip, long Qp, int prn);void write_to_file_navbit( int ch);/* ------------------------------ functions --------------------------------- *//*******************************************************************************FUNCTION do_the_tracking()RETURNS  None.PARAMETERS None.PURPOSE  This function replaces the current IRQ0 Interrupt service routine with  our GPS function.WRITTEN BY  Clifford Kelley*******************************************************************************/static int do_the_tracking( void){  int astat, mstat, res = 0;  unsigned int add;  char ch;// acquire data and correlate, returns from software_correlator(),// if there is something to process  if ( !run_software_correlator())  {    printf( "Simulation finished.\n");//    exit(1);    res = -1;    return (res);  }  to_gps( 0x80, 0);            // tell GP2021 to latch the correlators  a_missed = from_gps( 0x83);  // missed dump event?  astat    = from_gps( 0x82);  // get info on what channels have data ready  for ( ch=0; ch<=chmax; ch++)  {    if ( astat & test[ch])    {      add = 0x84 + ( ch << 2);           // 4 byte per channel      chan[ch].i_dith = from_gps( add);  // inphase dither      add++;      chan[ch].q_dith = from_gps( add);  // quadrature dither      add++;      chan[ch].i_prmt = from_gps( add);  // inphase prompt      add++;      chan[ch].q_prmt = from_gps( add);  // quadrature prompt      ch_accum_reset( ch);      if ( a_missed & test[ch])      {        chan[ch].missed++;        ch_accum_reset( ch);      }    }  }  for ( ch=0; ch<=chmax; ch++)  {    if ( astat & test[ch])    {      switch( chan[ch].state)      {        case acquisition:          ch_acq( ch);          break;        case confirm:          ch_confirm( ch);          break;        case pull_in:          ch_pull_in( ch);          break;        case track:          ch_track( ch);          break;      }    }  }  mstat = a_missed & 0x2000;             // has a tic occured?  if ( mstat)  {    tic_count = (++tic_count) % 10;    if ( tic_count == 0)       sec_flag = 1;    hms_count = (++hms_count) % 600;    if ( hms_count == 0)       min_flag = 1;    nav_count = (++nav_count) % nav_tic;    if ( nav_count == 0)       nav_flag = 1;    if ( nav_count == 0)    {      add = 1;      for ( ch=0; ch<=chmax; ch++)      {        chan[ch].code_phase     = from_gps( add);      // get carrier        add++;                                         // and code data        chan[ch].carr_cycle_l   = from_gps( add);      // for computing        add++;                                         // pseudorange and        chan[ch].carr_dco_phase = from_gps( add);      // delta-pseudorange        add++;        chan[ch].epoch          = from_gps( add);        add++;        chan[ch].code_dco_phase = from_gps( add);        add++;        chan[ch].carr_cycle_h   = from_gps( add);        add++;        add++;        add++;        chan[ch].meas_bit_time = chan[ch].tr_bit_time;        chan[ch].doppler       = chan[ch].carrier_freq;      }    }  // if ( nav_count == 0)  }  // if ( mstat)#if 0// reset the interrupt  outportb( 0x20, 0x20);#endif  return (res);}/*******************************************************************************FUNCTION display()RETURNS  None.PARAMETERS None.PURPOSE  This function displays the current status of the receiver on the  computer screen.  It is called when there is nothing else to doWRITTEN BY  Clifford Kelley

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一区二区在线看| 久久无码av三级| 亚洲精品视频一区二区| 色香蕉成人二区免费| 亚洲视频免费观看| 色天天综合久久久久综合片| 亚洲免费高清视频在线| 在线看不卡av| 美国毛片一区二区| 久久久国产精品不卡| www.亚洲国产| 亚洲精品v日韩精品| 欧美日韩精品免费| 精品一区二区久久| 国产精品国产三级国产aⅴ入口 | 国产欧美精品国产国产专区 | 精品一区二区三区日韩| 国产亲近乱来精品视频| 一本到三区不卡视频| 日本91福利区| 一区二区三区四区视频精品免费 | 亚洲成精国产精品女| 久久蜜桃一区二区| 欧美日韩国产大片| 丁香天五香天堂综合| 亚洲aaa精品| 亚洲美腿欧美偷拍| 欧美成人午夜电影| 国产亲近乱来精品视频| 欧美日韩一区二区三区四区五区 | 欧美视频一区二区在线观看| 国产精品123| 免费成人在线观看视频| 一区二区三区日韩在线观看| 蜜桃视频第一区免费观看| 亚洲亚洲人成综合网络| 自拍偷自拍亚洲精品播放| 国产婷婷色一区二区三区四区| 91精品国产入口| 欧美在线高清视频| 色噜噜久久综合| 97久久精品人人爽人人爽蜜臀| 国产成人精品综合在线观看 | 男人的j进女人的j一区| 亚洲成av人片在线观看| 亚洲一区二区三区四区的| 亚洲激情成人在线| 亚洲欧美激情一区二区| 亚洲精品免费在线| 亚洲国产日产av| 婷婷国产v国产偷v亚洲高清| 日韩 欧美一区二区三区| 裸体歌舞表演一区二区| 国产精品综合一区二区| 国产精品12区| 欧美中文字幕不卡| 69久久夜色精品国产69蝌蚪网| 91麻豆精品91久久久久久清纯 | 亚洲视频免费在线观看| 午夜精品福利一区二区三区av | 国产精品资源网| jvid福利写真一区二区三区| 色综合久久久网| 在线播放91灌醉迷j高跟美女| 综合久久久久久久| 免费在线看成人av| 国产91丝袜在线18| 一本久道久久综合中文字幕| 91精品国产手机| 日韩精品一区二区三区视频播放| 国产精品一区二区视频| 91色九色蝌蚪| www成人在线观看| 亚洲自拍偷拍网站| 国产精品1024| 欧美一区二区在线不卡| 亚洲色图在线看| 韩国成人在线视频| 7777精品久久久大香线蕉| 日韩伦理电影网| 粉嫩嫩av羞羞动漫久久久| 欧美日韩国产综合一区二区三区| 中文字幕亚洲综合久久菠萝蜜| 国内成+人亚洲+欧美+综合在线| 欧美三片在线视频观看| 一区二区三区欧美| 99这里都是精品| 国产精品污www在线观看| 久久99久久99精品免视看婷婷 | 99久久免费精品| 欧美国产综合一区二区| 国产高清成人在线| 国产精品午夜在线观看| 丁香另类激情小说| 亚洲欧美一区二区久久| 成人av在线一区二区三区| 国产欧美一区二区精品忘忧草| 国产曰批免费观看久久久| 国产欧美日本一区视频| 91小视频在线观看| 午夜视频一区二区| 日韩亚洲欧美综合| 国产精品资源在线看| 中文字幕一区二区三区不卡在线 | 美女在线一区二区| 国产精品网友自拍| 91电影在线观看| 日韩精品午夜视频| 国产午夜亚洲精品理论片色戒| 99久久久精品免费观看国产蜜| 国产精品久久久久毛片软件| 色婷婷激情综合| 激情六月婷婷综合| 亚洲欧美另类综合偷拍| 日韩欧美成人激情| 97久久超碰精品国产| 麻豆中文一区二区| 亚洲自拍偷拍欧美| 久久欧美一区二区| 欧美午夜精品理论片a级按摩| 久久99精品国产麻豆不卡| 精品中文字幕一区二区| 樱花草国产18久久久久| 欧美经典一区二区| 日韩一区二区在线看| 色婷婷久久一区二区三区麻豆| 国产麻豆精品theporn| 日本伊人色综合网| 亚洲精品国产精品乱码不99| 久久亚洲精精品中文字幕早川悠里| 欧美色区777第一页| 99精品国产热久久91蜜凸| 国产精品一区一区| 毛片av中文字幕一区二区| 亚洲成av人在线观看| 一区二区三区在线看| 亚洲精品视频在线看| 亚洲精品中文在线| 亚洲婷婷国产精品电影人久久| 国产日韩欧美精品电影三级在线| 精品日韩一区二区三区| 日韩欧美中文字幕精品| 日韩欧美一级精品久久| 久久综合色天天久久综合图片| 精品粉嫩aⅴ一区二区三区四区| 日韩欧美国产电影| 欧美精品一区二区三区一线天视频 | 性做久久久久久免费观看| 亚洲午夜精品一区二区三区他趣| 亚洲高清免费视频| 亚洲午夜在线视频| 青青草精品视频| 国产精品一级片在线观看| 国产91精品入口| 不卡av在线免费观看| 91成人在线精品| 精品国产乱码久久久久久夜甘婷婷 | 日韩码欧中文字| 午夜不卡av在线| 国产成人在线免费观看| 一本大道久久精品懂色aⅴ| 欧美精选在线播放| 久久久久久久综合日本| 亚洲精品国产无套在线观| 日本不卡不码高清免费观看| 国产成人av电影在线| 欧美在线观看你懂的| 国产欧美日韩三级| 六月丁香综合在线视频| 一本久道久久综合中文字幕| 日韩欧美自拍偷拍| 亚洲一区在线电影| 高清在线不卡av| 日韩你懂的电影在线观看| 亚洲欧美日韩系列| 高清不卡在线观看| 日韩欧美久久一区| 亚洲一区二区三区不卡国产欧美| 国产一区二区伦理| 欧美日本一区二区在线观看| 中文字幕亚洲在| 大胆欧美人体老妇| 国产欧美日韩精品在线| 玖玖九九国产精品| 精品国产伦理网| 久久精品国产精品亚洲综合| 欧美日韩一卡二卡| 亚洲综合自拍偷拍| 在线视频你懂得一区二区三区| 国产精品美女一区二区三区 | 一区二区三区精品| 欧美怡红院视频| 亚洲国产日日夜夜| 欧美日韩在线直播| 日韩精品亚洲一区二区三区免费| 欧美日韩免费一区二区三区| 亚洲国产日日夜夜| 欧美一区二区精品| 韩国一区二区在线观看| 精品国产不卡一区二区三区|