Skip to content

[AP] Set managed altitude

Curtis English edited this page Sep 9, 2020 · 6 revisions

Set the managed altitude target.

Set managed altitude target:
Coherent.call("AP_ALT_VAR_SET_ENGLISH", 1, Simplane.getAutoPilotDisplayedAltitudeLockValue(), this._forceNextAltitudeUpdate); Coherent.call("AP_ALT_VAR_SET_ENGLISH", 2, Simplane.getAutoPilotDisplayedAltitudeLockValue(), this._forceNextAltitudeUpdate);

Set to managed altitude mode:
SimVar.SetSimVarValue("K:ALTITUDE_SLOT_INDEX_SET", "number", 2);