Skip to content

Instantly share code, notes, and snippets.

@Vanzunator
Created December 30, 2020 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vanzunator/d4806d4f3913571ab9b325611f16e033 to your computer and use it in GitHub Desktop.
Save Vanzunator/d4806d4f3913571ab9b325611f16e033 to your computer and use it in GitHub Desktop.
LINDA PMDG 747 QOTS II user function file for Honeycomb Bravo Throttle
-- Please note BRAVO_MCP_SEL variable is aircraft agnostic and doesn't need to be changed for each add-on aircraft
BRAVO_MCP_SEL = "ALT"
-- Please note BRAVO_MCP_SEL_*** functions are aircraft agnostic and don't need to be changed for each add-on aircraft
function BRAVO_MCP_SEL_ALT ()
BRAVO_MCP_SEL = "ALT"
end
function BRAVO_MCP_SEL_IAS ()
BRAVO_MCP_SEL = "IAS"
end
function BRAVO_MCP_SEL_VS ()
BRAVO_MCP_SEL = "VS"
end
function BRAVO_MCP_SEL_HDG ()
BRAVO_MCP_SEL = "HDG"
end
-- if Bravo selector is set to CRS, use it for altimeter settings instead
function BRAVO_MCP_SEL_ALTIM ()
BRAVO_MCP_SEL = "ALTIM"
end
function BRAVO_MCP_INC ()
if BRAVO_MCP_SEL == "VS" then
-- following line is add-on aircraft dependent
MCP_VS_SELECTOR_inc()
return
end
if BRAVO_MCP_SEL == "IAS" then
-- following line is add-on aircraft dependent
MCP_SPEED_SELECTOR_inc()
return
end
if BRAVO_MCP_SEL == "ALT" then
-- following line is add-on aircraft dependent
MCP_ALT_SELECTOR_incfast()
return
end
if BRAVO_MCP_SEL == "HDG" then
-- following line is add-on aircraft dependent
MCP_HDG_SELECTOR_inc()
return
end
if BRAVO_MCP_SEL == "ALTIM" then
--Captain EFIS altimeter baro increase
-- following line is add-on aircraft dependent
EFIS_CPT_BARO_inc()
return
end
end
function BRAVO_MCP_DEC ()
if BRAVO_MCP_SEL == "VS" then
-- following line is add-on aircraft dependent
MCP_VS_SELECTOR_dec()
return
end
if BRAVO_MCP_SEL == "IAS" then
-- following line is add-on aircraft dependent
MCP_SPEED_SELECTOR_dec()
return
end
if BRAVO_MCP_SEL == "ALT" then
-- following line is add-on aircraft dependent
MCP_ALT_SELECTOR_decfast()
return
end
if BRAVO_MCP_SEL == "HDG" then
-- following line is add-on aircraft dependent
MCP_HDG_SELECTOR_dec()
return
end
if BRAVO_MCP_SEL == "ALTIM" then
--Captain EFIS altimeter baro decrease
-- following line is add-on aircraft dependent
EFIS_CPT_BARO_dec()
return
end
end
-- Just a message in console
_log("[USER] User's modifications script is loaded...")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment