Sign in to follow this  
tttocs

310 Redux Landing Light switch

Recommended Posts

I was working at getting my switch panel properly setup for the new 310 yesterday and ran into an issue with programming the landing light switch.  It's a 3 position switch which appears to do LL extension on the middle position and turn the LL on in the 3rd.  Anybody have any hints on doing this with a 2 position switch?  Using SPAD.neXt, but the general principle is what I'm after.

TIA

Scott

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

I looked into LVAR handlers for that, but could not find anything. Might be something to bring up to Milviz. I set panel for the default landing lights and just leave the switch in the middle (light outs but off). The switch on the panel will operate the lights at that point. Not perfect, but functional.

What I wanted to do was just set the on position as light deployed and on and the off as light off and retracted.

Share this post


Link to post
Share on other sites
1 hour ago, kowen said:

What I wanted to do was just set the on position as light deployed and on and the off as light off and retracted.

Yep, that's what I was attempting as well, but I can't seem to find what deploys the light either. 

Scott

Share this post


Link to post
Share on other sites

The mouse logic for the landing lights is as follows:

	(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) }

Essentially to make it a binary choice, you need only set the (L:SwitchLL,enum) from zero (0) to two (2). This will extend the light housings. You will need to also set the sim's default K:Event as above.

In other words send (>K:LANDING_LIGHT_ON) at the same time you set the switch to 2, and send (>K:LANDING_LIGHT_OFF) when the switch is set to 0.

Share this post


Link to post
Share on other sites

I'll give that a try.  Thanks much for the info!

 

Scott

Share this post


Link to post
Share on other sites

I'm delighted to hear that you got it working as you like. :gaul:

Share this post


Link to post
Share on other sites
2 hours ago, n4gix said:

I'm delighted to hear that you got it working as you like. :gaul:

Same here.  Everything working perfectly now.

Thank you!

Scott

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this