73 lines
1.5 KiB
XML
73 lines
1.5 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
##############################################
|
|
# Copyright (c) Joshua Davidson (it0uchpods) #
|
|
##############################################
|
|
-->
|
|
|
|
<!-- Airbus A320 FBW System -->
|
|
<!-- Joshua Davidson (it0uchpods) -->
|
|
<!-- I didn't see an easy way to do this controller in JSBsim, so I keep it here -->
|
|
|
|
<PropertyList>
|
|
|
|
<pi-simple-controller>
|
|
<name>FBW PITCH G PI</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/fdm/jsbsim/position/wow</property>
|
|
<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>
|
|
<property>/fdm/jsbsim/fbw/pitch/g-error</property>
|
|
</input>
|
|
<reference>
|
|
<value>0</value>
|
|
</reference>
|
|
<output>
|
|
<property>/fdm/jsbsim/fbw/pitch/g-pi</property>
|
|
</output>
|
|
<config>
|
|
<Kp>-1.5</Kp>
|
|
<Ki>-1.5</Ki>
|
|
<min>
|
|
<condition>
|
|
<less-than>
|
|
<property>/fdm/jsbsim/fbw/pitch/e-i</property>
|
|
<value>0</value>
|
|
</less-than>
|
|
</condition>
|
|
<property>/fdm/jsbsim/fbw/pitch/e-i</property>
|
|
</min>
|
|
<min>0.0</min>
|
|
<max>
|
|
<condition>
|
|
<greater-than>
|
|
<property>/fdm/jsbsim/fbw/pitch/e-i</property>
|
|
<value>0</value>
|
|
</greater-than>
|
|
</condition>
|
|
<property>/fdm/jsbsim/fbw/pitch/e-i</property>
|
|
</max>
|
|
<max>0.0</max>
|
|
</config>
|
|
</pi-simple-controller>
|
|
|
|
</PropertyList>
|