Skip to content

Instantly share code, notes, and snippets.

@RyanBreaker
Last active Dec 28, 2020
Embed
What would you like to do?
BRAVO_FCU_SEL = "ALT"
function BRAVO_FCU_SEL_ALT ()
BRAVO_FCU_SEL = "ALT"
end
function BRAVO_FCU_SEL_VS ()
BRAVO_FCU_SEL = "VS"
end
function BRAVO_FCU_SEL_HDG ()
BRAVO_FCU_SEL = "HDG"
end
function BRAVO_FCU_SEL_CRS ()
BRAVO_FCU_SEL = "CRS"
end
function BRAVO_FCU_SEL_IAS ()
BRAVO_FCU_SEL = "IAS"
end
function BRAVO_FCU_INC ()
if BRAVO_FCU_SEL == "ALT" then
VC_GSLD_FCU_ALT_inc()
return
end
if BRAVO_FCU_SEL == "VS" then
VC_GSLD_FCU_VS_inc()
return
end
if BRAVO_FCU_SEL == "HDG" then
VC_GSLD_FCU_HDG_incfast()
return
end
if BRAVO_FCU_SEL == "CRS" then
-- Currently no function to use for CRS, placeholder
return
end
if BRAVO_FCU_SEL == "IAS" then
VC_GSLD_FCU_SPD_inc()
return
end
end
function BRAVO_FCU_INC_SHIFTED ()
if BRAVO_FCU_SEL == "ALT" then
VC_GSLD_FCU_ALT_incfast()
end
if BRAVO_FCU_SEL == "VS" then
VC_GSLD_FCU_VS_inc()
return
end
if BRAVO_FCU_SEL == "HDG" then
VC_GSLD_FCU_HDG_inc()
return
end
if BRAVO_FCU_SEL == "CRS" then
-- Currently no function to use for CRS, placeholder
return
end
if BRAVO_FCU_SEL == "IAS" then
VC_GSLD_FCU_SPD_inc()
return
end
end
function BRAVO_FCU_DEC ()
if BRAVO_FCU_SEL == "ALT" then
VC_GSLD_FCU_ALT_dec()
return
end
if BRAVO_FCU_SEL == "VS" then
VC_GSLD_FCU_VS_dec()
return
end
if BRAVO_FCU_SEL == "HDG" then
VC_GSLD_FCU_HDG_decfast()
return
end
if BRAVO_FCU_SEL == "CRS" then
-- Currently no function to use for CRS
return
end
if BRAVO_FCU_SEL == "IAS" then
VC_GSLD_FCU_SPD_dec()
return
end
end
function BRAVO_FCU_DEC_SHIFTED ()
if BRAVO_FCU_SEL == "ALT" then
VC_GSLD_FCU_ALT_decfast()
end
if BRAVO_FCU_SEL == "VS" then
VC_GSLD_FCU_VS_dec()
return
end
if BRAVO_FCU_SEL == "HDG" then
VC_GSLD_FCU_HDG_dec()
return
end
if BRAVO_FCU_SEL == "CRS" then
-- Currently no function to use for CRS
return
end
if BRAVO_FCU_SEL == "IAS" then
VC_GSLD_FCU_SPD_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