Sign in to follow this  
Guest VRoby

Nav/Strobes Lights on same toggle

Recommended Posts

Hi to all,I need to configure a 3 positions toggle switch for light up NAV lights and Strobe lights in sequence:>switch up position = nav and strobes OFF>switch middle position = nav ON, strobes OFF>switch down position = nav ON, strobes ONthe same for return back: first goes OFF only Strobes, and NAV remains ON (middle position), then goes OFF NAV too (up position).For Strobes I haven't problem because in SDK exist K:STROBES_ON and K:STROBES_OFF, the problem is how to include into the code the NAV LIGHTS ON and OFF.I tried in this way but doesn't work.....(L:PS, number)(L:PS, number) 2 == if{ 1 (>L:PS, number)0 (>K:TOGGLE_NAV_LIGHTS) } (L:PS, number) 3 == if{ 2 (>L:PS, number) (>K:STROBES_OFF) && } (A:LIGHT NAV, bool) 1 == if{ 1 (>K:TOGGLE_NAV_LIGHTS) } 2(>L:md80vr_sound_id, number)(L:PS, number) 2 == if{ 3 (>L:PS, number) (>K:STROBES_ON) && } (L:PS, number) 1 == if{ 2 (>L:PS, number) } (A:LIGHT NAV, bool) 0 != if{ 1 (>K:TOGGLE_NAV_LIGHTS) } 2 (>L:md80vr_sound_id, number)Anybody can help me???RegardsRoberto

Share this post


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

Hi,Not tested, but you could try:(L:PS,number) 1 - 1 max (>L:PS,number) (L:PS,number) 2 == if{ (A:LIGHT NAV, bool) if{ (>K:TOGGLE_NAV_LIGHTS) } } (L:PS,number) 3 == if{ (>K:STROBES_OFF) } 2 (>L:md80vr_sound_id,number)(L:PS,number) 1 + 3 min (>L:PS,number) (L:PS,number) 1 == if{ (A:LIGHT NAV, bool) ! if{ (>K:TOGGLE_NAV_LIGHTS) } } (L:PS,number) 2 == if{ (>K:STROBES_ON) } 2 (>L:md80vr_sound_id,number)Hope it helps,Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Hi Jan,thank you for your answer, I'm sorry but it works like mine.The problem was in setting initial comand and I resolved it with a gauge which switches off all lights when I load the aircraft.Thank YouRoberto

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