VLS / VMAX --> properties
This commit is contained in:
parent
768cf4e1a0
commit
53dcada429
1 changed files with 4 additions and 0 deletions
|
@ -265,6 +265,8 @@ var FMGCNodes = {
|
||||||
v1: props.globals.initNode("/FMGC/internal/v1", 0, "DOUBLE"),
|
v1: props.globals.initNode("/FMGC/internal/v1", 0, "DOUBLE"),
|
||||||
v1set: props.globals.initNode("/FMGC/internal/v1-set", 0, "BOOL"),
|
v1set: props.globals.initNode("/FMGC/internal/v1-set", 0, "BOOL"),
|
||||||
phase: props.globals.initNode("/FMGC/internal/phase", 0, "INT"),
|
phase: props.globals.initNode("/FMGC/internal/phase", 0, "INT"),
|
||||||
|
vlsMin: props.globals.initNode("/FMGC/internal/vls-min", 0, "DOUBLE"),
|
||||||
|
vmax: props.globals.initNode("/FMGC/internal/vmax", 0, "DOUBLE"),
|
||||||
};
|
};
|
||||||
|
|
||||||
############
|
############
|
||||||
|
@ -698,6 +700,7 @@ var masterFMGC = maketimer(0.2, func {
|
||||||
} else {
|
} else {
|
||||||
FMGCInternal.maxspeed = fmgc.FMGCInternal.vmo_mmo;
|
FMGCInternal.maxspeed = fmgc.FMGCInternal.vmo_mmo;
|
||||||
}
|
}
|
||||||
|
FMGCNodes.vmax.setValue(FMGCInternal.maxspeed);
|
||||||
|
|
||||||
if (newphase != FMGCInternal.phase) { # phase changed
|
if (newphase != FMGCInternal.phase) { # phase changed
|
||||||
FMGCInternal.phase = newphase;
|
FMGCInternal.phase = newphase;
|
||||||
|
@ -937,6 +940,7 @@ var masterFMGC = maketimer(0.2, func {
|
||||||
FMGCInternal.vls_min = FMGCInternal.vs1g_conf_full * 1.23;
|
FMGCInternal.vls_min = FMGCInternal.vs1g_conf_full * 1.23;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
FMGCNodes.vlsMin.setValue(FMGCInternal.vls_min);
|
||||||
|
|
||||||
if (gear0 and flap < 5 and (state1 == "MCT" or state1 == "MAN THR" or state1 == "TOGA") and (state2 == "MCT" or state2 == "MAN THR" or state2 == "TOGA")) {
|
if (gear0 and flap < 5 and (state1 == "MCT" or state1 == "MAN THR" or state1 == "TOGA") and (state2 == "MCT" or state2 == "MAN THR" or state2 == "TOGA")) {
|
||||||
if (!FMGCInternal.takeoffState) {
|
if (!FMGCInternal.takeoffState) {
|
||||||
|
|
Loading…
Reference in a new issue