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.

Develop a Multigauge for airspeed

Featured Replies

Hi, I'm developing a Multigauge that shows indicated Speed and changes its background if it gets close to dangerous limits. It does not work and I don't know if the problem is at script level or at SD level.

My scripts are like this:

IAS_ABOVE_YELLOW
(A:AIRSPEED·INDICATED,·Knots)>=((A:AIRSPEED·BARBER·POLE,·Knots)*0.8)
IAS_ABOVE_RED
(A:AIRSPEED·INDICATED,·Knots)>=((A:AIRSPEED·BARBER·POLE,·Knots)*0.9)

They've been created in the Scripts Group. Now I've created the Multigauge in SD and assigned the image definitions and the visibility, please see attached screenshot. I do not know if the scripts are wrong or if the problem is the way I'm calling them from SD. Any help would be appreciated.

 

 

spacer.png

  • Commercial Member

That is not how this works...

First, the selected type is wrong (why are you using L:? S: is in the dropdown box)

Second, the scripts are syntactically incorrect. Notice the red warning light in the AAO Editor top right corner. RPN has postfix notation, not infix. Please refer to the RPN chapter in the MSFS SDK Documentation: Reverse Polish Notation (flightsimulator.com)

Third, to use your script for the visibility on the StreamDeck, you select S: in the type box and then copy the code directly into the box. That is what S: means, "execute the following script code and return a value".
(To execute a script that lives in AAO you would use "K:scriptgroup-scriptname", as it says in the AAO manual. But that is not applicable here, because it doesn't return a value.)

Type S:
Code: (A:AIRSPEED INDICATED, Knots) (A:AIRSPEED BARBER POLE, Knots) 0.8 * >=

Take care to set the correct amount of spaces, use postfix notation and don't use brackets or parenthesis just because you think that they have to be there. Flightsim RPN is a very "effective" language, it doesn't have any of the usual "readability structures". Every space, every bracket, every single character has meaning and must be absolutely spot on correct.  When in doubt, copy and paste your code in the editor, check that you get a green light, and use the Test button + Debug window to see what it does.

Be mindful that you cannot copy and paste RPN code directly from the white Editor box in AAO. You have to select & copy it from the grey box with the compiled code below that - which will also remove unwanted formatting, like the point that replace the spaces.

Edited by Lorby_SI

LORBY-SI

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.