Skip to content

Commit d24b95d

Browse files
author
dpculp
committed
A few generic systems.
1 parent 956733d commit d24b95d

12 files changed

+496
-0
lines changed

systems/BLC.xml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0"?>
2+
3+
<!-- This system determines the state of the Boundary Layer Control (BLC)
4+
system. The aerodynamic effects of BLC are set in the aircraft
5+
configuration file <aerodynamics> section, not here. In order for
6+
the switch to work properly the number of engine rpm tests should
7+
match the number of engines installed!
8+
-->
9+
10+
<system name="BLC">
11+
12+
<property>systems/BLC/active</property>
13+
14+
<channel name="Boundary Layer Control">
15+
16+
<switch name="systems/BLC/switch">
17+
<default value="0"/>
18+
<test logic="AND" value="1">
19+
fcs/flap-pos-norm gt 0.51
20+
propulsion/engine[0]/n2 gt 70.0
21+
propulsion/engine[1]/n2 gt 70.0
22+
</test>
23+
<output>systems/BLC/active</output>
24+
</switch>
25+
26+
</channel>
27+
28+
</system>

systems/FCS-pitch.xml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0"?>
2+
3+
<system name="FCS-pitch">
4+
5+
<channel name="Pitch">
6+
7+
<summer name="Pitch Trim Sum">
8+
<input>fcs/elevator-cmd-norm</input>
9+
<input>fcs/pitch-trim-cmd-norm</input>
10+
<clipto>
11+
<min> -1 </min>
12+
<max> 1 </max>
13+
</clipto>
14+
</summer>
15+
16+
<aerosurface_scale name="Elevator Control">
17+
<input>fcs/pitch-trim-sum</input>
18+
<range>
19+
<min> -0.35 </min>
20+
<max> 0.30 </max>
21+
</range>
22+
<output>fcs/elevator-pos-rad</output>
23+
</aerosurface_scale>
24+
25+
<aerosurface_scale name="elevator normalized">
26+
<input>fcs/elevator-pos-rad</input>
27+
<domain>
28+
<min>-0.35</min>
29+
<max> 0.35</max>
30+
</domain>
31+
<range>
32+
<min>-1</min>
33+
<max> 1</max>
34+
</range>
35+
<output>fcs/elevator-pos-norm</output>
36+
</aerosurface_scale>
37+
38+
</channel>
39+
40+
</system>

systems/FCS-roll.xml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?xml version="1.0"?>
2+
3+
<system name="FCS-roll">
4+
5+
<channel name="Roll">
6+
7+
<summer name="Roll Trim Sum">
8+
<input>fcs/aileron-cmd-norm</input>
9+
<input>fcs/roll-trim-cmd-norm</input>
10+
<clipto>
11+
<min> -1 </min>
12+
<max> 1 </max>
13+
</clipto>
14+
</summer>
15+
16+
<aerosurface_scale name="Left Aileron Control">
17+
<input>fcs/roll-trim-sum</input>
18+
<range>
19+
<min> -0.35 </min>
20+
<max> 0.35 </max>
21+
</range>
22+
<output>fcs/left-aileron-pos-rad</output>
23+
</aerosurface_scale>
24+
25+
<aerosurface_scale name="Right Aileron Control">
26+
<input>fcs/roll-trim-sum</input>
27+
<range>
28+
<min> -0.35 </min>
29+
<max> 0.35 </max>
30+
</range>
31+
<output>fcs/right-aileron-pos-rad</output>
32+
</aerosurface_scale>
33+
34+
<aerosurface_scale name="left aileron normalized">
35+
<input>fcs/left-aileron-pos-rad</input>
36+
<domain>
37+
<min>-0.35</min>
38+
<max> 0.35</max>
39+
</domain>
40+
<range>
41+
<min>-1</min>
42+
<max> 1</max>
43+
</range>
44+
<output>fcs/left-aileron-pos-norm</output>
45+
</aerosurface_scale>
46+
47+
<aerosurface_scale name="right aileron normalized">
48+
<input>fcs/right-aileron-pos-rad</input>
49+
<domain>
50+
<min>-0.35</min>
51+
<max> 0.35</max>
52+
</domain>
53+
<range>
54+
<min>-1</min>
55+
<max> 1</max>
56+
</range>
57+
<output>fcs/right-aileron-pos-norm</output>
58+
</aerosurface_scale>
59+
60+
</channel>
61+
62+
</system>

