Sign in to follow this  
Guest abelino

why not working?

Recommended Posts

(Sorry my pure english)addon for default B737symptom:initializing: flaps up, (index 0), icon not visiblekeypress FLAPS_INCR by 1: (index 0 -> index 1)XMLIcon_1 will visible (Ok)keypress FLAPS_INCR by 1: (index 1 -> index 2)XMLIcon_2 will visible (Ok)keypress FLAPS_INCR by 1: (index 2 -> index 3)XMLIcon_3 will visible (Ok, BUT!)In this point I want trigger to FLAPS_UP sequence. 1 (>K:FLAPS_UP)But happens nothing! Why? This is the question.(originally I want to raise up only 1 (FLAPS_DECR),depend by IAS)keypress FLAPS_INCR by 1: (index 3 -> index 4)XMLIcon_4 will visible (Ok)code:flaps index:%((A:FLAPS HANDLE INDEX, number))%!02d!%(A:FLAPS HANDLE INDEX, number) 1 (>K:FLAPS_UP) code end:any idea?many thans.abelino

Share this post


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

Hi,Try with a (G:Var)E.g., not tested:(G:Var1) 0 == if{ (>K:Flaps Incr) 1 (>G:Var1) }(G:Var1) 1 == if{ (>K:Flaps Incr) 2 (>G:Var1) }(G:Var1) 2 == if{ (>K:Flaps Incr) 3 (>G:Var1) }(G:Var1) 3 == if{ (>K:Flaps Up) 0 (>G:Var1) }Or something.Hope it helps,Jan"Procul Negotiis"

Share this post


Link to post
Share on other sites

Hi!Thanks a lot, I will be try, but I have not too mutch time for"fly" :-(abelino

Share this post


Link to post
Share on other sites

Hi, Jan!I have another problem.1) from this forum, another topics"10Q What are these A: E: P: K: G: L: statements?""10A ...G: L: are userdefinable variables to read and write values that can be displayed, buthave no further effect"2) from Panel SDKG Gauge variable A variable that is local to this particular gauge.Source: ((A:TOTAL WEIGHT, lbs)) (>G:Var2) %((G:Var2))%!06d!% lbs %((A:TOTAL WEIGHT, lbs))%!06d!% lbsResult: see attachment.("000000 lbs 14.... lbs")Why?I assign a value to the variable (>G:Var2), and few steps laterI want to read it, but looks like there is a zero value. =:-OI think this variable accessible from whole gauge.I try with local variable also, same result :-(What was my mistake?Thanksabelino

Share this post


Link to post
Share on other sites

Hi,You can assign a value to a (G:Var) as follows:(A:TOTAL WEIGHT, lbs)(>G:Var2)Then read it:%((G:Var2))%!06d!% lbs %Reading (G:Var2) and (A:TOTAL WEIGHT, lbs) should give the same valuesHope it helps, not tested,Jan"Procul Negotiis"

Share this post


Link to post
Share on other sites

We did it! :-))) (Its working like a charm! :-)(This is for a B747-400 default aircraft only!)Many thanks!abelino(Ps:the tested, working source in attachment)

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