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. Steam Gauge Overhaul
  6. Black Air King Air 350- "PITCH TRIM AP/YD" и " AP ENG" events ?

Black Air King Air 350- "PITCH TRIM AP/YD" и " AP ENG" events ?

Scheduled Pinned Locked Moved Steam Gauge Overhaul
24 Posts 2 Posters 1.8k 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.
  • Black SquareB Black Square

    Easy! Just toggle (L:var_optionalAutopilotModePanel, bool). Enjoy! Glad this has all been working for you so well.

    S Offline
    S Offline
    SMN204
    wrote on last edited by SMN204
    #12

    @Black-Square said in Black Air King Air 350- "PITCH TRIM AP/YD" и " AP ENG" events ?:

    Easy! Just toggle (L:var_optionalAutopilotModePanel, bool)

    AP_Panel_View#(L:var_optionalAutopilotModePanel, bool)
    Hmmm... this code doesn't work :-(

    1 Reply Last reply
    0
    • Black SquareB Offline
      Black SquareB Offline
      Black Square
      Black Square Developer
      wrote on last edited by
      #13

      I'm not sure what the scripting looks like in FSUIPC, but if I were to give you RPN code to toggle the panel on and off the same way I did for the others, it would look like this:

      (L:var_optionalAutopilotModePanel, bool) ! (>L:var_optionalAutopilotModePanel, bool)
      
      S 1 Reply Last reply
      0
      • Black SquareB Black Square

        I'm not sure what the scripting looks like in FSUIPC, but if I were to give you RPN code to toggle the panel on and off the same way I did for the others, it would look like this:

        (L:var_optionalAutopilotModePanel, bool) ! (>L:var_optionalAutopilotModePanel, bool)
        
        S Offline
        S Offline
        SMN204
        wrote on last edited by
        #14

        @Black-Square said in Black Air King Air 350- "PITCH TRIM AP/YD" и " AP ENG" events ?:

        I'm not sure what the scripting looks like in FSUIPC, but if I were to give you RPN code to toggle the panel on and off the same way I did for the others, it would look like this:

        (L:var_optionalAutopilotModePanel, bool) ! (>L:var_optionalAutopilotModePanel, bool)

        Wow, it works!
        I guess FSUIPC requires RPN codes.

        1 Reply Last reply
        0
        • Black SquareB Offline
          Black SquareB Offline
          Black Square
          Black Square Developer
          wrote on last edited by
          #15

          Actually, if I take a guess at what you might have been trying to do with FSUIPC above, you might be able to get your code to work with the addition of one character, if it was useful to you.

          AP_Panel_View#(>L:var_optionalAutopilotModePanel, bool)
          

          The ">" means that you would like to write the preceding value to the L:Var, not simply read it.

          S 1 Reply Last reply
          0
          • Black SquareB Black Square

            Actually, if I take a guess at what you might have been trying to do with FSUIPC above, you might be able to get your code to work with the addition of one character, if it was useful to you.

            AP_Panel_View#(>L:var_optionalAutopilotModePanel, bool)
            

            The ">" means that you would like to write the preceding value to the L:Var, not simply read it.

            S Offline
            S Offline
            SMN204
            wrote on last edited by SMN204
            #16

            @Black-Square said in Black Air King Air 350- "PITCH TRIM AP/YD" и " AP ENG" events ?:

            The ">" means that you would like to write the preceding value to the L:Var, not simply read it.

            Checked
            (>L:var_optionalAutopilotModePanel, bool)

            This code only switches the view from:
            10b80b28-db91-4fc7-8bfe-a08e83e5db99-изображение.png

            to this:
            111601c2-998d-4525-bc19-167eccb2b9fa-изображение.png

            It doesn't switch back!

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SMN204
              wrote on last edited by SMN204
              #17

              RPN for

              • BLEED AIR VALVEs (OPEN, ENVIR OFF, INSTR & ENVIR OFF

              Please!

              BLEED AIR.png

              Thanks!

              1 Reply Last reply
              0
              • Black SquareB Offline
                Black SquareB Offline
                Black Square
                Black Square Developer
                wrote on last edited by
                #18

                I have simplified this one already in the next version of the King Air that has yet to be released, but to be safe, here is the full code:

                OPEN:
                (A:CIRCUIT ON:78, bool) if{ 1 1 (>K:2:ENGINE_BLEED_AIR_SOURCE_SET) 0 (>L:var_environmentalBleedDisabled_L, bool) } 0 (>L:var_bleedState_L, number)
                
                ENVIR OFF:
                (A:CIRCUIT ON:78, bool) if{ 1 1 (>K:2:ENGINE_BLEED_AIR_SOURCE_SET) 1 (>L:var_environmentalBleedDisabled_L, bool) } 1 (>L:var_bleedState_L, number)
                
                ALL OFF:
                (A:CIRCUIT ON:78, bool) if{ 0 1 (>K:2:ENGINE_BLEED_AIR_SOURCE_SET) 1 (>L:var_environmentalBleedDisabled_L, bool) } 2 (>L:var_bleedState_L, number)
                

                Just replace the "_L" with "_R" for the right-hand engine.

                S 2 Replies Last reply
                0
                • Black SquareB Black Square

                  I have simplified this one already in the next version of the King Air that has yet to be released, but to be safe, here is the full code:

                  OPEN:
                  (A:CIRCUIT ON:78, bool) if{ 1 1 (>K:2:ENGINE_BLEED_AIR_SOURCE_SET) 0 (>L:var_environmentalBleedDisabled_L, bool) } 0 (>L:var_bleedState_L, number)
                  
                  ENVIR OFF:
                  (A:CIRCUIT ON:78, bool) if{ 1 1 (>K:2:ENGINE_BLEED_AIR_SOURCE_SET) 1 (>L:var_environmentalBleedDisabled_L, bool) } 1 (>L:var_bleedState_L, number)
                  
                  ALL OFF:
                  (A:CIRCUIT ON:78, bool) if{ 0 1 (>K:2:ENGINE_BLEED_AIR_SOURCE_SET) 1 (>L:var_environmentalBleedDisabled_L, bool) } 2 (>L:var_bleedState_L, number)
                  

                  Just replace the "_L" with "_R" for the right-hand engine.

                  S Offline
                  S Offline
                  SMN204
                  wrote on last edited by
                  #19

                  @Black-Square said in Black Air King Air 350- "PITCH TRIM AP/YD" и " AP ENG" events ?:

                  here is the full code

                  Thumb Up 50x60.png

                  1 Reply Last reply
                  0
                  • Black SquareB Black Square

                    I have simplified this one already in the next version of the King Air that has yet to be released, but to be safe, here is the full code:

                    OPEN:
                    (A:CIRCUIT ON:78, bool) if{ 1 1 (>K:2:ENGINE_BLEED_AIR_SOURCE_SET) 0 (>L:var_environmentalBleedDisabled_L, bool) } 0 (>L:var_bleedState_L, number)
                    
                    ENVIR OFF:
                    (A:CIRCUIT ON:78, bool) if{ 1 1 (>K:2:ENGINE_BLEED_AIR_SOURCE_SET) 1 (>L:var_environmentalBleedDisabled_L, bool) } 1 (>L:var_bleedState_L, number)
                    
                    ALL OFF:
                    (A:CIRCUIT ON:78, bool) if{ 0 1 (>K:2:ENGINE_BLEED_AIR_SOURCE_SET) 1 (>L:var_environmentalBleedDisabled_L, bool) } 2 (>L:var_bleedState_L, number)
                    

                    Just replace the "_L" with "_R" for the right-hand engine.

                    S Offline
                    S Offline
                    SMN204
                    wrote on last edited by SMN204
                    #20

                    @Black-Square said in Black Air King Air 350- "PITCH TRIM AP/YD" и " AP ENG" events ?:

                    Just replace the "_L" with "_R" for the right-hand engine.

                    Correction after testing...
                    The left one is fine, but the right one.... problem!

                    For the right-hand engine I replace the "_L" with "_R" (as you wrote):

                    OPEN:

                    (A:CIRCUIT ON:78, bool) if{ 1 1 (>K:2:ENGINE_BLEED_AIR_SOURCE_SET) 0 (>L:var_environmentalBleedDisabled_R, bool) } 0 (>L:var_bleedState_R, number)
                    

                    When controlling the mouse - switch animation and indication "R BL AIR OFF" everything is normal.
                    But when controlling from the assigned RPN code - the switch animation works visually normally, but the "R BL AIR OFF" display does not go out!

                    Video:
                    https://youtu.be/lgZ4bfgMBck

                    1 Reply Last reply
                    0
                    • Black SquareB Offline
                      Black SquareB Offline
                      Black Square
                      Black Square Developer
                      wrote on last edited by Black Square
                      #21

                      I'm sorry. That's my fault. You also need to change the last number before the "(>K:2:..."

                      For the right engine, the three lines should contain...

                      if{ 0 2 (>K:...
                      if{ 1 2 (>K:...
                      if{ 1 2 (>K:...
                      

                      I hope that makes sense! Let me know.

                      S 1 Reply Last reply
                      0
                      • Black SquareB Black Square

                        I'm sorry. That's my fault. You also need to change the last number before the "(>K:2:..."

                        For the right engine, the three lines should contain...

                        if{ 0 2 (>K:...
                        if{ 1 2 (>K:...
                        if{ 1 2 (>K:...
                        

                        I hope that makes sense! Let me know.

                        S Offline
                        S Offline
                        SMN204
                        wrote on last edited by
                        #22

                        @Black-Square said in Black Air King Air 350- "PITCH TRIM AP/YD" и " AP ENG" events ?:

                        Let me know.

                        Everything's fine now!

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SMN204
                          wrote on last edited by
                          #23

                          RPN code for CONDITION LEVERS, please!

                          • HIGH IDLE
                          • LOW IDLE

                          Thanks!

                          1 Reply Last reply
                          0
                          • Black SquareB Offline
                            Black SquareB Offline
                            Black Square
                            Black Square Developer
                            wrote on last edited by
                            #24

                            In the King Air, the condition levers use the native bindings, so any of the following should work:

                            >K:AXIS_CONDITION_LEVER_1_SET
                            >K:CONDITION_LEVER_1_SET
                            >K:CONDITION_LEVER_1_INC
                            >K:CONDITION_LEVER_1_DEC
                            
                            1 Reply Last reply
                            0
                            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