Add support for alternate/direct law
This commit is contained in:
parent
30497a8cf2
commit
a9c44598de
3 changed files with 39 additions and 7 deletions
|
@ -1131,7 +1131,7 @@ var canvas_PFD_1 = {
|
|||
me["ASI_scale"].setTranslation(0, me.ASI * 6.6);
|
||||
me["ASI_max"].setTranslation(0, me.ASImax * -6.6);
|
||||
|
||||
if (FMGCphase.getValue() >= 2 and FMGCphase.getValue() <= 6) {
|
||||
if (!getprop("FMGC/status/to-state") and FMGCphase.getValue() >= 1 and FMGCphase.getValue() <= 6) {
|
||||
me.FMGC_vls = getprop("FMGC/internal/computed-speeds/vls_min");
|
||||
if (me.FMGC_vls <= 30) {
|
||||
me.VLSmin = 0 - me.ASI;
|
||||
|
@ -1156,10 +1156,19 @@ var canvas_PFD_1 = {
|
|||
} else {
|
||||
me.ALPHAmax = me.FMGC_max - 30 - me.ASI;
|
||||
}
|
||||
me.FMGC_vsw = getprop("FMGC/internal/computed-speeds/vsw");
|
||||
if (me.FMGC_vsw <= 30) {
|
||||
me.ALPHAvsw = 0 - me.ASI;
|
||||
} else if (me.FMGC_vsw >= 420) {
|
||||
me.ALPHAvsw = 390 - me.ASI;
|
||||
} else {
|
||||
me.ALPHAvsw = me.FMGC_vsw - 30 - me.ASI;
|
||||
}
|
||||
me["VLS_min"].setTranslation(0, me.VLSmin * -6.6);
|
||||
me["VLS_min"].show();
|
||||
me["ALPHA_PROT"].setTranslation(0, me.ALPHAprot * -6.6);
|
||||
me["ALPHA_MAX"].setTranslation(0, me.ALPHAmax * -6.6);
|
||||
me["ALPHA_SW"].setTranslation(0, me.ALPHAvsw * -6.6);
|
||||
if (getprop("it-fbw/law") == 0) {
|
||||
me["ALPHA_PROT"].show();
|
||||
me["ALPHA_MAX"].show();
|
||||
|
@ -1833,7 +1842,7 @@ var canvas_PFD_2 = {
|
|||
me["ASI_scale"].setTranslation(0, me.ASI * 6.6);
|
||||
me["ASI_max"].setTranslation(0, me.ASImax * -6.6);
|
||||
|
||||
if (FMGCphase.getValue() >= 2 and FMGCphase.getValue() <= 6) {
|
||||
if (!getprop("FMGC/status/to-state") and FMGCphase.getValue() >= 1 and FMGCphase.getValue() <= 6) {
|
||||
me.FMGC_vls = getprop("FMGC/internal/computed-speeds/vls_min");
|
||||
if (me.FMGC_vls <= 30) {
|
||||
me.VLSmin = 0 - me.ASI;
|
||||
|
@ -1858,10 +1867,19 @@ var canvas_PFD_2 = {
|
|||
} else {
|
||||
me.ALPHAmax = me.FMGC_max - 30 - me.ASI;
|
||||
}
|
||||
me.FMGC_vsw = getprop("FMGC/internal/computed-speeds/vsw");
|
||||
if (me.FMGC_vsw <= 30) {
|
||||
me.ALPHAvsw = 0 - me.ASI;
|
||||
} else if (me.FMGC_vsw >= 420) {
|
||||
me.ALPHAvsw = 390 - me.ASI;
|
||||
} else {
|
||||
me.ALPHAvsw = me.FMGC_vsw - 30 - me.ASI;
|
||||
}
|
||||
me["VLS_min"].setTranslation(0, me.VLSmin * -6.6);
|
||||
me["VLS_min"].show();
|
||||
me["ALPHA_PROT"].setTranslation(0, me.ALPHAprot * -6.6);
|
||||
me["ALPHA_MAX"].setTranslation(0, me.ALPHAmax * -6.6);
|
||||
me["ALPHA_SW"].setTranslation(0, me.ALPHAvsw * -6.6);
|
||||
if (getprop("it-fbw/law") == 0) {
|
||||
me["ALPHA_PROT"].show();
|
||||
me["ALPHA_MAX"].show();
|
||||
|
|
|
@ -41,8 +41,8 @@
|
|||
inkscape:window-maximized="0"
|
||||
inkscape:window-y="23"
|
||||
inkscape:window-x="0"
|
||||
inkscape:cy="734.01649"
|
||||
inkscape:cx="185.41537"
|
||||
inkscape:cy="725.57299"
|
||||
inkscape:cx="177.29662"
|
||||
inkscape:zoom="6.1585842"
|
||||
showgrid="true"
|
||||
id="namedview371"
|
||||
|
@ -3083,11 +3083,11 @@
|
|||
id="tspan4301"
|
||||
sodipodi:role="line">DH</tspan></text>
|
||||
<rect
|
||||
style="display:inline;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bb6100;stroke-width:4.15275;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
|
||||
style="display:inline;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#bb6100;stroke-width:3.4027499;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
|
||||
id="VLS_min"
|
||||
width="11.001064"
|
||||
height="2089.313"
|
||||
x="128.00137"
|
||||
x="125.00137"
|
||||
y="512.43707"
|
||||
inkscape:label="VLS_min" />
|
||||
<text
|
||||
|
|
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 361 KiB |
|
@ -426,12 +426,26 @@ var masterFMGC = maketimer(0.2, func {
|
|||
} else if (flap == 3) { # 2
|
||||
setprop("FMGC/internal/computed-speeds/vls_min", vs1g_conf_2 * 1.23);
|
||||
} else if (flap == 4) { # 3
|
||||
setprop("FMGC/internal/computed-speeds/vls_min", vs1g_conf_3 * 1.23);;
|
||||
setprop("FMGC/internal/computed-speeds/vls_min", vs1g_conf_3 * 1.23);
|
||||
} else if (flap == 5) { # FULL
|
||||
setprop("FMGC/internal/computed-speeds/vls_min", vs1g_conf_full * 1.23);
|
||||
}
|
||||
}
|
||||
|
||||
if (flap == 0) { # 0
|
||||
setprop("FMGC/internal/computed-speeds/vsw", vs1g_clean);
|
||||
} else if (flap == 1) { # 1
|
||||
setprop("FMGC/internal/computed-speeds/vsw", vs1g_conf_1);
|
||||
} else if (flap == 2) { # 1+F
|
||||
setprop("FMGC/internal/computed-speeds/vsw", vs1g_conf_1f);
|
||||
} else if (flap == 3) { # 2
|
||||
setprop("FMGC/internal/computed-speeds/vsw", vs1g_conf_2);
|
||||
} else if (flap == 4) { # 3
|
||||
setprop("FMGC/internal/computed-speeds/vsw", vs1g_conf_3);
|
||||
} else if (flap == 5) { # FULL
|
||||
setprop("FMGC/internal/computed-speeds/vsw", vs1g_conf_full);
|
||||
}
|
||||
|
||||
if (flap == 0) { # 0
|
||||
setprop("FMGC/internal/minspeed", clean);
|
||||
} else if (flap == 1) { # 1
|
||||
|
|
Loading…
Reference in a new issue