资源简介
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个文件信息
相关资源
- Pattern Recognition and Machine Learning(高清
- MATLAB 编程 第二版 Stephen J. Chapman 著
- 均值滤波和FFT频谱分析Matlab代码
- 《MATLAB扩展编程》代码
- HDB3码、AMI码的MATLAB实现
- 3点GPS定位MATLAB仿真
- MATLAB数字信号处理85个实用案例精讲入
- matlab从入门到精通pdf94795
- 欧拉放大论文及matlab代码
- 跳一跳辅助_matlab版本
- 全面详解LTE MATLAB建模、仿真与实现
- MIMO-OFDM无线通信技术及MATLAB实现_孙锴
- MATLAB Programming for Engineers 4th - Chapman
- matlab 各种谱分析对比
- 分数阶chen混沌matlab程序
- 基于粒子群算法的非合作博弈的matl
- MATLAB车流仿真 包括跟驰、延误
- matlab空间桁架计算程序
- 基于MATLAB的图像特征点匹配和筛选
- DMA-TVP-FAVAR
- GPS信号的码捕获matlab代码.7z
- 一维光子晶体MATLAB仿真代码吸收率折
- newmark法源程序
- 传统关联成像、计算鬼成像matlab
- pri传统分选算法
- 摆动滚子推杆盘形凸轮设计
- 医学图像重建作业matlab源码
- Matlab实现混沌系统的控制
- 检测疲劳驾驶
- Matlab锁相环仿真-Phase Locked Loop.rar
评论
共有 条评论