Hey all,
I built some LUA scripts for FSUIPC7 to allow you to push in a rotary encoder to sync the heading & altitude bug to your current heading and altitude.
My hardware is a simple Teensy connected to some rotary encoders. The push button on the encoder is tied to a joystick input.
Then in FSUIP7 I bind that joystick input to a LUA script.
Here are the scripts:
setALT.lua:
val2 = ipc.readUD(“3324”)/3.2808399
val2 = val2*65536
ipc.writeUD(“07D4”, val2)
setHDG.lua:
val = (ipc.readUD(“0580”)/65536) - ipc.readUW(“02A0”)
ipc.writeUW(“07cc”, val)
So simply create these files in the same directory that FSUIPC7 sits, restart FSUIPC7 and you will see those LUA scripts as bindable commands.
Let me know if you have any questions.