February 6, 200422 yr Hey AllIs there any way to program a gauge that activates the strobe lights when the struts are extended, then turns them off when the struts are compressed? I know that some aircraft have this feature in real life (Learjet-60) thats why the learjet panel has the beacon/strobe lights on the same switch. The Lear-60 has a squat switch that controls the strobes as long as the beacons are on. Just wondering if this could be dupicated in XML...Tyler
February 6, 200422 yr Hi,You could try something like: (L:Strobe Lights,bool) 1 == if{ (A:SIM ON GROUND,bool) 1 == if{ (>K:STROBES_OFF) } (A:SIM ON GROUND,bool) 0 == if{ (>K:STROBES_ON) } }(L:Strobe Lights,bool) could be the L:Var that makes it possible to switch the strobes and beacon on. (>K:TOGGLE_BEACON_LIGHTS) (L:Strobe Lights,bool) ! (>L:Strobe Lights,bool) Jan"Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
February 7, 200422 yr Thanks for the reply, is there any other code I need to add?:-wave Tyler Johnsonhttp://home.comcast.net/~ijettyler/TJhalban2.jpghttp://hawaiian.virtualATP.org
February 7, 200422 yr Tyler,My own preference would be to add initialisation to ensure 100% that the strobe and beacon lights start in sync. (just in case you manage to load a flight with the beacon lights already on)So something like : (L:Strobes init, bool) !if{ (A:Beacon Lights,bool) (>L:Strobe Lights,bool) 1 (>L:Strobes init, bool) }(L:Strobe Lights,bool) 1 == if{ (A:SIM ON GROUND,bool) 1 == if{ (>K:STROBES_OFF) } (A:SIM ON GROUND,bool) 0 == if{ (>K:STROBES_ON) } }(L:Strobe Lights,bool) could be the L:Var that makes it possible to switch the strobes and beacon on. (>K:TOGGLE_BEACON_LIGHTS) (L:Strobe Lights,bool) ! (>L:Strobe Lights,bool) Trevor.
February 7, 200422 yr Okay heres what I have in the xml file, and its not working...- - - (L:Strobe Lights,bool) 1 == if{ (A:SIM ON GROUND,bool) 1 == if{ (>K:STROBES_OFF) } (A:SIM ON GROUND,bool) 0 == if{ (>K:STROBES_ON) } } - - - (>K:TOGGLE_BEACON_LIGHTS) (L:Strobe Lights,bool) ! (>L:Strobe Lights,bool)Anyone feel like touching it up a lil?:-wave Tyler Johnsonhttp://home.comcast.net/~ijettyler/TJhalban2.jpghttp://hawaiian.virtualATP.org
February 7, 200422 yr Why not "slave" the strobe lights to beacon lights+not on ground?E.g. (A:Light beacon,bool) d (A:SIM ON GROUND,bool) ! && (>K:STROBES_SET)The "d" for dublicating, to make sure the switch shows the beacon state. If you want you can also add acombination of on ground and small g-force values to simulate de gear decrompession even more.Arne Bartels
February 7, 200422 yr Hi,Did a little testing, seems to work too:(A:SIM ON GROUND,bool) 1 == if{ (>K:STROBES_OFF) } (A:SIM ON GROUND,bool) 0 == if{ (L:Strobe Lights,enum) 1 == if{ (>K:STROBES_ON) } (L:Strobe Lights,enum) 0 == if{ (>K:STROBES_OFF) } } SWITCH BITMAPS(L:Strobe Lights,enum) 0 == if{ 1 (>L:Strobe Lights,enum) (>K:TOGGLE_BEACON_LIGHTS) } els{ 0 (>L:Strobe Lights,enum) (>K:TOGGLE_BEACON_LIGHTS) } Jan"Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
February 7, 200422 yr Hi,Works as expected Arne!Jan"Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
February 7, 200422 yr Hey guys, I just want to thank you for all of your work and time. This gauge had me stumped. Im a newbie to XML but the gauge now works CORRECTLY! I'm happy to see that its working. Thanks again guys!:-wave Tyler Johnsonhttp://home.comcast.net/~ijettyler/TJhalban2.jpghttp://hawaiian.virtualATP.org
Create an account or sign in to comment