systems/FCS-yaw.xml

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
<?xml version="1.0"?>
2+
3+
<system name="FCS-yaw">
4+
5+
<channel name="Yaw">
6+
7+
<summer name="Rudder Command Sum">
8+
<input>fcs/rudder-cmd-norm</input>
9+
<input>fcs/yaw-trim-cmd-norm</input>
10+
<limit>
11+
<min> -1.0 </min>
12+
<max> 1.0 </max>
13+
</limit>
14+
</summer>
15+
16+
<scheduled_gain name="Yaw Damper Rate">
17+
<input>velocities/r-aero-rad_sec</input>
18+
<table>
19+
<independentVar lookup="row">velocities/ve-kts</independentVar>
20+
<tableData>
21+
30 0.00
22+
60 2.00
23+
</tableData>
24+
</table>
25+
</scheduled_gain>
26+
27+
<scheduled_gain name="Yaw Damper Beta">
28+
<input>aero/beta-rad</input>
29+
<table>
30+
<independentVar lookup="row">velocities/ve-kts</independentVar>
31+
<tableData>
32+
30 0.00
33+
60 0.00
34+
</tableData>
35+
</table>
36+
</scheduled_gain>
37+
38+
<summer name="Yaw Damper Sum">
39+
<input>fcs/yaw-damper-beta</input>
40+
<input>fcs/yaw-damper-rate</input>
41+
<limit>
42+
<min> -0.1 </min>
43+
<max> 0.1 </max>
44+
</limit>
45+
</summer>
46+
47+
<scheduled_gain name="Yaw Damper Final">
48+
<input>fcs/yaw-damper-sum</input>
49+
<table>
50+
<independentVar lookup="row">velocities/ve-kts</independentVar>
51+
<tableData>
52+
30 0.0
53+
31 1.0
54+
</tableData>
55+
</table>
56+
</scheduled_gain>
57+
58+
<summer name="Rudder Sum">
59+
<input>fcs/rudder-command-sum</input>
60+
<input>fcs/yaw-damper-final</input>
61+
<limit>
62+
<min> -1 </min>
63+
<max> 1 </max>
64+
</limit>
65+
</summer>
66+
67+
<aerosurface_scale name="Rudder Control">
68+
<input>fcs/rudder-sum</input>
69+
<domain>
70+
<min>-1.0</min>
71+
<max> 1.0</max>
72+
</domain>
73+
<range>
74+
<min> -0.25 </min>
75+
<max> 0.25 </max>
76+
</range>
77+
<output>fcs/rudder-pos-rad</output>
78+
</aerosurface_scale>
79+
80+
<aerosurface_scale name="rudder normalized">
81+
<input>fcs/rudder-pos-rad</input>
82+
<domain>
83+
<min>-0.25</min>
84+
<max> 0.25</max>
85+
</domain>
86+
<range>
87+
<min>-1</min>
88+
<max> 1</max>
89+
</range>
90+
<output>fcs/rudder-pos-norm</output>
91+
</aerosurface_scale>
92+
93+
</channel>
94+
95+
</system>

systems/NWS.xml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0"?>
2+
3+
<system name="NWS">
4+
5+
<property>systems/NWS/engaged</property>
6+
7+
<channel name="Nose Wheel Steering">
8+
9+
<scheduled_gain name="systems/NWS/steer-cmd">
10+
<input>fcs/rudder-cmd-norm</input>
11+
<table>
12+
<independentVar lookup="row">systems/NWS/engaged</independentVar>
13+
<tableData>
14+
0 -0.1
15+
1 -1.0
16+
</tableData>
17+
</table>
18+
<output>fcs/steer-cmd-norm</output>
19+
</scheduled_gain>
20+
21+
</channel>
22+
23+
</system>

