Skip to content

Instantly share code, notes, and snippets.

@Vanzunator
Created Dec 30, 2020
Embed
What would you like to do?
LINDA QW 787 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
QW_AP_VS_up()
return
end
if BRAVO_MCP_SEL == "IAS" then
QW_AP_Spd_inc()
return
end
if BRAVO_MCP_SEL == "ALT" then
QW_AP_Alt_incfast()
return
end
if BRAVO_MCP_SEL == "HDG" then
QW_AP_Hdg_inc()
return
end
if BRAVO_MCP_SEL == "ALTIM" then
--Captain EFIS altimeter baro increase
QW_MCP_BARO_inc()
return
end
end
function BRAVO_MCP_DEC ()
if BRAVO_MCP_SEL == "VS" then
-- following line is add-on aircraft dependent
QW_AP_VS_down()
return
end
if BRAVO_MCP_SEL == "IAS" then
-- following line is add-on aircraft dependent
QW_AP_Spd_dec()
return
end
if BRAVO_MCP_SEL == "ALT" then
-- following line is add-on aircraft dependent
QW_AP_Alt_decfast()
return
end
if BRAVO_MCP_SEL == "HDG" then
-- following line is add-on aircraft dependent
QW_AP_Hdg_dec()
return
end
if BRAVO_MCP_SEL == "ALTIM" then
--Captain EFIS altimeter baro increase
-- following line is add-on aircraft dependent
QW_MCP_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