Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
Collapse
Just Flight Community Forum
  1. Home
  2. Just Flight
  3. MSFS Products
  4. Black Square Add-Ons
  5. TBM 850
  6. Add proper condition lever LVAR variables

Add proper condition lever LVAR variables

Scheduled Pinned Locked Moved TBM 850
5 Posts 4 Posters 429 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TheFly77
    wrote on last edited by
    #1

    I now added this code myself to control the condition lever with LVARs:

             <Component ID="LVAR_TO_BVAR">
    		<UseTemplate Name="ASOBO_GT_Update">
    			<UPDATE_CODE>
    				(L:TBM850_COND_LEVER_SET, number) s0 0 &gt; if{ l0 1 - (&gt;B:Fuel_1_Condition_Lever_Set) l0 (&gt;L:TBM850_COND_LEVER_VALUE) 0 (&gt;L:TBM850_COND_LEVER_SET) } 
    			</UPDATE_CODE>
    			<FREQUENCY>1</FREQUENCY>
    		</UseTemplate>
    	</Component>
    

    And then in Mobiflight events:
    TBM850_COND_LEVER_DEC# (L:TBM850_COND_LEVER_VALUE) ++ (>L:TBM850_COND_LEVER_SET)
    TBM850_COND_LEVER_INC# (L:TBM850_COND_LEVER_VALUE) -- (>L:TBM850_COND_LEVER_SET)

    This works perfectly, but it would be great if the LVARs could be incorporated by Blacksquare!

    F 1 Reply Last reply
    2
    • T TheFly77

      I now added this code myself to control the condition lever with LVARs:

               <Component ID="LVAR_TO_BVAR">
      		<UseTemplate Name="ASOBO_GT_Update">
      			<UPDATE_CODE>
      				(L:TBM850_COND_LEVER_SET, number) s0 0 &gt; if{ l0 1 - (&gt;B:Fuel_1_Condition_Lever_Set) l0 (&gt;L:TBM850_COND_LEVER_VALUE) 0 (&gt;L:TBM850_COND_LEVER_SET) } 
      			</UPDATE_CODE>
      			<FREQUENCY>1</FREQUENCY>
      		</UseTemplate>
      	</Component>
      

      And then in Mobiflight events:
      TBM850_COND_LEVER_DEC# (L:TBM850_COND_LEVER_VALUE) ++ (>L:TBM850_COND_LEVER_SET)
      TBM850_COND_LEVER_INC# (L:TBM850_COND_LEVER_VALUE) -- (>L:TBM850_COND_LEVER_SET)

      This works perfectly, but it would be great if the LVARs could be incorporated by Blacksquare!

      F Offline
      F Offline
      fabristunt
      wrote on last edited by
      #2

      @thefly77 Where should this be added? I use SPAD Next, but never messed with BVARs before.

      T 1 Reply Last reply
      0
      • F fabristunt

        @thefly77 Where should this be added? I use SPAD Next, but never messed with BVARs before.

        T Offline
        T Offline
        TheFly77
        wrote on last edited by
        #3

        @fabristunt I think with SPAD.next it can handle the Bvars itself. However, I added the code to the AnalogTBM.xml, at the end of the file, before the finishing </Behaviour> line

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Phil7789
          wrote on last edited by
          #4

          Spad.Next is currently not able to handle BVars, so with Spad.Next you cannot set the condition lever (without extra work like above)

          V 1 Reply Last reply
          0
          • P Phil7789

            Spad.Next is currently not able to handle BVars, so with Spad.Next you cannot set the condition lever (without extra work like above)

            V Offline
            V Offline
            Voice of Reason
            JF Staff
            wrote on last edited by
            #5

            A reply direct from the developer...

            I have added an L:Var for the condition lever in the next update, though using a slightly different technique. It will be "L:BKSQ_ConditionLever, number" (0-2).

            Hope that's of some help.

            1 Reply Last reply
            2
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users