1
0
Fork 0

Prevent sequencing on the ground.

This commit is contained in:
Jonathan Redpath 2022-01-26 15:28:19 +00:00
parent d67ff09a79
commit 7a92a773c2
3 changed files with 10 additions and 2 deletions

View file

@ -442,7 +442,7 @@ var ITAF = {
if (enableFlyBy and FPLN.wp0Dist.getValue() <= FPLN.turnDist and !Gear.wow1.getBoolValue() and fmgc.flightPlanController.flightplans[2].getWP(FPLN.currentWPTemp).fly_type == "flyBy") {
flightPlanController.autoSequencing();
} elsif (FPLN.wp0Dist.getValue() <= 0.15) {
} elsif (FPLN.wp0Dist.getValue() <= 0.15 and !Gear.wow1.getBoolValue()) {
flightPlanController.autoSequencing();
}
}
@ -962,6 +962,13 @@ var ITAF = {
},
};
setlistener(Gear.wow1, func(val) {
if (!val.getBoolValue() and FPLN.currentWP.getValue() == 0) {
flightPlanController.autoSequencing();
}
});
setlistener("/it-autoflight/input/ap1", func {
Input.ap1Temp = Input.ap1.getBoolValue();
if (Input.ap1Temp != Output.ap1.getBoolValue()) {

View file

@ -768,7 +768,6 @@ var flightPlanController = {
} else {
var thePlan = plan;
}
debug.dump(me.flightplans[thePlan].getWP(index).wp_name);
# check waypoints database here
var wpFromDB = WaypointDatabase.getWP(text);

View file

@ -425,6 +425,8 @@ var fplnPage = { # this one is only created once, and then updated - remember th
decelShow = getprop("/instrumentation/nd/symbols/decel/show");
var startingIndex = fmgc.flightPlanController.currentToWptIndex.getValue() == -1 ? 0 : fmgc.flightPlanController.currentToWptIndex.getValue() - 1;
startingIndex == -1 ? 0 : startingIndex;
for (var i = startingIndex; i < me.plan.getPlanSize(); i += 1) {
if (!me.temporaryFlagFpln and decelShow) {
if (i == decelIndex) {