Debian Codegraph @

Aircraft/c172p/Systems/indicated-airspeed.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4 Copyright (c) 2016 HHS81 and dany93
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19
20 <system name="indicated-airspeed">
21
22 <!--
23 (dany93) Largely inspired from c182, thanks HHS81.
24 Icing portion enhanced by B. Hallinger for c182s
25 failure due to pitot icing by H. Schulz
26 -->
27
28 <!--
29 IAS Indicated airspeed (IAS) is the airspeed indicator reading(ASIR)
30 uncorrected for instrument, position, and other errors.
31 From current EASA definitions: Indicated airspeed means the speed of
32 an aircraft as shown on its pitot static airspeed indicator
33 calibrated to reflect standard atmosphere adiabatic compressible
34 flow at sea level uncorrected for airspeed system errors.
35 Calibrated airspeed (CAS) is indicated airspeed corrected for
36 instrument errors, position error (due to incorrect pressure at the
37 static port) and installation errors.
38 According the POH Skyhawk C172P-1982 on Page 5-9 airspeed
39 calibration shows a large difference between KIAS and KCAS at lower
40 speeds than 90 and above.
41 It seems this is not reflected by JSBSim or FlightGear in a
42 realistic way.
43 So use this numbers and create a table which corrects the
44 output shown on the ASI.
45 -->
46
47 <property>/instrumentation/airspeed-indicator/indicated-speed-kt</property>
48
49 <channel name="indicated airspeed">
50
51 <fcs_function name="systems/asi/indicated-airspeed">
52 <output>velocities/vias-kts</output>
53 <function>
54 <table>
55 <!-- The indicated-speed-kt property reacts to pitot
56 failure, but it assumes the pitot is perfect.
57 Therefore, it practically reacts as a calibrated
58 airspeed indicator (KCAS).
59 -->
60 <independentVar lookup="row">/instrumentation/airspeed-indicator/indicated-speed-kt</independentVar>
61 <independentVar lookup="column">fcs/flap-pos-deg</independentVar>
62 <tableData>
63 0 10 30
64 0 0 0 0
65 47 38 38 40
66 49 40 40 42
67 53 45 47 50
68 55 49 50 52
69 56 50 51 54
70 62 60 60 61
71 70 70 70 70
72 80 81 81 80
73 89 90 90 90
74 98 100 100 100
75 107 110 109 109
76 117 120 120 120
77 126 130 130 130
78 135 140 140 140
79 145 150 150 150
80 154 160 160 160
81 </tableData>
82 </table>
83 </function>
84 </fcs_function>
85
86 <switch name="systems/asi/pitot-serviceable">
87 <output>/systems/pitot/serviceable</output>
88 <default value="1"/>
89
90 <test logic="AND" value="0">
91 /sim/model/c172p/securing/pitot-cover-visible EQ 1
92 /systems/pitot/icing GT 0.03
93 </test>
94 </switch>
95
96 <switch name="/systems/pitot/heating">
97 <output>/systems/pitot/heating</output>
98 <default value="0"/>
99
100 <test logic="AND" value="1">
101 /controls/anti-ice/pitot-heat EQ 1
102 /systems/electrical/outputs/pitot-heat GT 20
103 </test>
104 </switch>
105
106 <kinematic name="/systems/pitot/heat-applied-norm">
107 <input>/systems/pitot/heating</input>
108 <traverse>
109 <setting>
110 <position>0</position>
111 <time>0</time>
112 </setting>
113 <setting>
114 <position>1</position>
115 <time>30</time>
116 </setting>
117 </traverse>
118 <output>/systems/pitot/heat-applied-norm</output>
119 </kinematic>
120
121 <switch name="/systems/pitot/salvage-control">
122 <output>/systems/pitot/salvage</output>
123 <default value="1"/>
124
125 <test logic="OR" value="0">
126 /systems/pitot/heat-applied-norm LT 0.3
127 </test>
128 </switch>
129 </channel>
130 </system>