A32X: Add proper Rudder Trim
This commit is contained in:
parent
d8af8d0a56
commit
20fc17746a
5 changed files with 56 additions and 23 deletions
|
@ -516,6 +516,7 @@
|
||||||
<flap-pos type="int">0</flap-pos>
|
<flap-pos type="int">0</flap-pos>
|
||||||
<ground-spoilers-armed type="bool">0</ground-spoilers-armed>
|
<ground-spoilers-armed type="bool">0</ground-spoilers-armed>
|
||||||
<roll-fbw>0</roll-fbw>
|
<roll-fbw>0</roll-fbw>
|
||||||
|
<rudder-trim-fdm>0.0</rudder-trim-fdm>
|
||||||
<spoiler-l1>0.0</spoiler-l1>
|
<spoiler-l1>0.0</spoiler-l1>
|
||||||
<spoiler-l2>0.0</spoiler-l2>
|
<spoiler-l2>0.0</spoiler-l2>
|
||||||
<spoiler-l3>0.0</spoiler-l3>
|
<spoiler-l3>0.0</spoiler-l3>
|
||||||
|
|
|
@ -574,7 +574,7 @@
|
||||||
<axis-alignment>xy-plane</axis-alignment>
|
<axis-alignment>xy-plane</axis-alignment>
|
||||||
<type type="string">number-value</type>
|
<type type="string">number-value</type>
|
||||||
<format type="string">%2.1f</format>
|
<format type="string">%2.1f</format>
|
||||||
<property>controls/flight/rudder-trim-deg</property>
|
<property>fdm/jsbsim/fcs/rudder-trim-cmd-deg</property>
|
||||||
<truncate type="bool">false</truncate>
|
<truncate type="bool">false</truncate>
|
||||||
<font type="string">led.txf</font>
|
<font type="string">led.txf</font>
|
||||||
<draw-text type="bool">true</draw-text>
|
<draw-text type="bool">true</draw-text>
|
||||||
|
|
|
@ -572,9 +572,29 @@
|
||||||
</test>
|
</test>
|
||||||
</switch>
|
</switch>
|
||||||
|
|
||||||
|
<aerosurface_scale name="fcs/rudder-trim-cmd-deg">
|
||||||
|
<input>/controls/flight/rudder-trim</input>
|
||||||
|
<domain>
|
||||||
|
<min>-1.0</min>
|
||||||
|
<max>1.0</max>
|
||||||
|
</domain>
|
||||||
|
<range>
|
||||||
|
<min>-20.0</min>
|
||||||
|
<max>20.0</max>
|
||||||
|
</range>
|
||||||
|
</aerosurface_scale>
|
||||||
|
|
||||||
|
<aerosurface_scale name="hydraulics/rudder/trim-norm">
|
||||||
|
<input>/controls/flight/rudder-trim-fdm</input>
|
||||||
|
<range>
|
||||||
|
<min>-0.8</min>
|
||||||
|
<max>0.8</max>
|
||||||
|
</range>
|
||||||
|
</aerosurface_scale>
|
||||||
|
|
||||||
<summer name="hydraulics/rudder/summer">
|
<summer name="hydraulics/rudder/summer">
|
||||||
<input>/controls/flight/rudder-fbw</input>
|
<input>/controls/flight/rudder-fbw</input>
|
||||||
<input>/controls/flight/rudder-trim</input>
|
<input>hydraulics/rudder/trim-norm</input>
|
||||||
<clipto>
|
<clipto>
|
||||||
<min>-1</min>
|
<min>-1</min>
|
||||||
<max>1</max>
|
<max>1</max>
|
||||||
|
|
|
@ -1160,6 +1160,10 @@
|
||||||
<output>/controls/flight/spoiler-r-sum</output>
|
<output>/controls/flight/spoiler-r-sum</output>
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
|
<!-- =============================================================== -->
|
||||||
|
<!-- Trims -->
|
||||||
|
<!-- =============================================================== -->
|
||||||
|
|
||||||
<filter>
|
<filter>
|
||||||
<debug>false</debug>
|
<debug>false</debug>
|
||||||
<type>noise-spike</type>
|
<type>noise-spike</type>
|
||||||
|
@ -1176,6 +1180,32 @@
|
||||||
<max-rate-of-change>0.1</max-rate-of-change>
|
<max-rate-of-change>0.1</max-rate-of-change>
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
|
<filter>
|
||||||
|
<debug>false</debug>
|
||||||
|
<type>noise-spike</type>
|
||||||
|
<enable>
|
||||||
|
<condition>
|
||||||
|
<or>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/hydraulic/green-psi</property>
|
||||||
|
<value>1500</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/hydraulic/blue-psi</property>
|
||||||
|
<value>1500</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/hydraulic/yellow-psi</property>
|
||||||
|
<value>1500</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</or>
|
||||||
|
</condition>
|
||||||
|
</enable>
|
||||||
|
<input>/controls/flight/rudder-trim</input>
|
||||||
|
<output>/controls/flight/rudder-trim-fdm</output>
|
||||||
|
<max-rate-of-change>0.5</max-rate-of-change>
|
||||||
|
</filter>
|
||||||
|
|
||||||
<!-- =============================================================== -->
|
<!-- =============================================================== -->
|
||||||
<!-- Speedbrake Logic -->
|
<!-- Speedbrake Logic -->
|
||||||
<!-- =============================================================== -->
|
<!-- =============================================================== -->
|
||||||
|
|
|
@ -70,24 +70,6 @@
|
||||||
<filter-gain>0.0</filter-gain>
|
<filter-gain>0.0</filter-gain>
|
||||||
</predict-simple>
|
</predict-simple>
|
||||||
|
|
||||||
<filter>
|
|
||||||
<name>Rudder Trim</name>
|
|
||||||
<type>gain</type>
|
|
||||||
<gain>1.0</gain>
|
|
||||||
<update-interval-secs type="double">0.05</update-interval-secs>
|
|
||||||
<input>
|
|
||||||
<expression>
|
|
||||||
<table>
|
|
||||||
<property>/controls/flight/rudder-trim</property>
|
|
||||||
<entry><ind>-1</ind><dep>-10.0</dep></entry>
|
|
||||||
<entry><ind> 0</ind><dep> 0.0</dep></entry>
|
|
||||||
<entry><ind> 1</ind><dep> 10.0</dep></entry>
|
|
||||||
</table>
|
|
||||||
</expression>
|
|
||||||
</input>
|
|
||||||
<output>/controls/flight/rudder-trim-deg</output>
|
|
||||||
</filter>
|
|
||||||
|
|
||||||
<filter>
|
<filter>
|
||||||
<name>FF 1</name>
|
<name>FF 1</name>
|
||||||
<type>gain</type>
|
<type>gain</type>
|
||||||
|
|
Reference in a new issue