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>
|
||||
<expression>
|
||||
<sum>
|
||||
<property>/accelerations/pilot-g</property>
|
||||
<property>/accelerations/pilot-gdamped</property>
|
||||
<div>
|
||||
<value>1</value>
|
||||
<cos>
|
||||
|
@ -132,7 +132,7 @@
|
|||
<property>/it-fbw/g-elevator</property>
|
||||
</output>
|
||||
<config>
|
||||
<Kp>-2.5</Kp>
|
||||
<Kp>-1.5</Kp>
|
||||
<Ki>-1.5</Ki>
|
||||
<min>
|
||||
<condition>
|
||||
|
@ -404,7 +404,7 @@
|
|||
<property>/it-fbw/pitch-rate</property>
|
||||
</reference>
|
||||
<output>
|
||||
<property>/controls/flight/elevator-fbw-cmd</property>
|
||||
<property>/controls/flight/elevator-fbw-pid</property>
|
||||
</output>
|
||||
<config>
|
||||
<Kp>
|
||||
|
@ -422,6 +422,32 @@
|
|||
</config>
|
||||
</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>
|
||||
<name>IT-CONTROLLER: PITCH OPTION</name>
|
||||
<debug>false</debug>
|
||||
|
|
|
@ -1 +1 @@
|
|||
4061
|
||||
4062
|
Reference in a new issue