Control: Fix rotation problem in FBW
This commit is contained in:
parent
b2523abace
commit
001c88e9c7
2 changed files with 24 additions and 37 deletions
|
@ -131,20 +131,6 @@
|
|||
</function>
|
||||
</fcs_function>
|
||||
|
||||
<kinematic name="fbw/pitch/p-gain-k">
|
||||
<input>fbw/pitch/p-gain</input>
|
||||
<traverse>
|
||||
<setting>
|
||||
<position>0</position>
|
||||
<time>0</time>
|
||||
</setting>
|
||||
<setting>
|
||||
<position>50</position>
|
||||
<time>1.5</time>
|
||||
</setting>
|
||||
</traverse>
|
||||
</kinematic>
|
||||
|
||||
<fcs_function name="fbw/pitch/i-gain">
|
||||
<function>
|
||||
<table>
|
||||
|
@ -752,7 +738,7 @@
|
|||
</fcs_function>
|
||||
|
||||
<switch name="fbw/pitch/a-n-IaN">
|
||||
<default value="1"/>
|
||||
<default value="0"/>
|
||||
<test logic="AND" value="fbw/pitch/a-n">
|
||||
fbw/pitch/a-n lt 30
|
||||
fbw/pitch/a-n gt -30
|
||||
|
@ -943,7 +929,7 @@
|
|||
|
||||
<pid name="fbw/pitch/pid-v">
|
||||
<input>fbw/pitch/rate-error</input>
|
||||
<kp>fbw/pitch/p-gain-k</kp>
|
||||
<kp>fbw/pitch/p-gain</kp>
|
||||
<ki>fbw/pitch/i-gain</ki>
|
||||
<kd>fbw/pitch/d-gain</kd>
|
||||
<trigger>fbw/pitch/trigger</trigger>
|
||||
|
|
|
@ -15,7 +15,18 @@
|
|||
<pi-simple-controller>
|
||||
<name>FBW PITCH G PI</name>
|
||||
<debug>false</debug>
|
||||
<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>
|
||||
<condition>
|
||||
<and>
|
||||
<equals>
|
||||
|
@ -34,19 +45,9 @@
|
|||
</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>
|
||||
<value>-1.5</value>
|
||||
</Ki>
|
||||
<Ki>0.0</Ki>
|
||||
<min>
|
||||
<condition>
|
||||
<less-than>
|
||||
|
|
Reference in a new issue