January 9, 200620 yr 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
January 9, 200620 yr 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..." Jan "Beatus ille qui procul negotiis..."
January 13, 200620 yr 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
Create an account or sign in to comment