I'm trying to setup my miniFCU unit with the Majestic Q400 on FSX + FSUIPC 4.977.
In order to communicate with the autopilot commands I've written small lua scripts and assigned them using MobiFlight. When I rotate any of the encoders, it sends many Lua scripts calls at once and Flight Simulator freezes a bit while processing the commands. It works ok if the encoder is turned slowly one notch at a time. But if turned quickly, likely only a single command is registered. Any thoughts on how I can improve the performance?
Here is an example of the code used to change the pitch bug.
ipc.writeLvar("MJC_VAR_WRITE_VALUE", ipcPARAM)
ipc.writeLvar("MJC_VAR_WRITE_CODE", 46987)