Hi there!
I wanted to create a lua file for writing values from Airbus X Extended in the free Offsets 66C0-66FF, for further output to my "Arcaze Board" via "Arcaze FSUIPC Connector". I tried, but failed :(
a = 0
while a < 255 do
b = 0
c = 0
d = 0
e = 0
--IAS
b = ipc.readLvar("L:AB_AP_Speed_Select")
--HDG
c = ipc.readLvar("L:AB_AP_HDG_Select")
--ALT
d = ipc.readLvar("L:AB_AP_ALT_Select")
--VS
e = ipc.readLvar("L:AB_AP_VS_Select2")
--Writing Speed
ipc.writeUB(0x66C0,b)
--Writing Heading
ipc.writeUB(0x66C1,c)
--Writing Altitude
ipc.writeUB(0x66C2,d)
--Writing Vertical Speed
ipc.writeUB(0x66C3,e)
ipc.sleep(800)
end
The code should write the values of Speed, Heading, Altitude, VS in the Offsets. I put the Script in the Modules Folder of FSX. Any ideas why it down't work?
Thanks,
Philipp
PS: Sorry for my english