This commit is contained in:
commit
b0f5004090
5 changed files with 17 additions and 15 deletions
|
@ -308,7 +308,7 @@
|
|||
<cmd>
|
||||
<roll-kp>-0.9</roll-kp>
|
||||
<roll-scale>1.6</roll-scale>
|
||||
<vorloc>-4.0</vorloc>
|
||||
<vorloc>-2.8</vorloc>
|
||||
<vs>0.01</vs>
|
||||
<fpa>0.30</fpa>
|
||||
</cmd>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
</text>
|
||||
<text>
|
||||
<halign>left</halign>
|
||||
<label>Please be paitent, and don't touch anything during this process!</label>
|
||||
<label>Please be patient, and don't touch anything during this process!</label>
|
||||
</text>
|
||||
<text>
|
||||
<border>1</border>
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
#################################
|
||||
|
||||
var APinit = func {
|
||||
setprop("/instrumentation/efis[0]/mfd/true-north", 0);
|
||||
setprop("/instrumentation/efis[1]/mfd/true-north", 0);
|
||||
setprop("/it-autoflight/custom/trk-fpa", 0);
|
||||
setprop("/it-autoflight/input/kts-mach", 0);
|
||||
setprop("/it-autoflight/input/ap1", 0);
|
||||
|
@ -400,6 +402,8 @@ var toggle_trkfpa = func {
|
|||
setprop("/it-autoflight/input/vert", 5);
|
||||
}
|
||||
setprop("/it-autoflight/input/trk", 1);
|
||||
setprop("/instrumentation/efis[0]/mfd/true-north", 1);
|
||||
setprop("/instrumentation/efis[1]/mfd/true-north", 1);
|
||||
var hed = getprop("/it-autoflight/internal/heading-error-deg");
|
||||
if (hed >= -10 and hed <= 10 and getprop("/it-autoflight/output/lat") == 0) {
|
||||
setprop("/it-autoflight/input/lat", 3);
|
||||
|
@ -410,6 +414,8 @@ var toggle_trkfpa = func {
|
|||
setprop("/it-autoflight/input/vert", 1);
|
||||
}
|
||||
setprop("/it-autoflight/input/trk", 0);
|
||||
setprop("/instrumentation/efis[0]/mfd/true-north", 0);
|
||||
setprop("/instrumentation/efis[1]/mfd/true-north", 0);
|
||||
var hed = getprop("/it-autoflight/internal/heading-error-deg");
|
||||
if (hed >= -10 and hed <= 10 and getprop("/it-autoflight/output/lat") == 0) {
|
||||
setprop("/it-autoflight/input/lat", 3);
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
<aerosurface_scale name="Left Aileron Control">
|
||||
<input>fcs/roll-trim-sum</input>
|
||||
<gain>0.02</gain>
|
||||
<gain>0.022</gain>
|
||||
<range>
|
||||
<min>-15</min>
|
||||
<max>15</max>
|
||||
|
@ -52,7 +52,7 @@
|
|||
|
||||
<aerosurface_scale name="Right Aileron Control">
|
||||
<input>-fcs/roll-trim-sum</input>
|
||||
<gain>0.02</gain>
|
||||
<gain>0.022</gain>
|
||||
<range>
|
||||
<min>-15</min>
|
||||
<max>15</max>
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
</config>
|
||||
</pi-simple-controller>
|
||||
|
||||
<pid-controller>
|
||||
<pi-simple-controller>
|
||||
<name>VORLOC TRK</name>
|
||||
<debug>false</debug>
|
||||
<enable>
|
||||
|
@ -131,20 +131,16 @@
|
|||
<Kp>
|
||||
<property>/it-autoflight/config/cmd/vorloc</property>
|
||||
</Kp>
|
||||
<beta>1.0</beta>
|
||||
<alpha>0.1</alpha>
|
||||
<gamma>0.0</gamma>
|
||||
<Ti>10.0</Ti>
|
||||
<Td>0.00001</Td>
|
||||
<u_min>
|
||||
<Ki>0.0001</Ki>
|
||||
<min>
|
||||
<property>/it-autoflight/internal/bank-limit</property>
|
||||
<scale>-1</scale>
|
||||
</u_min>
|
||||
<u_max>
|
||||
</min>
|
||||
<max>
|
||||
<property>/it-autoflight/internal/bank-limit</property>
|
||||
</u_max>
|
||||
</max>
|
||||
</config>
|
||||
</pid-controller>
|
||||
</pi-simple-controller>
|
||||
|
||||
<filter>
|
||||
<name>ROLL DEG SYNC</name>
|
||||
|
|
Reference in a new issue