I am trying to expand my current hardware panel setup so I can use it with P3D as well as X-Plane. It works fine in X-Plane but by god it's hard to work with P3D!
I've set up a test instrument like this:
Code: Select all
--fsx_event("TAXI_LIGHTS_ON")
--fsx_event("TAXI_LIGHTS_SET", 1)
function test_callback(value)
print(value)
end
fsx_variable_subscribe("LIGHT ON STATES", "MASK", test_callback)
Bit mask:
0x0001: Nav
0x0002: Beacon
0x0004: Landing
0x0008: Taxi
0x0010: Strobe
0x0020: Panel
0x0040: Recognition
0x0080: Wing
0x0100: Logo
0x0200: Cabin
So if i trun on the Landing Lights it returns a '4', if i add the beacon it returns a '6'.
But the Events have no effect. if i rem-out everything else and just start the instrument with the following slingle line, i would expect the taxi lights to come on. But they dont! I realise there's no trigger here other than running the instrument- but i should at least get a one-shot event?
Code: Select all
fsx_event("TAXI_LIGHTS_ON")
Cheers,
Roger.