Fixed file modes.
[fg:toms-fgdata.git] / Aircraft / 777-200 / Systems / 777-spoiler-fcs.xml
1 <?xml version="1.0"?>
2 <PropertyList>
3
4     <filter>
5                 <name>Speedbrake Arm reset</name>
6                 <type>gain</type>
7                 <gain>1.0</gain>
8                 <debug>false</debug>
9                 <enable>
10                     <condition>
11                                 <and>
12                                         <equals>
13                                                 <property>sim/model/start-idling</property>
14                                             <value>1</value>
15                                         </equals>
16                                         <not><property>autopilot/autobrake/throttles-at-idle</property></not>
17                                     <property>gear/gear[1]/wow</property>
18                                 <property>gear/gear[2]/wow</property>
19                                         <equals>
20                                                 <property>controls/flight/speedbrake-lever</property>
21                                         <value>1</value>
22                                         </equals>
23                                 </and>
24                     </condition>
25                 </enable>
26         <input>
27             <value>0</value>
28         </input>
29         <output>
30                         <property>controls/flight/speedbrake-lever</property>
31         </output>
32         </filter>
33
34     <flipflop>
35         <name>Auto Speedbrake Engage logic</name>
36         <debug>false</debug>
37         <type>RS</type>
38         <enable>
39             <condition>
40                 <equals>
41                         <property>sim/model/start-idling</property>
42                     <value>1</value>
43                 </equals>
44             </condition>
45         </enable>
46         <S>
47                 <and>
48                         <equals>
49                                 <property>controls/flight/speedbrake-lever</property>
50                             <value>1</value>
51                         </equals>
52                     <property>autopilot/autobrake/throttles-at-idle</property>
53                     <property>gear/gear[1]/wow</property>
54                     <property>gear/gear[2]/wow</property>
55             <greater-than>
56                 <property>velocities/groundspeed-kt</property>
57                         <value>60</value>
58             </greater-than>
59                 </and>
60         </S>
61         <R>
62                 <and>
63                         <equals>
64                                 <property>controls/flight/speedbrake-lever</property>
65                         <value>2</value>
66                         </equals>
67                         <not><property>autopilot/autobrake/throttles-at-idle</property></not>
68                 </and>
69         </R>
70         <output>controls/flight/speedbrake</output>
71     </flipflop>
72
73     <!-- flap protection -->
74
75     <filter>
76         <name>Flap Load Relief</name>
77         <!-- compute the amount to reduce controls/flight/flaps by, to keep
78           flaps within placard limits -->
79         <type>gain</type>
80         <gain>1.0</gain>
81         <debug>false</debug>
82
83         <reference>
84             <expression>
85                 <table>
86                     <property>instrumentation/airspeed-indicator/indicated-speed-kt</property>  
87                     <entry><ind>255</ind><dep>0.033</dep></entry>
88                     <entry><ind>235</ind><dep>0.166</dep></entry>
89                     <entry><ind>215</ind><dep>0.5</dep></entry>
90                     <entry><ind>195</ind><dep>0.666</dep></entry>
91                     <entry><ind>185</ind><dep>0.833</dep></entry>
92                     <entry><ind>170</ind><dep>1</dep></entry>
93                     <entry><ind>0</ind><dep>1</dep></entry>
94                 </table>
95             </expression>
96         </reference>
97         <input>/controls/flight/flaps</input>
98         
99         <min>0.0</min>
100         <output>instrumentation/afds/flap-position</output>
101     </filter>
102
103     <logic>
104         <input>
105             <less-than>
106                 <property>instrumentation/afds/flap-position</property>
107                 <property>controls/flight/flaps</property>
108             </less-than>
109         </input>
110         <output>instrumentation/afds/flap-load-relief-active</output>
111     </logic>
112
113 </PropertyList>