Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoland #288

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
6 changes: 4 additions & 2 deletions salty-747/SimObjects/Airplanes/Asobo_B747_8i/systems.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ max_Mach_ref = .950
default_pitch_mode = 1
default_bank_mode = 0
min_flight_time_for_ap = 3
english_VS_increment = 50
english_VS_increment = 100
use_no_default_bank = 0
use_no_default_pitch = 0
min_feet_ra_for_ap = -1000
Expand All @@ -314,4 +314,6 @@ mach_increment = 0.01
alt_mode_slot_index = 0
autothrottle_does_not_move_lever = 0
flc_min_pitch_low_alt = -15
flc_min_low_alt_limit = 0
flc_min_low_alt_limit = 0
nav_proportional_control_ex1 = 4.00
gs_proportional_control = 2.00
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,19 @@ class B747_8_FMC_MainDisplay extends Boeing_FMC {
}
}

if ((SimVar.GetSimVarValue("A:AUTOPILOT MASTER", "bool") === 1) && (SimVar.GetSimVarValue("A:AUTOPILOT APPROACH HOLD", "bool") === 1) && (SimVar.GetSimVarValue("A:RADIO HEIGHT", "feet") < 100)) {
SimVar.SetSimVarValue("K:AP_PANEL_VS_HOLD", "Number", 1);
SimVar.SetSimVarValue("A:AUTOPILOT THROTTLE MAX THRUST", "Float", 0.01);
SimVar.SetSimVarValue("K:AUTO_THROTTLE_TO_GA", "Number", 1);
if (!SimVar.GetSimVarValue("AUTOPILOT VERTICAL HOLD", "Boolean")) {
SimVar.SetSimVarValue("K:AP_PANEL_VS_HOLD", "Number", 1);
Coherent.call("AP_VS_VAR_SET_ENGLISH", 0, -200);
}
if (SimVar.GetSimVarValue("A:RADIO HEIGHT", "feet") < 20) {
SimVar.SetSimVarValue("K:RUDDER_SET", "Number", ((SimVar.GetSimVarValue("A:NAV CDI", "number")) * 5));
}
}

this._navModeSelector.generateInputDataEvents();
this._navModeSelector.processEvents();

Expand Down