systems/catapult.xml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0"?>
2+
3+
<system name="catapult">
4+
5+
<channel name="Catapult">
6+
7+
<switch name="systems/catapult/cat-cmd-norm">
8+
<default value="0"/>
9+
<test logic="AND" value="0">
10+
systems/catapult/cat-pos-norm gt 0.999
11+
</test>
12+
<test logic="AND" value="1">
13+
systems/catapult/cat-launch-cmd == 1
14+
</test>
15+
<output>systems/catapult/cat-launch-cmd</output>
16+
</switch>
17+
18+
<kinematic name="systems/catapult/cat-timer">
19+
<input>systems/catapult/cat-cmd-norm</input>
20+
<traverse>
21+
<setting>
22+
<position>0.0</position>
23+
<time>0.0</time>
24+
</setting>
25+
<setting>
26+
<position>1.0</position>
27+
<time>2.7</time>
28+
</setting>
29+
</traverse>
30+
<output>systems/catapult/cat-pos-norm</output>
31+
</kinematic>
32+
33+
<pure_gain name="systems/catapult/cat-force">
34+
<input>inertia/weight-lbs</input>
35+
<gain>2.0</gain>
36+
</pure_gain>
37+
38+
<switch name="systems/catapult/cat-final">
39+
<default value="0"/>
40+
<test logic="AND" value="systems/catapult/cat-force">
41+
systems/catapult/cat-launch-cmd == 1
42+
systems/catapult/cat-pos-norm lt 0.999
43+
systems/catapult/cat-pos-norm gt 0.0
44+
</test>
45+
<output>external_reactions/catapult/magnitude</output>
46+
</switch>
47+
48+
</channel>
49+
50+
</system>

systems/flaps.xml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0"?>
2+
3+
<system name="flaps">
4+
5+
<channel name="Flaps">
6+
7+
<kinematic name="Flaps Control">
8+
<input>fcs/flap-cmd-norm</input>
9+
<traverse>
10+
<setting>
11+
<position> 0 </position>
12+
<time> 0 </time>
13+
</setting>
14+
<setting>
15+
<position> 0.5</position>
16+
<time> 4 </time>
17+
</setting>
18+
<setting>
19+
<position> 1</position>
20+
<time> 5 </time>
21+
</setting>
22+
</traverse>
23+
<output>fcs/flap-pos-norm</output>
24+
</kinematic>
25+
26+
</channel>
27+
28+
</system>

systems/gear.xml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0"?>
2+
3+
<system name="gear">
4+
5+
<channel name="Landing Gear">
6+
<kinematic name="Gear Control">
7+
<input>gear/gear-cmd-norm</input>
8+
<traverse>
9+
<setting>
10+
<position> 0 </position>
11+
<time> 0 </time>
12+
</setting>
13+
<setting>
14+
<position> 1 </position>
15+
<time> 5 </time>
16+
</setting>
17+
</traverse>
18+
<output>gear/gear-pos-norm</output>
19+
</kinematic>
20+
21+
</channel>
22+
23+
</system>

systems/holdback.xml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0"?>
2+
3+
<system name="holdback">
4+
5+
<channel name="Holdback_Launchbar">
6+
7+
<summer name="systems/holdback/total_thrust">
8+
<input>propulsion/engine/thrust</input>
9+
<input>propulsion/engine[1]/thrust</input>
10+
</summer>
11+
12+
<switch name="systems/holdback/switch">
13+
<default value="0"/>
14+
<test logic="AND" value="systems/holdback/total_thrust">
15+
systems/holdback/holdback-cmd == 1
16+
</test>
17+
<output>external_reactions/holdback/magnitude</output>
18+
</switch>
19+
20+
</channel>
21+
22+
</system>

0 commit comments

Comments
 (0)