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.

AAO with StreamDeck: Inc and Dec Barometer

Featured Replies

Hi there,

I got a new StreamDeck and therefore using AAO to use it with the MSFS. I downloaded a nice Profile for the FBW A320 and cusomized it myself.

Now I want to add two buttons to decrease and increase the baro pressure, but can't find any LVar working for me. What I found is this following piece of code from FBW github whitch looks promising but I am to new to the topic to evaluate it adequately.

Can someone of you help me?

Best regards

sschw

<ModelBehaviors>
    <Template Name="FBW_Airbus_FCU_Baro_Knob">
        <DefaultTemplateParameters>
            <ID>1</ID>
            <ANIMREF_ID>-1</ANIMREF_ID>
            <ANIMTIP_0>TT:COCKPIT.TOOLTIPS.AUTOPILOT_PANEL_BARO_KNOB_INCREASE</ANIMTIP_0>
            <ANIMTIP_0_ON_CURSOR>TurnRight</ANIMTIP_0_ON_CURSOR>
            <ANIMTIP_1>TT:COCKPIT.TOOLTIPS.AUTOPILOT_PANEL_BARO_KNOB_DECREASE</ANIMTIP_1>
            <ANIMTIP_1_ON_CURSOR>TurnLeft</ANIMTIP_1_ON_CURSOR>
            <ANIMTIP_2>TT:COCKPIT.TOOLTIPS.BARO_REF_SET_STD</ANIMTIP_2>
            <ANIMTIP_2_ON_CURSOR>DownArrow</ANIMTIP_2_ON_CURSOR>
            <ANIMTIP_3>TT:COCKPIT.TOOLTIPS.BARO_ENABLE_SELECTION</ANIMTIP_3>
            <ANIMTIP_3_ON_CURSOR>UpArrow</ANIMTIP_3_ON_CURSOR>
            <ANIMTIP_4>TT:COCKPIT.TOOLTIPS.BARO_REF_SET_STD</ANIMTIP_4>
            <ANIMTIP_4_ON_CURSOR>Hand</ANIMTIP_4_ON_CURSOR>
        </DefaultTemplateParameters>

        <UseTemplate Name="ASOBO_GT_Helper_Suffix_ID_Appender">
            <TEMPLATE_TO_CALL>FBW_Airbus_FCU_Baro_Knob_SubTemplate</TEMPLATE_TO_CALL>
        </UseTemplate>
    </Template>

    <Template Name="FBW_Airbus_FCU_Baro_Knob_SubTemplate">
        <DefaultTemplateParameters>
            <ANIM_NAME>AUTOPILOT_Knob_Baro_#ID##SUFFIX_ID#</ANIM_NAME>
            <ANIM_NAME_KNOB>#ANIM_NAME#</ANIM_NAME_KNOB>
            <ANIM_NAME_PUSH>AUTOPILOT_Knob_Baro_#ID#_push#SUFFIX_ID#</ANIM_NAME_PUSH>
            <ANIM_NAME_PUSHPULL>AUTOPILOT_Knob_Baro_#ID#_pushpull#SUFFIX_ID#</ANIM_NAME_PUSHPULL>
            <ANIMREF_ID>-1</ANIMREF_ID>
            <ANIMTIP_0>TT:COCKPIT.TOOLTIPS.AUTOPILOT_PANEL_BARO_KNOB_INCREASE</ANIMTIP_0>
            <ANIMTIP_0_ON_CURSOR>TurnRight</ANIMTIP_0_ON_CURSOR>
            <ANIMTIP_1>TT:COCKPIT.TOOLTIPS.AUTOPILOT_PANEL_BARO_KNOB_DECREASE</ANIMTIP_1>
            <ANIMTIP_1_ON_CURSOR>TurnLeft</ANIMTIP_1_ON_CURSOR>
            <BARO_ID>#ID#</BARO_ID>
            <MODE_BARO>0</MODE_BARO>
            <MODE_QNH>1</MODE_QNH>
            <MODE_STD_BARO>2</MODE_STD_BARO>
            <MODE_STD_QNH>3</MODE_STD_QNH>
            <NODE_ID>AUTOPILOT_Knob_Baro_#ID##SUFFIX_ID#</NODE_ID>
            <PART_ID>AUTOPILOT_Knob_Baro</PART_ID>
        </DefaultTemplateParameters>

        <Component ID="#NODE_ID#" Node="#NODE_ID#">
            <UseTemplate Name="ASOBO_GT_Knob_Infinite_PushPull">
                <ANTICLOCKWISE_CODE>
                    (L:XMLVAR_Baro#BARO_ID#_Mode) #MODE_STD_BARO# != (L:XMLVAR_Baro#BARO_ID#_Mode) #MODE_STD_QNH# != and if{
                        (L:XMLVAR_Baro_Selector_HPA_#BARO_ID#) if{
                            #BARO_ID# (A:KOHLSMAN SETTING MB:1, mbars) -- 16 * (&gt;K:2:KOHLSMAN_SET)
                        } els{
                            #BARO_ID# (&gt;K:KOHLSMAN_DEC)
                        }
                    }
                </ANTICLOCKWISE_CODE>

                <CLOCKWISE_CODE>
                    (L:XMLVAR_Baro#BARO_ID#_Mode) #MODE_STD_BARO# != (L:XMLVAR_Baro#BARO_ID#_Mode) #MODE_STD_QNH# != and if{
                        (L:XMLVAR_Baro_Selector_HPA_#BARO_ID#) if{
                            #BARO_ID# (A:KOHLSMAN SETTING MB:1, mbars) ++ 16 * (&gt;K:2:KOHLSMAN_SET)
                        } els{
                            #BARO_ID# (&gt;K:KOHLSMAN_INC)
                        }
                    }
                </CLOCKWISE_CODE>

                <PULL_CODE>
                    (L:XMLVAR_Baro#BARO_ID#_Mode) #MODE_BARO# == if{
                        #MODE_STD_BARO# (&gt;L:XMLVAR_Baro#BARO_ID#_Mode)
                    } els{
                        (L:XMLVAR_Baro#BARO_ID#_Mode) #MODE_QNH# == if{
                            #MODE_STD_QNH# (&gt;L:XMLVAR_Baro#BARO_ID#_Mode)
                        }
                    }
                </PULL_CODE>
                <PUSH_CODE>
                    (L:XMLVAR_Baro#BARO_ID#_Mode) #MODE_STD_BARO# == if{
                        #MODE_BARO# (&gt;L:XMLVAR_Baro#BARO_ID#_Mode)
                    } els{
                        (L:XMLVAR_Baro#BARO_ID#_Mode) #MODE_STD_QNH# == if{
                            #MODE_QNH# (&gt;L:XMLVAR_Baro#BARO_ID#_Mode)
                        } els{
                            (L:XMLVAR_Baro#BARO_ID#_Mode) ! (&gt;L:XMLVAR_Baro#BARO_ID#_Mode)
                        }
                    }
                </PUSH_CODE>

                <CENTER_RADIUS>0</CENTER_RADIUS>
                <COUNT>36</COUNT>
                <OVERRIDE_PUSH_ANIM_CODE>
                    0 100
                        (L:XMLVAR_Baro#BARO_ID#_Mode) #MODE_STD_BARO# ==
                        (L:XMLVAR_Baro#BARO_ID#_Mode) #MODE_STD_QNH# == or ?
                    50
                        (O:_PushAnimVar) ?
                </OVERRIDE_PUSH_ANIM_CODE>
                <WWISE_EVENT>QNHknob</WWISE_EVENT>
                <WWISE_EVENT_1>QNHknob</WWISE_EVENT_1>
                <WWISE_EVENT_2>QNHknob</WWISE_EVENT_2>
            </UseTemplate>
            <!--Disables FCU baro knob emissive-->
            <UseTemplate Name="ASOBO_GT_Emissive_Gauge">
            </UseTemplate>
        </Component>
    </Template>

 

  • Author

Oh word not allowed.. I noticed it is the wrong sub forum. Can the mod be so kind to move it to the payware area of Lorbys? Thanks (and sorry!)!

  • Commercial Member
28 minutes ago, sschw said:

Can someone of you help me?

You will have to replicate the CLOCKWISE and ANITCLOCKWISE code as RPN scripts in AAO and trigger those with your button(s).

The #..# have to be replaced with the actual values, which in this case is easy, because you find them as XML tags right above the code. Example #MODE_STD_BARO# resolves to the value of <MODE_STD_BARO>, which is "2"

So the RPN scripts would probably look like this for baro 1:

(L:XMLVAR_Baro1_Mode) 2 != (L:XMLVAR_Baro1_Mode) 3 != and if{ (L:XMLVAR_Baro_Selector_HPA_1) if{ 1 (A:KOHLSMAN SETTING MB:1, mbars) ++ 16 * (>K:2:KOHLSMAN_SET) } els{ 1 (>K:KOHLSMAN_INC) } }

(L:XMLVAR_Baro1_Mode) 2 != (L:XMLVAR_Baro1_Mode) 3 != and if{ (L:XMLVAR_Baro_Selector_HPA_1) if{ 1 (A:KOHLSMAN SETTING MB:1, mbars) -- 16 * (>K:2:KOHLSMAN_SET) } els{ 1 (>K:KOHLSMAN_DEC) } }

 

Edited by Lorby_SI

LORBY-SI

  • Author

Wow thank you so much! Perfect.

I think the logic of the FSX RPN is not THAT intuitive to learn, but the things you can do with it are great! Thanks a lot!

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.