Jump to content

Brunius

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Brunius

  1. This is a possible way to do it, but has a couple of problems. 1. It bloats the Arduino code. This can cause a problem with smaller-memory boards, and even on larger memory boards if there's a lot of libraries loaded. 2. It requires uploading new code to the Arduino every time you add a module. Since it's plugged in anyway, this isn't such a big problem, but could be a problem if you've got several boards plugged in. It's absolutely possible to do it that way - but it's bad practice to hard-code it when you can have that translation layer and treat the aircraft as polymorphic entities.
  2. 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?
×
×
  • Create New...