Instrument Help Filefunctionallinst(altitude,pitch,roll,yaw,direction,fz,ball,alpha,mach,aispeed,beta,l_rpm,r_rpm,h_dot,rnozz,lnozz,intpress,CDI,CDh,CDV,ltemp,rtemp,lfuel,rfuel,ptot,fpitch,froll,fyaw)%allinst.c Simulink/RTW s-function pheagle Flight sim output block%% allinst(altitude,pitch,roll,yaw,direction,fz,ball,alpha,mach,% aispeed,beta,l_rpm,r_rpm,h_dot,rnozz,lnozz,intpress,CDI,CDh,% CDV,ltemp,rtemp,lfuel,rfuel,ptot,fpitch,froll,fyaw)% This function sends commands to the instruments through a A to D% card. This block is a complete set of the outputs <strong>for</strong> the PhEagle% cab. The block includes outputs <strong>for</strong> the stick <strong>for</strong>ce system. All% the output is being handled with the output blocks to keep the% number of duplicate functions to a minimum.%% The range and nominal units <strong>for</strong> the inputs are given any% conversion is left up to the user. <strong>An</strong>y non-standard units% should be noted to the pilot trying to interpret the instruments.%%inputs: channel, gauge, range, input units, (output units)% 0 Altitude 0 60,000, feet% 1 pitch8Ball(Pitch angle theta), +-Pi/2, rad, (deg)% 2 roll8Ball (Roll angle phi), +- Pi, rad, (deg)% 3 yaw8Ball(Yaw angle psi), +- Pi (deg)% 4 dirGyro (Yaw angle psi), +- Pi (deg)% 5 g meter Nz (g’s) -4 +9 (g’s)% 6 vertDevPoint +-1% 7 rudderball (Beta - side slip) +-1% 8 aoaMeter (Alpha - angle of attack) -10 40, degrees, (deg)% 9 mach meter 0 6, mach number% 10 Airspeed 0 700, knots% 11 sidslip<strong>An</strong>gle (Beta - side slip) +-15 degrees, (deg)% 12 Left engine rpm 110 10 (percent rpm)% 13 Right engine rpm 10 110 (percent rpm)% 14 Vertical Speed Indicator +- 6000 feet/min, (ft/min)%***** 12 bit channels *****% 15 right Nozzel - 0 - 100% 16 left Nozzel - 0 - 100% 17 internal pressure 1 12% 18 Course Deviation indicator -1 1% 19 cd Horizontal indicator -1 1% 20 cd Vertical Indicator -1 1% 21 right Engine Temp 200 1400 deg% 22 left engine Temp 200 1400 deg% 23 right engine fuel 0 100% 24 left eengione fuel 0 100% 25 ptotal 0 7000% 0 left Nozzel - 0 - 700, knots% 7 internal pressure (Beta - side slip) +-15 degrees, (deg)% 8 Course Deviation indicator 110 10 (percent rpm)% 9 cd Horizontal indicator 10 110 (percent rpm)% 10 cd Vertical Indicator +- 6000 feet/min, (ft/min)%***** Stick <strong>for</strong>ces: CAUTION Pilot must be in CAB when used. *****% 26 pitch <strong>for</strong>ce +-1, (lbs)114
% 27 roll <strong>for</strong>ce +-1, (lbs)% 28 yaw <strong>for</strong>ce +-1, (lbs)%%% NOTE: this is a help block only there is no function% attached to this m-file%% Doug Hiranaka 9-27-98% Copyright (c) 1998 by Penguin Aeronautics.115