1
0
Fork 0

Fix that cost index 0 would prevent managed speed

This commit is contained in:
legoboyvdlp R 2020-08-02 13:01:06 +01:00
parent c175461ea4
commit 067a87f1e8

View file

@ -898,7 +898,7 @@ var reset_FMGC = func {
################# #################
var ManagedSPD = maketimer(0.25, func { var ManagedSPD = maketimer(0.25, func {
if (FMGCInternal.crzSet and FMGCInternal.costIndex) { if (FMGCInternal.crzSet and FMGCInternal.costIndexSet) {
if (getprop("/it-autoflight/input/spd-managed") == 1) { if (getprop("/it-autoflight/input/spd-managed") == 1) {
altitude = getprop("/instrumentation/altimeter/indicated-altitude-ft"); altitude = getprop("/instrumentation/altimeter/indicated-altitude-ft");
mode = getprop("/modes/pfd/fma/pitch-mode"); mode = getprop("/modes/pfd/fma/pitch-mode");