⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vorinit.m

📁 MATLAB在飞行动力学和控制中应用的工具
💻 M
字号:
% -------------------------------------------------------------
% VORINIT.m sets the proper parameters for the VOR block in the
% systems APILOT1, APILOT2, and APILOT3. Run this routine be-
% fore starting a new simulation!
%
% See the final thesis of M.O. Rauw, Delft, '93, for more info.
% -------------------------------------------------------------

disp('Initialize the VOR block');
disp('========================');
disp(' ');
HVOR  = input('Altitude of VOR antenna above sea level [m] (default 0): ');
if isempty(HVOR)
   HVOR = 0;
end

xVOR  = input('Initial X-distance to VOR antenna [m] (default 0): ');
if isempty(xVOR)
   xVOR = 0;
end
yVOR  = input('Initial Y-distance to VOR antenna [m] (default 0): ');
if isempty(yVOR)
   yVOR = 0;
end
CD    = input('Course Datum [deg] (default 0): ');
if isempty(CD)
   CD = 0;
end

CD    = CD * pi/180;

disp(' ');
disp('Ready.');

%------------------------------------------------------------------------------
% The FDC toolbox. Copyright Marc Rauw, 1994-2000.
% Last revision of this program: October 8, 1997.
%
% Revision history since October 6, 1997:
% ---------------------------------------
% October 6, 1997
%   - Editorial change
% October 8, 1997
%   - Eliminated unmatched END statement
%   - Changed terminology from Height to Altitude, according pilot's usage

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -