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.

script RPN NOK

Featured Replies

Good morning
translated by Google
could you tell me why function scripts under mobiflight and under AAO
I have two example unlock door
and this one

Capture-d-cran-2023-02-16-172053.png


THANKS

  • Commercial Member

Please take a look at the AAO manual, chapter "Scripting", section about "Local variables". 

The AAO RPN dialect is not simply a replica of the SDK default and it cannot be compared to/using in other apps. RPN has been expanded substantially. It has slightly different rules and a lot more operators and commands.

If you want to read/write LVars to/from the simulator, you MUST supply the "Unit" in AAO. Otherwise the LVars are processed only internally.
(L:whatever, Number)

Another option is to send your code to the sim for processing instead, by writing (SIMPROC) at the beginning of the script.


 

Edited by Lorby_SI

LORBY-SI

  • Author

I try to understand

I have the section as you suggested

I have the first two variables 1 (>L:LIGHTING_STROBE_0)
1 (>L:STROBE_0_Auto) 1 0 r (>K:2:STROBES_SET)

but not this one (>K:2:STROBES_SET)

can you put me on the right track

  • Commercial Member

Sorry but I have no idea what that script is supposed to do, and the syntax is very weird (and it is still wrong for AAO, as explained above, the LVars MUST have a Unit). I cannot correct it, I can only guess....
(Plus, why one would need to reverse the stack with "r" for static values is beyond me. Waste of processor cycles. Just flip the values if you want them the other way round?)

1·(>L:LIGHTING_STROBE_0,·Number)·1·(>L:STROBE_0_Auto,·Number)·0·1·(>K:2:STROBES_SET)

or maybe simply use

1·(>L:LIGHTING_STROBE_0,·Number)·1·(>L:STROBE_0_Auto,·Number)·1·(>K:STROBES_SET)

 

Edited by Lorby_SI

LORBY-SI

  • Author

I would like to switch the strobes to auto, and not to on in the a320 flybywire

  • Commercial Member
7 minutes ago, ptimale said:

I would like to switch the strobes to auto, and not to on in the a320 flybywire

Sorry, no idea how that is done. But if a switch has 3 positions, the values that you send to it are usually 0, 1 or 2. Your example above uses "1", apparently.

Take a look on flightsim.to and check if there is a profile for the FBW made for AxisAndOhs. Even if it has been made for the StreamDeck, there is usually a script package there that you can import into AAO. These packages usually contain all that you need.
If you find something suitable, keep on checking that site for updates too. The FBW is constantly evolving, and these control mechanisms can change with every update.

Edited by Lorby_SI

LORBY-SI

  • Author

I learn so necessarily I do whatever

the answer was in your first post

in an lvar you have to add the unit as you told me
just add number
  to solve the problem :

1 (>L:LIGHTING_STROBE_0, Number) 1 (>L:STROBE_0_Auto, Number) 1 (>K:STROBES_SET)

but your suggested script is simpler and it works

Thanks for your help

Archived

This topic is now archived and is closed to further replies.

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.