This commit is contained in:
omega13a 2017-06-20 14:05:33 -07:00
commit b0f5004090
5 changed files with 17 additions and 15 deletions

View file

@ -308,7 +308,7 @@
<cmd> <cmd>
<roll-kp>-0.9</roll-kp> <roll-kp>-0.9</roll-kp>
<roll-scale>1.6</roll-scale> <roll-scale>1.6</roll-scale>
<vorloc>-4.0</vorloc> <vorloc>-2.8</vorloc>
<vs>0.01</vs> <vs>0.01</vs>
<fpa>0.30</fpa> <fpa>0.30</fpa>
</cmd> </cmd>

View file

@ -27,7 +27,7 @@
</text> </text>
<text> <text>
<halign>left</halign> <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>
<text> <text>
<border>1</border> <border>1</border>

View file

@ -6,6 +6,8 @@
################################# #################################
var APinit = func { 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/custom/trk-fpa", 0);
setprop("/it-autoflight/input/kts-mach", 0); setprop("/it-autoflight/input/kts-mach", 0);
setprop("/it-autoflight/input/ap1", 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/vert", 5);
} }
setprop("/it-autoflight/input/trk", 1); 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"); var hed = getprop("/it-autoflight/internal/heading-error-deg");
if (hed >= -10 and hed <= 10 and getprop("/it-autoflight/output/lat") == 0) { if (hed >= -10 and hed <= 10 and getprop("/it-autoflight/output/lat") == 0) {
setprop("/it-autoflight/input/lat", 3); setprop("/it-autoflight/input/lat", 3);
@ -410,6 +414,8 @@ var toggle_trkfpa = func {
setprop("/it-autoflight/input/vert", 1); setprop("/it-autoflight/input/vert", 1);
} }
setprop("/it-autoflight/input/trk", 0); 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"); var hed = getprop("/it-autoflight/internal/heading-error-deg");
if (hed >= -10 and hed <= 10 and getprop("/it-autoflight/output/lat") == 0) { if (hed >= -10 and hed <= 10 and getprop("/it-autoflight/output/lat") == 0) {
setprop("/it-autoflight/input/lat", 3); setprop("/it-autoflight/input/lat", 3);

View file

@ -42,7 +42,7 @@
<aerosurface_scale name="Left Aileron Control"> <aerosurface_scale name="Left Aileron Control">
<input>fcs/roll-trim-sum</input> <input>fcs/roll-trim-sum</input>
<gain>0.02</gain> <gain>0.022</gain>
<range> <range>
<min>-15</min> <min>-15</min>
<max>15</max> <max>15</max>
@ -52,7 +52,7 @@
<aerosurface_scale name="Right Aileron Control"> <aerosurface_scale name="Right Aileron Control">
<input>-fcs/roll-trim-sum</input> <input>-fcs/roll-trim-sum</input>
<gain>0.02</gain> <gain>0.022</gain>
<range> <range>
<min>-15</min> <min>-15</min>
<max>15</max> <max>15</max>

View file

@ -72,7 +72,7 @@
</config> </config>
</pi-simple-controller> </pi-simple-controller>
<pid-controller> <pi-simple-controller>
<name>VORLOC TRK</name> <name>VORLOC TRK</name>
<debug>false</debug> <debug>false</debug>
<enable> <enable>
@ -131,20 +131,16 @@
<Kp> <Kp>
<property>/it-autoflight/config/cmd/vorloc</property> <property>/it-autoflight/config/cmd/vorloc</property>
</Kp> </Kp>
<beta>1.0</beta> <Ki>0.0001</Ki>
<alpha>0.1</alpha> <min>
<gamma>0.0</gamma>
<Ti>10.0</Ti>
<Td>0.00001</Td>
<u_min>
<property>/it-autoflight/internal/bank-limit</property> <property>/it-autoflight/internal/bank-limit</property>
<scale>-1</scale> <scale>-1</scale>
</u_min> </min>
<u_max> <max>
<property>/it-autoflight/internal/bank-limit</property> <property>/it-autoflight/internal/bank-limit</property>
</u_max> </max>
</config> </config>
</pid-controller> </pi-simple-controller>
<filter> <filter>
<name>ROLL DEG SYNC</name> <name>ROLL DEG SYNC</name>