Help with assignment of yoke switch for landing lights [answered]
-
- Posts: 83
- Joined: Sat Jan 19, 2013 4:08 pm
Help with assignment of yoke switch for landing lights [answered]
I have replaced my aged and well used Saitek Pro Cessna yoke with a Honeycomb yoke. I am a registered and paid FSUIPC user and FSX is still my most oft used sim. I am able to define all of the available Honeycomb switches to the Redux with exception of the Landing Lights. I would appreciate some guidance on defining either FSX based or FSUIPC based assignment for the two-stage landing lights switch in the Redux.
-
- Posts: 1023
- Joined: Mon Sep 06, 2010 3:47 pm
Re: Help with assignment of yoke switch for landing lights
I can provide the mouse code that is used. That should provide enough information to accomplish your goal I hope.
The "physical 3d switch" is controlled by the custom variable (L:SwitchLL,enum). This variable switches as follows:
Code: Select all
<CallbackCode>
(M:Event) 'RightSingle' scmp 0 ==
if{ (L:SwitchLL, enum) -- 0 max (>L:SwitchLL, enum) }
(M:Event) 'LeftSingle' scmp 0 ==
if{ (L:SwitchLL, enum) ++ 2 min (>L:SwitchLL, enum) }
(L:SwitchLL,enum) 2 == if{ (>K:LANDING_LIGHTS_ON) }
(L:SwitchLL,enum) 2 != if{ (>K:LANDING_LIGHTS_OFF) }
</CallbackCode>
- 0 = LL OFF
- 1 = LL EXTEND
- 2 = LL ON
-
- Posts: 83
- Joined: Sat Jan 19, 2013 4:08 pm
Re: Help with assignment of yoke switch for landing lights
Bill. As always, thank you for the timely reply. Alas, I have no idea how to use those codes. Would you enlighten me? Looks like xml code and I am not a programmer....
-
- Posts: 83
- Joined: Sat Jan 19, 2013 4:08 pm
Re: Help with assignment of yoke switch for landing lights
Bill, I note this morning that I posted in the 310 forum. My question is actually about the 310 Redux and I expect that may make a difference. Sorry for posting in the wrong area.. Frank
-
- Posts: 1023
- Joined: Mon Sep 06, 2010 3:47 pm
Re: Help with assignment of yoke switch for landing lights
Since what I posted came from the C310R Redux scripts, it makes no real difference in the end. Both the original release and the Redux used the same scripts.
All that is important are the command names, the rest is just noise as far as this issue is concerned.
On a Honeycomb switch, you would have to have FSUIPC set (L:SwitchLL,enum) to a value of 3, and issue the stock command (>K:LANDING_LIGHTS_ON) when the Honeycomb switch is ON...
...and set (L:SwitchLL,enum) to a value of 0 and issue the command (>K:LANDING_LIGHTS_OFF) when the Honeycomb switch is OFF...
-
- Posts: 83
- Joined: Sat Jan 19, 2013 4:08 pm
Re: Help with assignment of yoke switch for landing lights
OK. Thanks Bill. Hope you are well and staying well there in "the Region". Have wife's relatives there nearby so know the area is hit pretty hard.
Frank
Frank