Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
Collapse
Just Flight Community Forum
  1. Home
  2. Just Flight
  3. MSFS Products
  4. Black Square Add-Ons
  5. Caravan Professional
  6. Hardware Binding Issue: Windshield Deice Switch Reverts from Manual to Off

Hardware Binding Issue: Windshield Deice Switch Reverts from Manual to Off

Scheduled Pinned Locked Moved Caravan Professional
8 Posts 3 Posters 640 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.
  • hangar_101H
    hangar_101H
    hangar_101
    wrote on last edited by
    #1

    The windshield switch has three positions (0 = Auto, 1 = Off, 2 = Manual). In the Manual position, you must hold the switch when using the mouse. I tried assigning the value 2 to L:var_WindShieldDeiceSwitch, but the switch immediately returns to the Off position. How can I make it stay in the Manual position while holding my hardware switch down?

    Hangar 101

    1 Reply Last reply
    0
    • J
      J
      jmarkows
      wrote on last edited by
      #2

      Try adding _IsDown to the Lvar name and see if that does the trick.

      hangar_101H 1 Reply Last reply
      0
      • J jmarkows

        Try adding _IsDown to the Lvar name and see if that does the trick.

        hangar_101H
        hangar_101H
        hangar_101
        wrote on last edited by
        #3

        @jmarkows the L:var_WindShieldDeiceSwitch_IsDown is not available

        Hangar 101

        1 Reply Last reply
        0
        • hangar_101H
          hangar_101H
          hangar_101
          wrote on last edited by
          #4

          @Black-Square is there any chance of adding the L:var_WindShieldDeiceSwitch_IsDown in the next update?

          Hangar 101

          Black SquareB 1 Reply Last reply
          0
          • hangar_101H hangar_101

            @Black-Square is there any chance of adding the L:var_WindShieldDeiceSwitch_IsDown in the next update?

            Black SquareB
            Black SquareB
            Black Square
            Black Square Developer
            wrote on last edited by
            #5

            @hangar_101 It's not really something I can add, unfortunately. This is the same problem as several of my aircraft where Asobo did not really anticipate an L:Var friendly way to interact with spring return switches. I think I added an override to some similar switches in Starship. If you wanted to make a quick modification for yourself, you could add the following in the appropriate Caravan "_INT" behaviors XML:

            Find...

            (L:var_WindshieldDeiceSwitch, bool) 1 != (>A:CIRCUIT SWITCH ON:23, bool)
            

            Replace...

            (L:var_WindshieldDeiceSwitch, bool) 1 != (L:var_WindshieldDeiceSwitchOverride, bool) or (>A:CIRCUIT SWITCH ON:23, bool)
            

            It's possible to animate the switch with this variable too, which I think is what I did for Starship. That's a little harder to do without testing first, but I will see about adding it to the next update, and I can post the code here for you too in the meantime.

            hangar_101H 1 Reply Last reply
            0
            • Black SquareB Black Square

              @hangar_101 It's not really something I can add, unfortunately. This is the same problem as several of my aircraft where Asobo did not really anticipate an L:Var friendly way to interact with spring return switches. I think I added an override to some similar switches in Starship. If you wanted to make a quick modification for yourself, you could add the following in the appropriate Caravan "_INT" behaviors XML:

              Find...

              (L:var_WindshieldDeiceSwitch, bool) 1 != (>A:CIRCUIT SWITCH ON:23, bool)
              

              Replace...

              (L:var_WindshieldDeiceSwitch, bool) 1 != (L:var_WindshieldDeiceSwitchOverride, bool) or (>A:CIRCUIT SWITCH ON:23, bool)
              

              It's possible to animate the switch with this variable too, which I think is what I did for Starship. That's a little harder to do without testing first, but I will see about adding it to the next update, and I can post the code here for you too in the meantime.

              hangar_101H
              hangar_101H
              hangar_101
              wrote on last edited by
              #6

              @Black-Square I tried the code change, but the switch keeps moving up and down. I might be missing something.

              Hangar 101

              Black SquareB 1 Reply Last reply
              0
              • hangar_101H hangar_101

                @Black-Square I tried the code change, but the switch keeps moving up and down. I might be missing something.

                Black SquareB
                Black SquareB
                Black Square
                Black Square Developer
                wrote on last edited by
                #7

                @hangar_101 Are you using the new L:var_WindshieldDeiceSwitchOverride? That will activate the windshield heat, but it won't actuate the switch. I wrote the code to do that earlier, but I haven't tested it yet.

                hangar_101H 1 Reply Last reply
                0
                • Black SquareB Black Square

                  @hangar_101 Are you using the new L:var_WindshieldDeiceSwitchOverride? That will activate the windshield heat, but it won't actuate the switch. I wrote the code to do that earlier, but I haven't tested it yet.

                  hangar_101H
                  hangar_101H
                  hangar_101
                  wrote on last edited by
                  #8

                  @Black-Square got it! Thanks!

                  Hangar 101

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  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