Skip to content

Instantly share code, notes, and snippets.

@RyanBreaker
Last active December 28, 2020 22:14
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 RyanBreaker/3b77330628e5f1786d0e63527e8b56cb to your computer and use it in GitHub Desktop.
Save RyanBreaker/3b77330628e5f1786d0e63527e8b56cb to your computer and use it in GitHub Desktop.
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