资源简介
MATLAB工具箱,航空工具箱,Aerospace_toolbox

代码片段和文件信息
function aerofgrunscript( OutputFileName FlightGearbaseDirectory GeometryModelName ...
DestinationPort AirportId RunwayId InitialAltitude ...
InitialHeading OffsetDistance OffsetAzimuth varargin )
% AEROFGRUNscript internal function containing common code for generating run
% script for Flight Gear Flight Simulator.
% Copyright 1984-2007 The MathWorks Inc.
% $Revision: 1.1.6.4 $ $Date: 2007/09/18 02:02:04 $
error(nargchk(10 11 nargin‘struct‘));
% determine which computer type for which the run script should be generated
% currently recognizing {‘auto‘ ‘pcwin‘ ‘glnx86‘ ‘mac‘ ‘maci‘ ‘maci64‘ ‘hpux‘ ‘sol64‘}
% others may need to be edited.
comptype = ‘auto‘;
if nargin == 11
if ischar(varargin{1})
comptype = lower(varargin{1});
else
error(‘aero:aerofgrunscript:nonComputerString‘‘Computer type must be string.‘);
end
end
if strcmp(comptype‘auto‘)
% generate run script for current computer
comptype = lower(computer);
end
%--- Set output file
if strncmp(comptype‘pc‘2)
sep = ‘\\‘;
else % isunix
sep = ‘/‘;
end
%--- FGFS is on: win32 alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc
switch comptype
case ‘pcwin‘
cputype = ‘win32‘;
case ‘glnx86‘
cputype = ‘i386‘;
case ‘mac‘
cputype = ‘mac‘;
case ‘maci‘
cputype = ‘mac‘;
case ‘maci64‘
cputype = ‘mac‘;
case ‘hpux‘
cputype = ‘hppa‘;
case ‘sol64‘
cputype = ‘sparc‘;
otherwise
cputype = ‘EDIT_THIS_NAME‘;
aeroFGArchNotFoundMsgFmt = ‘Generated batch file “%s“ needs hand editing to work‘;
warning(‘aero:aerofgrunscript:ArchNotFound‘ ...
aeroFGArchNotFoundMsgFmt ...
OutputFileName );
end
if ispc
if (FlightGearbaseDirectory(2) == ‘:‘)
% if the base directory has a DOS drive letter then
% it is necessary to ensure we are “logged“ onto that
% drive before doing a cd operation
fmt = [ FlightGearbaseDirectory(1:2) ‘\n‘];
fmt = [fmt ‘cd %s\n\n‘ ];
end
elseif ismac
fmt = ‘#! /bin/csh \n\n‘; % run file as shell script on mac
fmt = [fmt ‘cd %s%sFlightGear.app%sContents%sResources \n\n‘];
else
fmt = ‘#! /bin/csh \n\n‘; % run file as shell script on unix
fmt = [fmt ‘cd %s\n\n‘ ];
end
% set FG_ROOT based on platform
if ispc
fmt = [fmt ‘SET FG_ROOT=%s%sdata\n‘ ];
elseif ismac
fmt = fmt; %#ok % no environment setup on the mac
else
fmt = [fmt ‘#setenv LD_LIBRARY_PATH %s%slib:$LD_LIBRARY_PATH\n‘ ];
fmt = [fmt ‘#setenv FG_ROOT %s%sdata\n‘ ];
fmt = [fmt ‘#setenv FG_SCENERY %s%sScenery:$FG_ROOT%sScenery:$FG_ROOT%sWorldScenery\n\n‘ ];
end
% set executable location based on platform
if ispc
fmt = [fmt ‘.%sbin%s%s%sfgfs‘];
elseif ismac
fmt = [fmt ‘.%sfgfs --fg-root=.%s ‘];
else
fmt = [fmt ‘fgfs‘];
end
fmt = [fmt ‘ --aircraft=%s --fdm=
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2009-03-10 18:38 aero\
目录 0 2009-03-10 18:38 aero\aero\
目录 0 2009-03-10 18:38 aero\aero\@Aero\
目录 0 2009-03-10 18:38 aero\aero\@Aero\@Animation\
文件 315 2008-08-05 10:49 aero\aero\@Aero\@Animation\addBody.p
文件 409 2006-11-08 12:44 aero\aero\@Aero\@Animation\Animation.m
文件 97 2008-08-05 10:49 aero\aero\@Aero\@Animation\Animation.p
文件 270 2008-08-05 10:49 aero\aero\@Aero\@Animation\createBody.p
文件 188 2008-08-05 10:49 aero\aero\@Aero\@Animation\delete.p
文件 141 2008-08-05 10:49 aero\aero\@Aero\@Animation\hide.p
文件 703 2008-08-05 10:49 aero\aero\@Aero\@Animation\initialize.p
文件 125 2008-08-05 10:49 aero\aero\@Aero\@Animation\initIfNeeded.p
文件 122 2008-08-05 10:49 aero\aero\@Aero\@Animation\moveBody.p
文件 1346 2008-08-05 10:49 aero\aero\@Aero\@Animation\play.p
文件 154 2008-08-05 10:49 aero\aero\@Aero\@Animation\removeBody.p
文件 491 2008-08-05 10:49 aero\aero\@Aero\@Animation\schema.p
文件 136 2008-08-05 10:49 aero\aero\@Aero\@Animation\show.p
文件 155 2008-08-05 10:49 aero\aero\@Aero\@Animation\updateBodies.p
文件 629 2008-08-05 10:49 aero\aero\@Aero\@Animation\updateCamera.p
目录 0 2009-03-10 18:38 aero\aero\@Aero\@Body\
文件 680 2006-09-26 20:16 aero\aero\@Aero\@Body\Body.m
文件 109 2008-08-05 10:49 aero\aero\@Aero\@Body\Body.p
文件 135 2008-08-05 10:49 aero\aero\@Aero\@Body\findstartstoptimes.p
文件 109 2008-08-05 10:49 aero\aero\@Aero\@Body\generatePatches.p
文件 263 2008-08-05 10:49 aero\aero\@Aero\@Body\load.p
文件 416 2008-08-05 10:49 aero\aero\@Aero\@Body\move.p
目录 0 2009-03-10 18:38 aero\aero\@Aero\@Body\private\
文件 1773 2006-12-12 18:45 aero\aero\@Aero\@Body\private\generatePatchesFromFvcData.m
文件 231 2008-08-05 10:49 aero\aero\@Aero\@Body\private\initReadFcn.p
文件 1068 2006-12-12 18:45 aero\aero\@Aero\@Body\private\interp3DoFArrayWithTime.m
文件 1020 2006-12-12 18:45 aero\aero\@Aero\@Body\private\interp6DoFArrayWithTime.m
............此处省略305个文件信息
相关资源
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
- k近邻算法matlab实现
- matlab识别系统
评论
共有 条评论