- Messages
- 3
- Country

Hello everyone,
This is my first post on this forum although I have been an active reader for quite some time. I am working on building my own simpit and have gotten to the software stage. My goal is to use A2A's aircraft but since they use their own custom vars I am working on a simple Lua script to write the output of some of their variables to the Lvars that P3D uses (engine rpm, manifold pressure etc). I am using the Mindstar G1000 software and since they don't release their gauge code I cannot change the Lvars their software references.
My issue is that when I write the A2A output to a P3D lvar, the gauge on screen goes wild and erratic. See the snippet of code I am using below:
If anyone can shed some light on this issue it would be greatly appreciated!
This is my first post on this forum although I have been an active reader for quite some time. I am working on building my own simpit and have gotten to the software stage. My goal is to use A2A's aircraft but since they use their own custom vars I am working on a simple Lua script to write the output of some of their variables to the Lvars that P3D uses (engine rpm, manifold pressure etc). I am using the Mindstar G1000 software and since they don't release their gauge code I cannot change the Lvars their software references.
My issue is that when I write the A2A output to a P3D lvar, the gauge on screen goes wild and erratic. See the snippet of code I am using below:
Code:
while 1 do
-- Store A2A var output
a2a_man_press = ipc.readLvar("L:Eng1_ManifoldPressure")
-- Convert to usable units
a2a_man_press = a2a_man_press / 1024 -- Divide by 1024 inHg
-- Write to P3D Lvar
ipc.writeDBL(0x8C0, a2a_man_press) --The local offset 0x8C0 is the P3D Lvar for manifold pressure
ipc.sleep(100) -- Delay 100 ms
end
If anyone can shed some light on this issue it would be greatly appreciated!
Last edited:
