Hi, I'm trying to remap A-10C sim outputs to F/A18C Panel displays. I have the following lua loaded to do so:
local function remapOutputInteger(a, b)
hub.setPanelInteger(b, hub.getSimInteger(a))
end
hub.registerOutputCallback(function()
local aircraftName = getSimString("MetadataStart/_ACFT_NAME")
if aircraftName == "A-10C" then
remapOutputInteger("A-10C/FLAPS_SWITCH", "FA-18C_hornet/FLAP_SW")
remapOutputInteger("A-10C/GEAR_LEVER", "FA-18C_hornet/GEAR_LEVER")
remapOutputInteger("A-10C/MASTER_CAUTION", "FA-18C_hornet/MASTER_CAUTION_LT")
end
end)
However, it does not seem to work. Are you able to provide any assistance here?