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. 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 154 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 Offline
    hangar_101H Offline
    hangar_101
    wrote 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 Offline
      J Offline
      jmarkows
      wrote 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 Offline
        hangar_101H Offline
        hangar_101
        wrote last edited by
        #3

        @jmarkows the L:var_WindShieldDeiceSwitch_IsDown is not available

        Hangar 101

        1 Reply Last reply
        0
        • hangar_101H Offline
          hangar_101H Offline
          hangar_101
          wrote 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 Offline
            Black SquareB Offline
            Black Square
            Black Square Developer
            wrote 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 Offline
              hangar_101H Offline
              hangar_101
              wrote 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 Offline
                Black SquareB Offline
                Black Square
                Black Square Developer
                wrote 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 Offline
                  hangar_101H Offline
                  hangar_101
                  wrote last edited by
                  #8

                  @Black-Square got it! Thanks!

                  Hangar 101

                  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