Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Convert L:var from a A var

Featured Replies

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:

spacer.png

This is presented when the Relay is pulled:

spacer.png

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

 

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 by ark

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.