Jump to content
The simFlight Network Forums

Gmoney88

new Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Gmoney88

  1. Thanks John, Ok, so I have one lua file placed in the FSUIPC directory named Q400.lua (containing the code I quoted in my first post. This handles the Majestic XML writing to one LVAR and reading return from another Lvar) The "reading result from another lvar", is that referring to Q400_YD_LIGHT ? Global variable, I think in translation I have taken to mean another Lvar eg Q400_YD_LIGHT I am using p3dv6 and from what I understand mobiflight only uses the WASM/sim connect module for FS2020 to be able to read Lvars in mobiflight. Either that or I can't get sim connect to work with mobiflight (get list of lvars doesnt work) So at this stage I am limited to using FSUIPC offsets for my outputs. Now to get the "Q400_YD_LIGHT into a free offset that I can read in mobiflight... I have another separete .lua in the FSUIPC directory named yd_on.lua containing this: function yd_on (var, value) ipc.writeUB ("66C0", value) end event.Lvar ("L:Q400_YD_LIGHT", 100, "yd_on", value) The idea being that then I should be able to read the 66C0 offset in mobiflight. 1) Do I also need to auto-run both lua files in the [Auto] section of fsuipc.ini? Hope I am on the right track here
  2. Hi guys, I am missing some pieces of the puzzle. Been searching and reading manuals for weeks going in circles. I am trying to read the YD and AP status using the XML interface with the code above so that I can light some autopilot LEDs through Mobiflight. I am using P3Dv6 and FSUIPC v6 The instrctions for the XML interface withy Q400 are very brief. 1) What directory the above code should be placed or what file extension it takes (.lua .xml etc) ? 2) Am I correct in understanding ipc.set ("Q400_YD_LIGHT" , readXMLIF ( 31461 ) syncs the q400 variable to a global varible? 3) How do I link that global variable to one of the free user offsets so that Mobilflight can read it? thanks Jason
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.