A3XX: Fix FBW G Pitch 'Shaking' Elevator
This commit is contained in:
parent
a05cd8d91a
commit
0e0d8c1620
2 changed files with 30 additions and 4 deletions
|
@ -61,7 +61,7 @@
|
||||||
<input>
|
<input>
|
||||||
<expression>
|
<expression>
|
||||||
<sum>
|
<sum>
|
||||||
<property>/accelerations/pilot-g</property>
|
<property>/accelerations/pilot-gdamped</property>
|
||||||
<div>
|
<div>
|
||||||
<value>1</value>
|
<value>1</value>
|
||||||
<cos>
|
<cos>
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
<property>/it-fbw/g-elevator</property>
|
<property>/it-fbw/g-elevator</property>
|
||||||
</output>
|
</output>
|
||||||
<config>
|
<config>
|
||||||
<Kp>-2.5</Kp>
|
<Kp>-1.5</Kp>
|
||||||
<Ki>-1.5</Ki>
|
<Ki>-1.5</Ki>
|
||||||
<min>
|
<min>
|
||||||
<condition>
|
<condition>
|
||||||
|
@ -404,7 +404,7 @@
|
||||||
<property>/it-fbw/pitch-rate</property>
|
<property>/it-fbw/pitch-rate</property>
|
||||||
</reference>
|
</reference>
|
||||||
<output>
|
<output>
|
||||||
<property>/controls/flight/elevator-fbw-cmd</property>
|
<property>/controls/flight/elevator-fbw-pid</property>
|
||||||
</output>
|
</output>
|
||||||
<config>
|
<config>
|
||||||
<Kp>
|
<Kp>
|
||||||
|
@ -422,6 +422,32 @@
|
||||||
</config>
|
</config>
|
||||||
</pid-controller>
|
</pid-controller>
|
||||||
|
|
||||||
|
<filter>
|
||||||
|
<name>IT-CONTROLLER: ELEVATOR INVERT</name>
|
||||||
|
<type>gain</type>
|
||||||
|
<gain>1.0</gain>
|
||||||
|
<input>
|
||||||
|
<condition>
|
||||||
|
<and>
|
||||||
|
<less-than-equals>
|
||||||
|
<property>/orientation/roll-deg</property>
|
||||||
|
<value>90</value>
|
||||||
|
</less-than-equals>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/orientation/roll-deg</property>
|
||||||
|
<value>-90</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
<property>/controls/flight/elevator-fbw-pid</property>
|
||||||
|
</input>
|
||||||
|
<input>
|
||||||
|
<property>/controls/flight/elevator-fbw-pid</property>
|
||||||
|
<scale>-1.0</scale>
|
||||||
|
</input>
|
||||||
|
<output>/controls/flight/elevator-fbw-cmd</output>
|
||||||
|
</filter>
|
||||||
|
|
||||||
<filter>
|
<filter>
|
||||||
<name>IT-CONTROLLER: PITCH OPTION</name>
|
<name>IT-CONTROLLER: PITCH OPTION</name>
|
||||||
<debug>false</debug>
|
<debug>false</debug>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
4061
|
4062
|
Reference in a new issue