Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1472 #1473

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

#1472 #1473

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
210 changes: 207 additions & 3 deletions c172p.xml
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,88 @@
<output>/sim/model/c172p/cockpit/yoke-elevator</output>
</kinematic>

<summer name="Pitch Trim Sum">
<scheduled_gain name="fcs/elevator-cmd-norm-gain">
<input>fcs/elevator-cmd-norm-filtered</input>
<table>
<independentVar>aero/qbarUW-psf</independentVar>
<tableData>
18 0.05556
19 0.05263
20 0.05000
21 0.04762
22 0.04545
23 0.04348
24 0.04167
25 0.04000
26 0.03846
27 0.03704
28 0.03571
29 0.03448
30 0.03333
31 0.03226
32 0.03125
33 0.03030
34 0.02941
35 0.02857
36 0.02778
37 0.02703
38 0.02632
39 0.02564
40 0.02500
41 0.02439
42 0.02381
43 0.02326
44 0.02273
45 0.02222
46 0.02174
47 0.02128
48 0.02083
49 0.02041
50 0.02000
51 0.01961
52 0.01923
53 0.01887
54 0.01852
55 0.01818
56 0.01786
57 0.01754
58 0.01724
59 0.01695
60 0.01667
61 0.01639
62 0.01613
63 0.01587
64 0.01563
65 0.01538
66 0.01515
67 0.01493
68 0.01471
69 0.01449
70 0.01429
71 0.01408
72 0.01389
73 0.01370
74 0.01351
75 0.01333
76 0.01316
77 0.01299
78 0.01282
79 0.01266
80 0.01250
81 0.01235
82 0.01220
83 0.01205
84 0.01190
</tableData>
</table>
<clipto>
<min>-1</min>
<max>1</max>
</clipto>
</scheduled_gain>

<summer name="Pitch Trim Sum">
<input>fcs/elevator-cmd-norm-gain</input>
<input>fcs/pitch-trim-cmd-norm</input>
<clipto>
<min>-1</min>
Expand Down Expand Up @@ -811,8 +891,70 @@
<output>/sim/model/c172p/cockpit/yoke-aileron</output>
</kinematic>

<summer name="Roll Trim Sum">
<scheduled_gain name="fcs/aileron-cmd-norm-gain">
<input>fcs/aileron-cmd-norm-filtered</input>
<table>
<independentVar>aero/qbarUW-psf</independentVar>
<tableData>
36 1.0000
37 0.9730
38 0.9474
39 0.9231
40 0.9000
41 0.8780
42 0.8571
43 0.8372
44 0.8182
45 0.8000
46 0.7826
47 0.7660
48 0.7500
49 0.7347
50 0.7200
51 0.7059
52 0.6923
53 0.6792
54 0.6667
55 0.6545
56 0.6429
57 0.6316
58 0.6207
59 0.6102
60 0.6000
61 0.5902
62 0.5806
63 0.5714
64 0.5625
65 0.5538
66 0.5455
67 0.5373
68 0.5294
69 0.5217
70 0.5143
71 0.5070
72 0.5000
73 0.4932
74 0.4865
75 0.4800
76 0.4737
77 0.4675
78 0.4615
79 0.4557
80 0.4500
81 0.4444
82 0.4390
83 0.4337
84 0.4286
</tableData>
</table>
<clipto>
<min>-1</min>
<max>1</max>
</clipto>
</scheduled_gain>

<summer name="Roll Trim Sum">
<input>fcs/aileron-cmd-norm-gain</input>
<input>fcs/roll-trim-cmd-norm</input>
<clipto>
<min>-1</min>
Expand Down Expand Up @@ -883,8 +1025,70 @@
<output>/sim/model/c172p/cockpit/pedals-rudder</output>
</kinematic>

<summer name="Yaw Trim Sum">
<scheduled_gain name="fcs/rudder-cmd-norm-gain">
<input>fcs/rudder-cmd-norm-filtered</input>
<table>
<independentVar>aero/qbarUW-psf</independentVar>
<tableData>
36 1.0000
37 0.9730
38 0.9474
39 0.9231
40 0.9000
41 0.8780
42 0.8571
43 0.8372
44 0.8182
45 0.8000
46 0.7826
47 0.7660
48 0.7500
49 0.7347
50 0.7200
51 0.7059
52 0.6923
53 0.6792
54 0.6667
55 0.6545
56 0.6429
57 0.6316
58 0.6207
59 0.6102
60 0.6000
61 0.5902
62 0.5806
63 0.5714
64 0.5625
65 0.5538
66 0.5455
67 0.5373
68 0.5294
69 0.5217
70 0.5143
71 0.5070
72 0.5000
73 0.4932
74 0.4865
75 0.4800
76 0.4737
77 0.4675
78 0.4615
79 0.4557
80 0.4500
81 0.4444
82 0.4390
83 0.4337
84 0.4286
</tableData>
</table>
<clipto>
<min>-1</min>
<max>1</max>
</clipto>
</scheduled_gain>

<summer name="Yaw Trim Sum">
<input>fcs/rudder-cmd-norm-gain</input>
<input>fcs/yaw-trim-cmd-norm</input>
<input>fcs/yaw-trim-cockpit</input>
<clipto>
Expand Down