September 22, 20241 yr Hello I'm using the analog KingAir on MSFS2020, and I'd like to make my own Circuit Breakers panel. The FSUIPC7 handles a few, and the analog KingAir itself only has a single L:var variable that controls Avonics. My project is to be able to control all circuit breakers starting with the Langin Gear Relay. (This information was taken from Devmode - Tools - Behaviors) This is presented when the Relay is pushed: This is presented when the Relay is pulled: What I want is to convert this information into a variable (L:Landig_Gear_Relay). If I use a switch on my joystick, I can also control the Relay, either for pushed or pulled. I'm programming in Lua or I can use Mobiflight. Any help you can provide would be greatly appreciated. Thank you
September 22, 20241 yr 3 hours ago, AlejandroGomezB said: I'm programming in Lua or I can use Mobiflight. Suggest you post on the FSUIPC7 sub forum, but note you can use the FSUIPC Lua construct ipc.execCalcCode(“code”) to write the value of an Avar into an Lvar that you define. Something like: ipc.execCalcCode(" (A:variable1, number) (>L:MyVariable1, number) "). I think the ipc.execCalcCode(“code”) construct will create the Lvar, but if not you can precede the above with the ipc.createLvar(“name”,initialValue) construct. Another approach might be to define your own Preset (or Presets) which would then go in the FSUIPC7 myevents.txt file. Best to ask about all this on the FSUIPC7 forum. John Dowson there is very helpful. https://forum.simflight.com/forum/183-fsuipc7-msfs/ Al Edited September 23, 20241 yr by ark
Create an account or sign in to comment