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

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

?? gps-flyer.cpp

?? UAV 自動駕駛的
?? CPP
字號:
/* -*- indent-tabs-mode:T; c-basic-offset:8; tab-width:8; -*- vi: set ts=8: *  $Id: gps-flyer.cpp,v 1.2 2002/10/04 23:04:06 tramm Exp $ * * (c) Trammell Hudson * (c) Aaron Kahn * * AHRS simulator based on Kalman filtering of the gyro and * accelerometer data.  Converted from Aaron's matlab code * to use the C++ math library. * ************** * *  This file is part of the autopilot simulation package. * *  Autopilot 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. * *  Autopilot 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 Autopilot; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA * */#include <imu-filter/imu-filter.h>#include <imu-filter/INS.h>#include <controller/Attitude.h>#include <mat/Conversions.h>#include <mat/Quat.h>#include <mat/Nav.h>#include <iostream>#include <fstream>#include "macros.h"#include "timer.h"#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>using namespace imufilter;using namespace libcontroller;using namespace libmat;using namespace std;using namespace util;static bool		real_time	= false;static int		dt_usec		= 32768;static double		dt		= double(dt_usec) / 1000000.0;static int		serial_fd;/* *  Convert a GPS object into an ECEF position */const Vector<3>gps2xyz(	const GPS &		/* gps */){	return Vector<3>( 0, 0, 0 );/*	const double		lat_rad = gps.latitude * C_DEG2RAD;	const double		lon_rad = gps.longitude * C_DEG2RAD;	const Vector<3>		llh(		lat_rad,		lon_rad,		gps.wgs_alt	);	return ECEF2Tangent(		llh2ECEF( llh ),		lat_rad,		lon_rad	);*/}/* *  Convert a GPS object into a body frame velocity. * We need an attitude estimate for this to work. * * XXX: Faked until I talk with Aaron */const Vector<3>gps2uvw(	const GPS &		/* gps */,	const Vector<3> &	/* theta */){	return Vector<3>( 0, 0, 0 );}intmain(	int			argc,	const char **		argv){	const char *		serial_dev = "/dev/ttyS0";	if( argc > 1 )		serial_dev = argv[1];	serial_fd = open( serial_dev, O_RDWR, 0666 );	if( !serial_fd )	{		perror( serial_dev );		return -1;	}	IMU_filter		interface(		serial_fd,		real_time,		dt	);	INS 			ins( dt );	IMU &			imu( interface.imu );	GPS &			gps( interface.gps );	Attitude		attitude( dt );	ofstream		angles	( "/tmp/angles.out" );	ofstream		ppm	( "/tmp/ppm.out" );	ofstream		accel	( "/tmp/accel.out" );	ofstream		rates	( "/tmp/pqr.out" );	ofstream		servos	( "/tmp/servos.out" );	ofstream		xyz	( "/tmp/xyz.out" );	interface.logfile( "/tmp/data.log" );	int		last_heading_sample	= interface.heading_samples;	int		last_imu_sample		= interface.imu_samples;	int		last_gps_sample		= interface.gps_samples;	/* Throw away a few samples first */	while( last_heading_sample < 20 && interface.step() )	{		if( interface.heading_samples != last_heading_sample )		{			last_heading_sample = interface.heading_samples;			printf( "Init: Heading=%3.2f\n",				interface.heading			);		}		if( interface.imu_samples != last_imu_sample )		{			last_imu_sample = interface.imu_samples;			printf( "Init: "				"Accel=%3.2f %3.2f %3.2f "				"PQR=%3.2f %3.2f %3.2f\n",				imu.accel[0],				imu.accel[1],				imu.accel[2],				imu.pqr[0],				imu.pqr[1],				imu.pqr[2]			);		}		if( interface.gps_samples != last_gps_sample )		{			last_gps_sample = interface.gps_samples;			if( gps.quality == 0 )			{				printf( "Init: Bad GPS data\n" );				continue;			}			printf( "Init: "				"Position=%3.2f %3.2f %3.2f\n",				gps.latitude,				gps.longitude,				gps.wgs_alt			);		}					}	cout << endl << endl << "Initial values:" << endl;	cout << "xyz    = " << gps2xyz( gps ) << endl;	cout << "accel  = " << imu.accel << endl;	cout << "angles = " << accel2euler( imu.accel, interface.heading ) * C_RAD2DEG << endl;	cout << endl;	ins.initialize(		gps2xyz( gps ),		gps2uvw( gps, Vector<3>(0,0,0) ),		imu.accel,		imu.pqr,		interface.heading	);	//printf( "%c[2J", 27 );	while( interface.step() )	{		//printf( "%c[H\n", 27 );		cout << endl;		if( interface.imu_samples != last_imu_sample )		{			last_imu_sample = interface.imu_samples;			cout << "IMU update: " << imu.accel << endl;			ins.imu_update(				imu.accel,				imu.pqr			);		}		if( interface.heading_samples != last_heading_sample )		{			last_heading_sample = interface.heading_samples;			cout << "Compass update: " << interface.heading << endl;			ins.compass_update(				interface.heading			);		}		if( interface.gps_samples != last_gps_sample )		{			last_gps_sample = interface.gps_samples;			const Vector<3> xyz( gps2xyz( gps ) );			cout << "GPS: " << xyz << endl;			ins.gps_update(				xyz,				gps2uvw( gps, ins.theta )			);		}		printf( "Time:     %3.2f\n",			interface.time		);		printf( "Trace:    %1.4f = %3.2f %3.2f %3.2f %3.2f %3.2f %3.2f\n",			ins.trace,			ins.P[0][0],			ins.P[1][1],			ins.P[2][2],			ins.P[3][3],			ins.P[4][4],			ins.P[5][5]		);		printf( "Angles:   %2.3f, %2.3f, %2.3f (%2.3f)\n",			ins.theta[0] * C_RAD2DEG,			ins.theta[1] * C_RAD2DEG,			ins.theta[2] * C_RAD2DEG,			interface.heading * C_RAD2DEG		);		angles			<< interface.time << " "			<< ins.theta[0] << " "			<< ins.theta[1] << " "			<< ins.theta[2] << endl;		accel			<< interface.time << " "			<< imu.accel[0] << " "			<< imu.accel[1] << " "			<< imu.accel[2] << endl;		rates			<< interface.time << " "			<< imu.pqr[0] << " "			<< imu.pqr[1] << " "			<< imu.pqr[2] << " "			<< ins.pqr[0] << " "			<< ins.pqr[1] << " "			<< ins.pqr[2] << endl;		xyz			<< interface.time << " "			<< ins.xyz[0] << " "			<< ins.xyz[1] << " "			<< ins.xyz[2] << " "			<< ins.uvw[0] << " "			<< ins.uvw[1] << " "			<< ins.uvw[2] << endl;	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲美州欧州综合国| 天天色天天爱天天射综合| 亚洲综合999| 国产精品66部| 在线不卡中文字幕播放| 综合久久国产九一剧情麻豆| 免费成人av资源网| 欧洲av在线精品| 欧美国产一区视频在线观看| 视频精品一区二区| 91成人免费在线视频| 国产人成一区二区三区影院| 热久久一区二区| 欧美丝袜自拍制服另类| 国产精品色婷婷久久58| 国模娜娜一区二区三区| 日韩女优制服丝袜电影| 亚洲国产精品麻豆| 91精品办公室少妇高潮对白| 国产精品久久久久9999吃药| 国产乱人伦精品一区二区在线观看| 欧美日韩亚洲综合在线| 亚洲福利一区二区| 欧美亚洲综合色| 国产一区二区三区日韩| 69精品人人人人| 日韩精品91亚洲二区在线观看| 欧美日韩一级大片网址| 亚洲第一久久影院| 欧美精品一级二级三级| 天天免费综合色| 日韩午夜av电影| 捆绑变态av一区二区三区| 日韩欧美国产系列| 国模套图日韩精品一区二区| 精品福利一区二区三区 | 久久99久久精品欧美| 91.com视频| 老司机午夜精品| 久久久久久一二三区| 国产成人在线观看免费网站| 中文字幕高清一区| 92国产精品观看| 夜色激情一区二区| 欧美电影影音先锋| 精东粉嫩av免费一区二区三区| 久久综合五月天婷婷伊人| 高潮精品一区videoshd| 中文字幕亚洲精品在线观看| 欧洲av一区二区嗯嗯嗯啊| 天使萌一区二区三区免费观看| 日韩欧美国产三级| 成人午夜电影久久影院| 夜夜亚洲天天久久| 欧美一级欧美一级在线播放| 国产成人啪免费观看软件| 亚洲视频综合在线| 91精品在线观看入口| 国内精品不卡在线| 玉足女爽爽91| 精品少妇一区二区三区在线视频| 国产黄色精品视频| 亚洲电影激情视频网站| 2024国产精品| 欧洲精品中文字幕| 在线欧美日韩国产| 麻豆精品在线视频| 国产精品成人一区二区艾草| 欧美日韩aaaaa| 成人性生交大合| 日本午夜精品视频在线观看 | 91黄色免费看| 国精品**一区二区三区在线蜜桃| 最新国产成人在线观看| 日韩一卡二卡三卡| 色综合亚洲欧洲| 国产在线视频一区二区三区| 亚洲免费视频成人| 久久久国际精品| 欧美男人的天堂一二区| 成人网页在线观看| 久久精品国产一区二区三区免费看 | 欧美一区二区三区四区高清| 成人av网站在线观看| 美女任你摸久久| 亚洲韩国一区二区三区| 国产精品美日韩| 2022国产精品视频| 欧美一级高清片在线观看| 色婷婷综合中文久久一本| 国产馆精品极品| 久久er99精品| 男人的天堂亚洲一区| 亚洲一区二区三区视频在线播放 | 亚洲欧美另类久久久精品2019| 日韩欧美亚洲一区二区| 欧美视频一区二| 93久久精品日日躁夜夜躁欧美| 欧美美女黄视频| 色综合久久久久久久久| 波波电影院一区二区三区| 国产原创一区二区三区| 另类专区欧美蜜桃臀第一页| 日韩成人一级大片| 日韩国产在线观看| 视频一区免费在线观看| 午夜免费久久看| 亚洲成人av一区二区三区| 亚洲激情在线激情| 樱花影视一区二区| 《视频一区视频二区| 国产精品福利影院| 亚洲欧洲www| 亚洲日本在线天堂| 亚洲精品精品亚洲| 亚洲国产成人av网| 亚洲成人三级小说| 日本特黄久久久高潮| 视频一区中文字幕| 久久99精品久久久久久| 激情综合网激情| 国产黑丝在线一区二区三区| 国产91丝袜在线18| 不卡一区中文字幕| 欧美在线播放高清精品| 欧美剧在线免费观看网站| 91精品国产综合久久久久久久久久 | 精品国产成人系列| 国产亚洲一区二区三区四区| 国产日韩一级二级三级| 国产精品久久久久久久午夜片| 中文欧美字幕免费| 亚洲免费在线播放| 天堂一区二区在线| 国产在线乱码一区二区三区| 国产99久久久国产精品潘金网站| 成人av综合一区| 欧洲中文字幕精品| 日韩精品最新网址| 亚洲国产激情av| 亚洲一区免费视频| 久久精品99国产精品| 国产精品 欧美精品| 97se狠狠狠综合亚洲狠狠| 国产精品免费视频网站| 亚洲日本丝袜连裤袜办公室| 亚洲国产另类av| 国产精品一区一区三区| 色婷婷综合久久久久中文 | 懂色av中文一区二区三区| 91麻豆免费视频| 日韩一级片在线观看| 国产欧美一区视频| 亚洲国产成人精品视频| 国产传媒欧美日韩成人| 欧美日韩久久不卡| 国产精品丝袜一区| 青草av.久久免费一区| 不卡视频免费播放| 欧美一区二区免费观在线| 国产精品久久夜| 日本不卡视频在线观看| av午夜精品一区二区三区| 日韩一区二区精品在线观看| 亚洲欧美综合在线精品| 男女性色大片免费观看一区二区| www.在线成人| 精品久久久久久无| 亚洲成人久久影院| 91小视频在线免费看| 亚洲精品一区在线观看| 亚洲第一主播视频| 91免费观看国产| 中文av一区特黄| 精品一区二区三区影院在线午夜| 中文字幕免费一区| 另类的小说在线视频另类成人小视频在线| 成人av网在线| 久久蜜桃av一区精品变态类天堂| 视频一区在线视频| 欧美中文字幕久久| 日韩一区在线看| 成人午夜私人影院| 久久亚洲私人国产精品va媚药| 日韩二区三区在线观看| 欧美亚洲免费在线一区| 最新国产精品久久精品| 国产成人鲁色资源国产91色综| 欧美军同video69gay| 亚洲自拍偷拍麻豆| 色综合久久天天| 亚洲图片另类小说| 91欧美一区二区| 综合电影一区二区三区| 成人av资源在线观看| 日本一二三四高清不卡| 国产成人综合亚洲网站| 26uuu精品一区二区| 精品亚洲成a人在线观看| 欧美成人女星排行榜|