Hello everone, i am stuck at a point where i am unable to program my MCP, due to limited knowledge in coding and deciphering the 757/767 SDK.
CS-767 & 757 - FSX - FSUIPC - Mobiflight
At present, i have used the Lvar for the MCP airspeed written it to a free offset and displaying it on the 7-segment successfully, below is the code that i used.
-----------------------------------------------------
while true do
n=ipc.readLvar("L:MCP_IAS_Disp")
ipc.writeUD(0x66C8,n)
ipc.sleep(100)
end
------------------------------------------------------------
To increase or decrease the airspeed value - i followed the instructions from the SDK
I created a lua file - CS757SPEEDDEC.LUA
ipc.writeLvar(“L:klid",-1703010)
and another - CS757SPEEDINC.LUA
ipc.writeLvar(“L:klid", 1703010)
These lua files now show up in my FSUIPC list.
Now the next step is to add an entry to auto-run the lua, i have made that entry too.
[Auto]
1=Lua CS757SPEEDINC
2=Lua CS757SPEEDDEC
Now in the macro file, what is the entry that i have to have ?
i tried different entry but none seem to work.
Could anyone please share some script that has worked ? or the steps, assigning the ID to a variable has got me stuck for weeks now, been searching for the forms but unable to find any definite answer.