Hi Ian, All,
I have write a function for bcd wheel to send value to the mirage 2000 autopilot altitude selector.
function BIOS.util.defineBcdWheel(msg, device_id, arg_number, output_map, category, description)
local bcdWheelState = moduleBeingDefined.memoryMap:allocateInt{ maxValue = 1 }
moduleBeingDefined.exportHooks[#moduleBeingDefined.exportHooks+1] = function(dev0)
bcdWheelState:setValue(dev0:get_argument_value(arg_number))
end
moduleBeingDefined.inputProcessors[msg] = function(value)
GetDevice(device_id):set_argument_value(arg_number, value)
end
end
it's working very weel, so i'm not able to add code to document function...
it's not needed to work, but i like to do the thing to the end.
i have try to understand the steps basing on the defineTumb function, but it's very hard for me...
can you help me ?
thx !!