A3XX: Improve FBW
This commit is contained in:
parent
42ab259f7b
commit
82be80da96
2 changed files with 12 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Aircraft Config Center
|
# Aircraft Config Center
|
||||||
# Joshua Davidson (it0uchpods)
|
# Joshua Davidson (it0uchpods)
|
||||||
|
|
||||||
var spinning = maketimer(0.1, func {
|
var spinning = maketimer(0.05, func {
|
||||||
var spinning = getprop("/systems/acconfig/spinning");
|
var spinning = getprop("/systems/acconfig/spinning");
|
||||||
if (spinning == 0) {
|
if (spinning == 0) {
|
||||||
setprop("/systems/acconfig/spin", "\\");
|
setprop("/systems/acconfig/spin", "\\");
|
||||||
|
|
|
@ -115,7 +115,7 @@
|
||||||
<property>/controls/flight/aileron-fbw-cmd</property>
|
<property>/controls/flight/aileron-fbw-cmd</property>
|
||||||
</output>
|
</output>
|
||||||
<config>
|
<config>
|
||||||
<Kp>0.12</Kp>
|
<Kp>0.06</Kp>
|
||||||
<beta>1</beta>
|
<beta>1</beta>
|
||||||
<alpha>0.1</alpha>
|
<alpha>0.1</alpha>
|
||||||
<gamma>0</gamma>
|
<gamma>0</gamma>
|
||||||
|
@ -129,6 +129,8 @@
|
||||||
<filter>
|
<filter>
|
||||||
<name>IT-FBW: ROLL OPTION</name>
|
<name>IT-FBW: ROLL OPTION</name>
|
||||||
<debug>false</debug>
|
<debug>false</debug>
|
||||||
|
<type>gain</type>
|
||||||
|
<gain>1</gain>
|
||||||
<feedback-if-disabled>true</feedback-if-disabled>
|
<feedback-if-disabled>true</feedback-if-disabled>
|
||||||
<initialize-to>output</initialize-to>
|
<initialize-to>output</initialize-to>
|
||||||
<input>
|
<input>
|
||||||
|
@ -157,6 +159,7 @@
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<property>/controls/flight/aileron-fbw-cmd</property>
|
<property>/controls/flight/aileron-fbw-cmd</property>
|
||||||
|
<scale>2.0</scale>
|
||||||
</input>
|
</input>
|
||||||
<input>
|
<input>
|
||||||
<condition>
|
<condition>
|
||||||
|
@ -199,8 +202,6 @@
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</input>
|
</input>
|
||||||
<output>/controls/flight/roll-fbw</output>
|
<output>/controls/flight/roll-fbw</output>
|
||||||
<type>noise-spike</type>
|
|
||||||
<max-rate-of-change>10</max-rate-of-change>
|
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
<filter>
|
<filter>
|
||||||
|
@ -287,14 +288,14 @@
|
||||||
<property>/controls/flight/elevator-fbw-cmd</property>
|
<property>/controls/flight/elevator-fbw-cmd</property>
|
||||||
</output>
|
</output>
|
||||||
<config>
|
<config>
|
||||||
<Kp>-0.22</Kp>
|
<Kp>-0.12</Kp>
|
||||||
<beta>1</beta>
|
<beta>1</beta>
|
||||||
<alpha>0.1</alpha>
|
<alpha>0.1</alpha>
|
||||||
<gamma>0</gamma>
|
<gamma>0</gamma>
|
||||||
<Ti>10</Ti>
|
<Ti>5</Ti>
|
||||||
<Td>0.005</Td>
|
<Td>0.005</Td>
|
||||||
<u_min>-1</u_min>
|
<u_min>-0.5</u_min>
|
||||||
<u_max>1</u_max>
|
<u_max>0.5</u_max>
|
||||||
</config>
|
</config>
|
||||||
</pid-controller>
|
</pid-controller>
|
||||||
|
|
||||||
|
@ -473,6 +474,8 @@
|
||||||
<filter>
|
<filter>
|
||||||
<name>IT-FBW: PITCH OPTION</name>
|
<name>IT-FBW: PITCH OPTION</name>
|
||||||
<debug>false</debug>
|
<debug>false</debug>
|
||||||
|
<type>gain</type>
|
||||||
|
<gain>1</gain>
|
||||||
<feedback-if-disabled>true</feedback-if-disabled>
|
<feedback-if-disabled>true</feedback-if-disabled>
|
||||||
<initialize-to>output</initialize-to>
|
<initialize-to>output</initialize-to>
|
||||||
<input>
|
<input>
|
||||||
|
@ -507,6 +510,7 @@
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
<property>/controls/flight/elevator-fbw-cmd</property>
|
<property>/controls/flight/elevator-fbw-cmd</property>
|
||||||
|
<scale>2.0</scale>
|
||||||
</input>
|
</input>
|
||||||
<input>
|
<input>
|
||||||
<condition>
|
<condition>
|
||||||
|
@ -545,8 +549,6 @@
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</input>
|
</input>
|
||||||
<output>/controls/flight/elevator-fbw</output>
|
<output>/controls/flight/elevator-fbw</output>
|
||||||
<type>noise-spike</type>
|
|
||||||
<max-rate-of-change>10</max-rate-of-change>
|
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
<pid-controller>
|
<pid-controller>
|
||||||
|
|
Reference in a new issue