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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? gpsrcvr.c

?? C寫的用軟件無線電實現(xiàn)的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一区二区三区免费野_久草精品视频
不卡高清视频专区| 久久成人精品无人区| 一本色道久久加勒比精品 | 2020国产精品久久精品美国| 蜜桃av噜噜一区二区三区小说| 欧美一级一级性生活免费录像| 天天色图综合网| 欧美电影免费观看高清完整版 | 亚洲乱码国产乱码精品精小说| av亚洲精华国产精华| 日韩美女视频19| 欧美在线观看18| 麻豆一区二区99久久久久| 国产免费观看久久| 欧美在线观看18| 久久成人免费电影| 亚洲免费观看视频| 欧美一区二区在线免费观看| 国产三级三级三级精品8ⅰ区| 亚洲欧洲色图综合| 91女神在线视频| 日日摸夜夜添夜夜添精品视频| 日韩精品一区二区在线| 国产成人在线网站| 天堂蜜桃一区二区三区| 久久精品视频一区| 色妹子一区二区| 国模娜娜一区二区三区| 日韩美女视频一区二区| 日韩午夜三级在线| 91在线porny国产在线看| 麻豆免费精品视频| 亚洲乱码国产乱码精品精小说| 日韩欧美一级片| 色一情一乱一乱一91av| 国产一区二区在线视频| 亚洲观看高清完整版在线观看| 久久久久亚洲蜜桃| 欧美日韩午夜在线视频| 成人av第一页| 久久66热re国产| 亚洲国产精品影院| 国产精品丝袜一区| 日韩女同互慰一区二区| 91激情在线视频| 成人免费毛片嘿嘿连载视频| 麻豆精品国产91久久久久久| 亚洲男人天堂一区| 亚洲国产高清在线观看视频| 欧美一二三四在线| 欧美亚州韩日在线看免费版国语版| 国产精品一级在线| 免费观看成人av| 亚洲福利一区二区三区| 日韩美女视频一区| 国产欧美日韩麻豆91| 精品对白一区国产伦| 欧美日韩国产综合一区二区三区| 色综合天天综合狠狠| 国产成人免费视频一区| 韩国av一区二区三区在线观看| 亚洲18色成人| 亚洲福利一区二区三区| 亚洲综合在线第一页| 亚洲欧美乱综合| 中文字幕一区二区三区蜜月| 中文字幕的久久| 中文字幕av在线一区二区三区| 精品少妇一区二区三区日产乱码 | 一区二区三区四区不卡在线| 国产欧美视频一区二区三区| 日韩欧美亚洲国产另类| 91精品在线观看入口| 欧美妇女性影城| 7777精品伊人久久久大香线蕉超级流畅 | 裸体健美xxxx欧美裸体表演| 天堂成人国产精品一区| 亚洲h在线观看| 日本中文字幕一区| 青娱乐精品视频| 裸体在线国模精品偷拍| 韩国女主播一区二区三区| 国内精品嫩模私拍在线| 国产精品99久久久久久宅男| 高清免费成人av| 成人av电影免费在线播放| 91在线看国产| 欧美午夜影院一区| 91精品国产免费久久综合| 日韩一级二级三级精品视频| 欧美成人福利视频| 国产婷婷色一区二区三区在线| 国产精品视频免费| 亚洲人一二三区| 亚洲第一电影网| 久久爱另类一区二区小说| 国产成人久久精品77777最新版本| 国产盗摄女厕一区二区三区 | 国产主播一区二区三区| 成人美女视频在线观看| 色婷婷av一区二区三区大白胸| 欧美性生活一区| 日韩免费视频线观看| 国产欧美日韩不卡| 亚洲乱码国产乱码精品精小说| 日韩在线a电影| 国产精品一线二线三线精华| 成人av第一页| 欧美浪妇xxxx高跟鞋交| 精品久久久久久最新网址| 国产精品美女一区二区| 亚洲影视在线观看| 激情综合色综合久久| 91在线观看视频| 日韩一区二区三区四区| 欧美极品少妇xxxxⅹ高跟鞋| 亚洲一区精品在线| 国产精品白丝av| 欧美日本精品一区二区三区| 久久亚洲二区三区| 亚洲午夜日本在线观看| 狠狠色丁香久久婷婷综合_中| av福利精品导航| 日韩一区二区在线观看视频播放| 亚洲欧洲www| 久久er99精品| 欧日韩精品视频| 久久久午夜精品| 视频在线观看91| 一本大道久久a久久精品综合| 日韩美女视频在线| 亚洲高清免费观看| a级精品国产片在线观看| 在线电影一区二区三区| 亚洲男女毛片无遮挡| 精品一区二区在线看| 欧美性极品少妇| 中文字幕一区三区| 国产在线一区二区综合免费视频| 欧美性受极品xxxx喷水| 亚洲国产精品精华液ab| 精品综合久久久久久8888| 欧美体内she精高潮| 国产精品国产三级国产专播品爱网| 日本欧美一区二区三区乱码| 色中色一区二区| 国产精品久久午夜夜伦鲁鲁| 国模无码大尺度一区二区三区| 777午夜精品视频在线播放| 亚洲伦理在线精品| 91美女在线看| 最新国产成人在线观看| 国产1区2区3区精品美女| 久久久久久久久免费| 久久不见久久见中文字幕免费| 3atv一区二区三区| 丝袜美腿亚洲色图| 欧美日韩国产影片| 亚洲成人综合视频| 欧美三级资源在线| 亚洲一区中文在线| 欧美在线视频不卡| 亚洲成人你懂的| 欧美日韩高清一区| 日日噜噜夜夜狠狠视频欧美人| 欧美日韩中文另类| 亚洲国产精品自拍| 欧美理论电影在线| 蜜臀久久99精品久久久画质超高清| 欧美日韩高清一区二区不卡| 日韩福利视频导航| 欧美一区二区三区四区久久| 青青草原综合久久大伊人精品 | 另类欧美日韩国产在线| 欧美成人video| 国产一区二区久久| 国产视频一区在线观看| 国产成人精品午夜视频免费| 中国av一区二区三区| 91麻豆国产自产在线观看| 亚洲精品国产高清久久伦理二区| 色伊人久久综合中文字幕| 亚洲一区二区三区中文字幕在线| 欧美婷婷六月丁香综合色| 日韩激情一二三区| 欧美成人猛片aaaaaaa| 国产成+人+日韩+欧美+亚洲| 自拍偷拍国产精品| 欧美性极品少妇| 久久成人免费网| 国产精品久久久久久久久快鸭| 91久久精品日日躁夜夜躁欧美| 亚洲大片免费看| 久久综合资源网| www.亚洲激情.com| 亚洲综合色成人| 精品国产乱码久久久久久免费| 成人毛片视频在线观看| 亚洲v精品v日韩v欧美v专区| 日韩一区二区三区免费看|