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

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

?? gpsfuncs.c

?? C寫的用軟件無線電實現的GPS模擬程序
?? C
?? 第 1 頁 / 共 5 頁
字號:
  buf = conmalloc( strlen( OGSDataDir) + strlen( infile) + 1);  strcpy( buf, OGSDataDir);  strcat( buf, infile);  if ((in = fopen( buf, "rt")) == NULL)  {    printf( "error opening '%s'.\n", buf);    for ( id=1; id<=32; id++)    {      gps_alm[id].week = gps_week-1;      gps_alm[id].inc  = 1.0;    }  }  else  {    status = warm_start;    while ( !feof( in))                // GB: replaced eof() by feof()    {      fscanf( in, "%45c", &header);      fscanf( in, "%27c", &text);      fscanf( in, "%d", &id);      fscanf( in, "%27c", &text);      fscanf( in, "%i", &health);      fscanf( in, "%27c", &text);      fscanf( in, "%f", &eccen);      fscanf( in, "%27c", &text);      fscanf( in, "%f", &toa);      fscanf( in, "%27c", &text);      fscanf( in, "%f", &rinc);      fscanf( in, "%27c", &text);      fscanf( in, "%f", &rras);      fscanf( in, "%27c", &text);      fscanf( in, "%f", &sqra);      fscanf( in, "%27c", &text);      fscanf( in, "%f", &ratoa);      fscanf( in, "%27c", &text);      fscanf( in, "%f", &aopg);      fscanf( in, "%27c", &text);      fscanf( in, "%f", &rma);      fscanf( in, "%27c", &text);      fscanf( in, "%f", &af0);      fscanf( in, "%27c", &text);      fscanf( in, "%f", &af1);      fscanf( in, "%27c", &text);      fscanf( in, "%i", &week);      fscanf( in, "%c", &trailer);      gps_alm[id].health   = health;      gps_alm[id].week     = week;      gps_alm[id].toa      = toa;      gps_alm[id].ety      = eccen;      gps_alm[id].toa      = toa;      gps_alm[id].inc      = rinc;      gps_alm[id].omegadot = rras;      gps_alm[id].sqra     = sqra;      gps_alm[id].omega0   = ratoa;      gps_alm[id].w        = aopg;      gps_alm[id].ma       = rma;      gps_alm[id].af0      = af0;      gps_alm[id].af1      = af1;      gps_alm[id].sat_file = 0;      if (gps_alm[id].sqra > 0.0)         gps_alm[id].w = 19964981.84/pow(gps_alm[id].sqra,3);    }    fclose( in);    alm_gps_week = week;    alm_toa      = toa;  }  if ( buf)    free( buf);  return;}/*******************************************************************************FUNCTION read_ephemeris()RETURNS  None.PARAMETERS None.PURPOSE  This function WRITTEN BY  Clifford Kelley*******************************************************************************/void read_ephemeris( void){  int     id,health,week;  double  toc,toe;  double  crc, crs, cic, cis, cuc, cus, tgd, ety, inc0, omegadot, w0, w, ma;  double  daf0, daf1, daf2, esqra;  float   d_toe;  char infile[] = "current.eph";  char *buf;  FILE *in;  buf = conmalloc( strlen( OGSDataDir) + strlen( infile) + 1);  strcpy( buf, OGSDataDir);  strcat( buf, infile);  if (( in = fopen( buf, "rt")) == NULL)  {    printf( "error opening '%s'.\n", buf);  }  else  {    while ( !feof( in))                // GB: replaced eof() by feof()    {      fscanf( in, "%37c", &header);      fscanf( in, "%27c", &text);      fscanf( in, "%i", &id);      fscanf( in, "%27c", &text);      fscanf( in, "%i", &health);      fscanf( in, "%27c", &text);      fscanf( in, "%i", &week);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &toe);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &toc);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &tgd);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &daf0);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &daf1);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &daf2);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &ety);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &inc0);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &omegadot);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &esqra);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &w0);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &w);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &ma);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &cuc);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &cus);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &crc);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &crs);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &cic);      fscanf( in, "%27c", &text);      fscanf( in, "%le", &cis);      fscanf( in, "%c", &trailer);      d_toe = clock_tow-toe;      if ( d_toe > 302400.0)         d_toe = d_toe-604800.0;      else if (d_toe < -302400.0)        d_toe = d_toe + 604800.0;////    If week is current and time is less than 2 hours old use for hot start//    note: gps_week is computed from the PCs real time clock//          and does not roll over at 1024//      if ( week == (gps_week % 1024) && fabs( d_toe) < 7200.0)         gps_eph[id].valid=1;      gps_eph[id].health   = health;      gps_eph[id].week     = week;      gps_eph[id].toe      = toe;      gps_eph[id].toc      = toc;      gps_eph[id].tgd      = tgd;      gps_eph[id].af0      = daf0;      gps_eph[id].af1      = daf1;      gps_eph[id].af2      = daf2;      gps_eph[id].ety      = ety;      gps_eph[id].inc0     = inc0;      gps_eph[id].omegadot = omegadot;      gps_eph[id].sqra     = esqra;      gps_eph[id].omega0       = w0;      gps_eph[id].w        = w;      gps_eph[id].ma       = ma;      gps_eph[id].cuc      = cuc;      gps_eph[id].cus      = cus;      gps_eph[id].crc      = crc;      gps_eph[id].crs      = crs;      gps_eph[id].cic      = cic;      gps_eph[id].cis      = cis;      if (gps_eph[id].sqra > 0.0)         gps_eph[id].wm = 19964981.84 / pow( gps_eph[id].sqra, 3);    }    fclose( in);  }  if ( buf)    free( buf);  return;}/*******************************************************************************FUNCTION write_almanac()RETURNS  None.PARAMETERS None.PURPOSE  This function writes the broadcast almanac data to a file for later      use.  In particular to support a warm or hot start.WRITTEN BY  Clifford Kelley*******************************************************************************/void write_almanac( void){  int i;  out = fopen( "current.alm", "w+");  if ( !out)  {    printf( "write_almanac: error opening file 'current.alm'.\n");    exit(-1);  }  for (i=1;i<=32;i++)  {    if ( gps_alm[i].inc > 0.0)    {//******** Week  131 almanac for PRN-01 ********//ID:                         01//Health:                     000//Eccentricity:               0.5362033844E-002//Time of Applicability(s):  589824.0000//Orbital Inclination(rad):   0.9676266920//Rate of Right Ascen(r/s):  -0.8126052768E-008//SQRT(A)  (m 1/2):           5153.620605//Right Ascen at Week(rad):  -0.1178026838E+001//Argument of Perigee(rad):  -1.701721362//Mean Anom(rad):             0.2097295909E+001//Af0(s):                     0.2183914185E-003//Af1(s/s):                   0.3637978807E-011//week:                        131      fprintf( out, "******** Week %4d almanac for PRN-%02d ********\n",        gps_alm[i].week % 1024, i);      fprintf( out, "ID:                         %02d\n", i);      fprintf( out, "Health:                     %03d\n", gps_alm[i].health);      fprintf( out, "Eccentricity:               %10.9e\n", gps_alm[i].ety);      fprintf( out, "Time of Applicability(s):   %10.9e\n", gps_alm[i].toa);      fprintf( out, "Orbital Inclination(rad):   %10.9e\n", gps_alm[i].inc);      fprintf( out, "Rate of Right Ascen(R/s):   %10.9e\n", gps_alm[i].omegadot);      fprintf( out, "SQRT(A) (m^1/2):            %10.9e\n", gps_alm[i].sqra);      fprintf( out, "Right Ascen at TOA(rad):    %10.9e\n", gps_alm[i].omega0);      fprintf( out, "Argument of Perigee(rad):   %10.9e\n", gps_alm[i].w);      fprintf( out, "Mean Anom(rad):             %10.9e\n", gps_alm[i].ma);      fprintf( out, "Af0(s):                     %10.9e\n", gps_alm[i].af0);      fprintf( out, "Af1(s/s):                   %10.9e\n", gps_alm[i].af1);      fprintf( out, "week:                       %4d   \n", gps_alm[i].week % 1024);      fprintf( out, "\n");    }  }  fclose(out);}/*******************************************************************************FUNCTION write_ephemeris()RETURNS  None.PARAMETERS None.PURPOSE  This function writes the broadcast ephemeris data to a file for later  use.  In particular to support a hot start.WRITTEN BY  Clifford Kelley*******************************************************************************/void write_ephemeris(){  int i;  out = fopen( "current.eph", "w+");  if ( !out)  {    printf( "write_ephemeris: error opening file 'current.eph'\n");    exit(-1);  }  for ( i=1; i<=32; i++)  {    if ( gps_eph[i].inc0 >0.0)    {      fprintf( out, "**** Ephemeris for PRN-%02d ***********\n", i);      fprintf( out, "ID:                         %3d\n",    i);      fprintf( out, "Health:                     %3d\n",    gps_eph[i].health);      fprintf( out, "Week:                       %4d\n",    gps_eph[i].week);      fprintf( out, "E Time of Applic(s):        %10.9e\n", gps_eph[i].toe);      fprintf( out, "C Time of Applic(s):        %10.9e\n", gps_eph[i].toc);      fprintf( out, "Tgd(s):                     %10.9e\n", gps_eph[i].tgd);      fprintf( out, "Af0(s):                     %10.9e\n", gps_eph[i].af0);      fprintf( out, "Af1(s/s):                   %10.9e\n", gps_eph[i].af1);      fprintf( out, "Af2(s/s/s):                 %10.9e\n", gps_eph[i].af2);      fprintf( out, "Eccentricity:               %10.9e\n", gps_eph[i].ety);      fprintf( out, "Orbital Inclination(rad):   %10.9e\n", gps_eph[i].inc0);      fprintf( out, "Rate of Right Ascen(R/s):   %10.9e\n", gps_eph[i].omegadot);      fprintf( out, "SQRT(A) (m^1/2):            %10.9e\n", gps_eph[i].sqra);      fprintf( out, "Right Ascen at TOE(rad):    %10.9e\n", gps_eph[i].omega0);      fprintf( out, "Argument of Perigee(rad):   %10.9e\n", gps_eph[i].w);      fprintf( out, "Mean Anom(rad):             %10.9e\n", gps_eph[i].ma);      fprintf( out, "Cuc(rad):                   %10.9e\n", gps_eph[i].cuc);      fprintf( out, "Cus(rad):                   %10.9e\n", gps_eph[i].cus);      fprintf( out, "Crc(m):                     %10.9e\n", gps_eph[i].crc);      fprintf( out, "Crs(m):                     %10.9e\n", gps_eph[i].crs);      fprintf( out, "Cic(rad):                   %10.9e\n", gps_eph[i].cic);      fprintf( out, "Cis(rad):                   %10.9e\n", gps_eph[i].cis);      fprintf( out, "\n");    }  }  fclose(out);}/*******************************************************************************FUNCTION write_ion_utc()RETURNS  None.PARAMETERS None.PURPOSE  This function writes the broadcast ionospheric correction data and the      parameters to tie GPS time to UTC to a file for later use.WRITTEN BY  Clifford Kelley*******************************************************************************/void write_ion_utc(){  FILE *out;  out = fopen( "ion_utc.dat", "w+");  if ( !out)  {    printf( "write_ion_utc: error opening file 'ion_utc.dat'\n");    exit(-1);  }  fprintf( out, "al0:                        %e\n", Iono.al0);  fprintf( out, "al1:                        %e\n", Iono.al1);  fprintf( out, "al2:                        %e\n", Iono.al2);  fprintf( out, "al3:                        %e\n", Iono.al3);  fprintf( out, "b0:                         %f\n", Iono.b0);  fprintf( out, "b1:                         %f\n", Iono.b1);  fprintf( out, "b2:                         %f\n", Iono.b2);  fprintf( out, "b3:                         %f\n", Iono.b3);  fprintf( out, "a0:                         %f\n", Utc.a0);  fprintf( out, "a1:                         %f\n", Utc.a1);  fprintf( out, "dtls:                       %f\n", Utc.dtls);  fprintf( out, "tot:                        %f\n", Utc.tot);  fprintf( out, "WNt:                        %f\n", Utc.WNt);  fprintf( out, "WNlsf:                      %f\n", Utc.WNlsf);  fprintf( out, "DN:                         %f\n", Utc.DN);  fprintf( out, "dtlsf:                      %f\n", Utc.dtlsf);  fclose( out);  return;}/*******************************************************************************FUNCTION fix_sqrt( long x)RETURNS  long integerPARAMETERS      x long integerPURPOSE  This function finds the fixed point square root of a long integerWRITTEN BY  Clifford Kelley*******************************************************************************/long fix_sqrt( long x){  long xt, scr;  int i;// --- take care of sqrt(0) --- (G.B. 02.04.08)  if ( !x)    return (0);  i  = 0;  xt = x;  do  {    xt = xt >> 1;    i++;  } while( xt>0);  i  = (i >> 1) + 1;  xt = x >> i;  do  {     scr = xt * xt;     scr = x - scr;     scr = scr >> 1;     scr = scr / xt;  

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲3atv精品一区二区三区| 日韩视频一区在线观看| 国产精品久久久久影视| 成人国产电影网| 亚洲欧美国产77777| 色婷婷av一区二区三区gif| 一区二区三区四区蜜桃| 欧美亚洲综合久久| 日韩成人伦理电影在线观看| 精品国产免费一区二区三区香蕉| 国产乱人伦精品一区二区在线观看| 国产精品日产欧美久久久久| 欧美亚洲国产一区在线观看网站| 免费人成精品欧美精品 | 激情偷乱视频一区二区三区| 精品国产乱码91久久久久久网站| 国产成人一区在线| 亚洲黄色小说网站| 欧美成人一区二区| av亚洲精华国产精华精华| 亚洲电影欧美电影有声小说| 精品久久人人做人人爱| 不卡一卡二卡三乱码免费网站| 一区二区三区中文在线观看| 精品国产一区二区三区久久久蜜月| 成人国产亚洲欧美成人综合网 | 51午夜精品国产| 国产一区二区免费看| 一区二区在线观看视频在线观看| 欧美一级夜夜爽| 91首页免费视频| 久久99在线观看| 亚洲视频免费在线| 欧美精品一区二区三区高清aⅴ| 92国产精品观看| 激情综合网天天干| 亚洲精品你懂的| 久久久亚洲午夜电影| 欧美日韩精品二区第二页| 丰满放荡岳乱妇91ww| 日本中文在线一区| 亚洲激情成人在线| 国产精品丝袜91| 亚洲精品一线二线三线| 在线观看日韩av先锋影音电影院| 狠狠色丁香九九婷婷综合五月| 一区二区三区在线高清| 国产色综合久久| 日韩一区二区三| 欧美亚洲精品一区| 色一情一乱一乱一91av| 国产很黄免费观看久久| 日韩成人免费电影| 亚洲国产sm捆绑调教视频| 国产精品久久久久影院亚瑟 | 老鸭窝一区二区久久精品| 国产精品传媒入口麻豆| 精品国产乱码久久久久久浪潮| 欧美日韩大陆在线| 在线免费亚洲电影| 色综合激情久久| 色综合久久久久| 91同城在线观看| 99久久久国产精品| 99免费精品在线| 成人美女视频在线观看18| 国产精品1区二区.| 国产最新精品免费| 国产毛片精品一区| 国产精品一区二区在线播放 | 日本在线不卡视频一二三区| 亚洲高清视频中文字幕| 亚洲一区成人在线| 亚洲成av人综合在线观看| 一区二区三区精品在线观看| 国产精品久久久久影视| 国产精品毛片无遮挡高清| 国产亚洲午夜高清国产拍精品 | 北条麻妃一区二区三区| 国产福利91精品一区| 国产一区二区美女| 粉嫩一区二区三区在线看| 国产精品正在播放| 国产宾馆实践打屁股91| 成人精品视频一区二区三区尤物| 丁香五精品蜜臀久久久久99网站| 国产成a人亚洲| a4yy欧美一区二区三区| 99精品视频在线播放观看| 97久久精品人人做人人爽| 91美女福利视频| 欧美日韩不卡一区| 欧美变态口味重另类| 国产女人18水真多18精品一级做 | 欧美一级在线视频| 久久久久久久久97黄色工厂| 国产精品色婷婷久久58| 亚洲综合在线视频| 蜜臀精品久久久久久蜜臀 | 中文字幕日本不卡| 亚洲免费观看高清完整版在线观看| 亚洲国产三级在线| 久久精品理论片| 成人app软件下载大全免费| 色综合天天性综合| 欧美乱妇20p| 国产欧美1区2区3区| 亚洲午夜精品一区二区三区他趣| 久久精品国产99国产精品| 成人毛片老司机大片| 欧美人与性动xxxx| 久久久久88色偷偷免费| 亚洲综合一区二区精品导航| 精品一区二区三区在线观看 | eeuss国产一区二区三区| 色域天天综合网| 精品欧美黑人一区二区三区| 一区在线播放视频| 蜜桃视频在线观看一区二区| 成人a免费在线看| 欧美日韩国产另类一区| 国产精品国产三级国产aⅴ无密码| 亚洲成人动漫av| 国产a精品视频| 91麻豆精品91久久久久久清纯| 国产精品乱子久久久久| 日韩av电影天堂| 9i在线看片成人免费| 欧美一级在线免费| 一区二区三区中文免费| 岛国av在线一区| 日韩欧美久久久| 亚洲一区二区三区四区在线观看 | 精品污污网站免费看| 国产欧美日韩麻豆91| 免费欧美在线视频| 欧美日韩在线一区二区| 国产精品久久久久影视| 国产在线看一区| 欧美日韩一级大片网址| 日韩一区有码在线| 国产河南妇女毛片精品久久久| 欧美三级电影一区| 一区二区三区在线观看欧美| 成人av在线网站| 久久新电视剧免费观看| 秋霞电影一区二区| 欧美日韩精品一区二区三区蜜桃| 国产精品人成在线观看免费| 国产一区二区美女| 26uuu国产日韩综合| 日韩激情在线观看| 欧美三级资源在线| 亚洲天堂福利av| 91麻豆国产福利精品| 国产精品久久久久久久裸模| 国产精品一区不卡| 国产亚洲欧美激情| 国产乱码精品一区二区三 | 国产精品久久久久永久免费观看| 国产原创一区二区| 2024国产精品视频| 韩国精品久久久| 精品国偷自产国产一区| 麻豆91精品视频| 日韩女优毛片在线| 久久99久国产精品黄毛片色诱| 日韩欧美国产一区二区在线播放| 日韩影视精彩在线| 日韩欧美一区二区在线视频| 天天亚洲美女在线视频| 欧美日韩国产美| 久久福利资源站| 久久综合久久综合久久综合| 国产成人在线视频网站| 亚洲欧美综合在线精品| 色综合久久综合| 亚洲一二三四在线观看| 精品视频123区在线观看| 日韩成人一区二区三区在线观看| 日韩欧美激情四射| 国产成人在线看| 一区二区三区四区视频精品免费 | 婷婷一区二区三区| 日韩视频一区在线观看| 国产精品综合在线视频| 国产精品卡一卡二| 色天使色偷偷av一区二区| 丝袜诱惑亚洲看片| 精品国产一区二区三区四区四| 国产精品亚洲视频| 亚洲码国产岛国毛片在线| 69久久夜色精品国产69蝌蚪网| 九九精品一区二区| 国产精品久久久久久久蜜臀| 欧美三级资源在线| 国产精品亚洲专一区二区三区| ●精品国产综合乱码久久久久| 欧美日韩国产大片| 丰满亚洲少妇av|