2017-11-27 23:28:09 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
##############################################
|
|
|
|
# Copyright (c) Joshua Davidson (it0uchpods) #
|
|
|
|
##############################################
|
|
|
|
-->
|
|
|
|
|
2018-04-24 15:41:59 +00:00
|
|
|
<!-- Airbus A320 FBW System -->
|
2017-11-27 23:28:09 +00:00
|
|
|
<!-- Joshua Davidson (it0uchpods) -->
|
2018-04-24 15:41:59 +00:00
|
|
|
<!-- I didn't see an easy way to do this controller in JSBsim, so I keep it here -->
|
2017-11-27 23:28:09 +00:00
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
|
2017-12-01 17:02:35 +00:00
|
|
|
<pi-simple-controller>
|
2018-04-24 15:41:59 +00:00
|
|
|
<name>FBW PITCH G PI</name>
|
2017-12-01 17:02:35 +00:00
|
|
|
<debug>false</debug>
|
|
|
|
<enable>
|
|
|
|
<condition>
|
|
|
|
<and>
|
|
|
|
<equals>
|
2018-04-24 15:41:59 +00:00
|
|
|
<property>/fdm/jsbsim/position/wow</property>
|
2017-12-01 17:02:35 +00:00
|
|
|
<value>0</value>
|
|
|
|
</equals>
|
|
|
|
<or>
|
|
|
|
<equals>
|
|
|
|
<property>/it-fbw/law</property>
|
|
|
|
<value>0</value>
|
|
|
|
</equals>
|
|
|
|
<equals>
|
|
|
|
<property>/it-fbw/law</property>
|
|
|
|
<value>1</value>
|
|
|
|
</equals>
|
|
|
|
</or>
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
</enable>
|
|
|
|
<input>
|
2018-04-24 15:41:59 +00:00
|
|
|
<property>/fdm/jsbsim/fbw/pitch/g-error</property>
|
2017-12-01 17:02:35 +00:00
|
|
|
</input>
|
|
|
|
<reference>
|
|
|
|
<value>0</value>
|
|
|
|
</reference>
|
|
|
|
<output>
|
2018-04-24 15:41:59 +00:00
|
|
|
<property>/fdm/jsbsim/fbw/pitch/g-pi</property>
|
2017-12-01 17:02:35 +00:00
|
|
|
</output>
|
|
|
|
<config>
|
2017-12-06 16:25:05 +00:00
|
|
|
<Kp>-1.5</Kp>
|
2017-12-01 17:02:35 +00:00
|
|
|
<Ki>-1.5</Ki>
|
|
|
|
<min>
|
|
|
|
<condition>
|
|
|
|
<less-than>
|
2018-04-24 15:41:59 +00:00
|
|
|
<property>/fdm/jsbsim/fbw/pitch/e-i</property>
|
2017-12-01 17:02:35 +00:00
|
|
|
<value>0</value>
|
|
|
|
</less-than>
|
|
|
|
</condition>
|
2018-04-24 15:41:59 +00:00
|
|
|
<property>/fdm/jsbsim/fbw/pitch/e-i</property>
|
2017-12-01 17:02:35 +00:00
|
|
|
</min>
|
|
|
|
<min>0.0</min>
|
|
|
|
<max>
|
|
|
|
<condition>
|
|
|
|
<greater-than>
|
2018-04-24 15:41:59 +00:00
|
|
|
<property>/fdm/jsbsim/fbw/pitch/e-i</property>
|
2017-12-01 17:02:35 +00:00
|
|
|
<value>0</value>
|
|
|
|
</greater-than>
|
|
|
|
</condition>
|
2018-04-24 15:41:59 +00:00
|
|
|
<property>/fdm/jsbsim/fbw/pitch/e-i</property>
|
2017-12-01 17:02:35 +00:00
|
|
|
</max>
|
|
|
|
<max>0.0</max>
|
|
|
|
</config>
|
|
|
|
</pi-simple-controller>
|
2017-11-27 23:28:09 +00:00
|
|
|
|
|
|
|
</PropertyList>
|