Correct autopilot max bank angle to 30 deg, THR IDLE in autoland at 30 feet, altitude capture at delta 20 feet, and LAND arms at 400 rather than 300
This commit is contained in:
parent
a97a012d68
commit
a1d20d78fb
1 changed files with 10 additions and 9 deletions
|
@ -270,16 +270,17 @@ var ITAF = {
|
|||
|
||||
# Autoland Logic
|
||||
if (Output.latTemp == 2) {
|
||||
if (Position.gearAglFtTemp <= 150) {
|
||||
if (Position.gearAglFtTemp <= 50) { # ALIGN
|
||||
me.setLatMode(4);
|
||||
}
|
||||
}
|
||||
if (Output.vertTemp == 2) {
|
||||
if (Position.gearAglFtTemp <= 300 and Position.gearAglFtTemp >= 5) {
|
||||
if (Position.gearAglFtTemp <= 400 and Position.gearAglFtTemp >= 5) {
|
||||
Text.vert.setValue("LAND");
|
||||
}
|
||||
if (Position.gearAglFtTemp <= 100 and Position.gearAglFtTemp >= 5) {
|
||||
me.setVertMode(6);
|
||||
|
||||
if (Position.gearAglFtTemp <= 100) { # switch to internal flare logic at 100 feet -- but on FMA at 50!
|
||||
me.setVertMode(6);
|
||||
}
|
||||
}
|
||||
} else if (Output.vertTemp == 6) {
|
||||
if (Position.gearAglFtTemp <= 50 and Position.gearAglFtTemp >= 5) {
|
||||
|
@ -317,14 +318,15 @@ var ITAF = {
|
|||
|
||||
# Altitude Hold Min/Max Reset
|
||||
if (Internal.altCaptureActive) {
|
||||
if (abs(Internal.altDiff) <= 25) {
|
||||
if (abs(Internal.altDiff) <= 20) {
|
||||
me.resetClimbRateLim();
|
||||
Text.vert.setValue("ALT HLD");
|
||||
}
|
||||
}
|
||||
|
||||
# Thrust Mode Selector
|
||||
if (Output.athr.getBoolValue() and Output.vertTemp != 7 and (Output.ap1Temp or Output.ap2Temp) and Position.gearAglFt.getValue() <= 18 and (Output.vertTemp == 2 or Output.vertTemp == 6)) {
|
||||
if (Output.athr.getBoolValue() and Output.vertTemp != 7 and (Output.ap1Temp or Output.ap2Temp) and Position.gearAglFt.getValue() <= 30 and (Output.vertTemp == 2 or Output.vertTemp == 6)) {
|
||||
# Manual says 40 feet -- but video reference shows 30!
|
||||
Output.thrMode.setValue(1);
|
||||
Text.thr.setValue("RETARD");
|
||||
} else if (Output.vertTemp == 4) {
|
||||
|
@ -372,7 +374,6 @@ var ITAF = {
|
|||
}
|
||||
},
|
||||
slowLoop: func() {
|
||||
Input.bankLimitSWTemp = Input.bankLimitSW.getValue();
|
||||
Velocities.trueAirspeedKtTemp = Velocities.trueAirspeedKt.getValue();
|
||||
FPLN.activeTemp = FPLN.active.getValue();
|
||||
FPLN.currentWpTemp = FPLN.currentWp.getValue();
|
||||
|
@ -383,7 +384,7 @@ var ITAF = {
|
|||
} else if (Velocities.trueAirspeedKtTemp >= 340) {
|
||||
Internal.bankLimitAuto = 20;
|
||||
} else {
|
||||
Internal.bankLimitAuto = 25;
|
||||
Internal.bankLimitAuto = 30;
|
||||
}
|
||||
|
||||
Internal.bankLimit.setValue(Internal.bankLimitAuto);
|
||||
|
|
Loading…
Add table
Reference in a new issue