Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

(A:Vertical SPEED,feet per minute) (L:AP_VS_Var,number) - s12 abs 0 >
if{ [COLOR="red"]l11[/COLOR] 2 l12 abs 50 / 40 min * l12 l12 abs / * - 14500 min [COLOR="Red"]sp11[/COLOR] }
l11 (>K:THROTTLE_SET)
My short question:
This is a part of my helicopter autopilot gauge (the part that controls collective for altitude hold).
My problem is that the value of l11 never gets bigger than 80. To my mind s11 stores the correct value, but l11 then always loads "0".
Code:(A:Vertical SPEED,feet per minute) (L:AP_VS_Var,number) - s12 abs 0 > if{ [COLOR="red"]l11[/COLOR] 2 l12 abs 50 / 40 min * l12 l12 abs / * - 14500 min [COLOR="Red"]sp11[/COLOR] } l11 (>K:THROTTLE_SET)
I already replaced the s11 and l11 by a L:var and it worked fine. But why doesn't this way work??
Could someone give me a example or two how to assign values to the stack?

And, because the stack is cleared on every cycle, they are reset to 0 on every cycle as well.

<Update Frequency="6"/>
<Macro Name="Loop">
1 3 5 6 7 10 11 12 14 9 l0 case ( A:SURFACE TYPE,number) == if{ 1 sp1 }
</Macro>
<Element>
<Select>
<Value>
c
:0 @Loop l0 ++ s0 10 < if{ g0 }
l1
(A:ENG1 COMBUSTION,number) 0 >
(A:RADIO HEIGHT,meters) 2 <
&& && if{ (A:SMOKE ENABLE,bool) ! if{ (>K:SMOKE_ON) } } els{ (A:SMO
</Select>
</Element>

CODE RESULTING STACK #9 REGISTER (l9)
14 25 s9 36 14 25 36 25
14 25 sp9 36 14 36 25





LOL actually truth be told it was Tom who came up with the main core of the above codeTom,
your tip about the refreshing stack made me think about a code example from Wozza I found earlier:
Code:<Update Frequency="6"/> <Macro Name="Loop"> 1 3 5 6 7 10 11 12 14 9 l0 case ( A:SURFACE TYPE,number) == if{ 1 sp1 } </Macro> <Element> <Select> <Value> c :0 @Loop l0 ++ s0 10 < if{ g0 } l1 (A:ENG1 COMBUSTION,number) 0 > (A:RADIO HEIGHT,meters) 2 < && && if{ (A:SMOKE ENABLE,bool) ! if{ (>K:SMOKE_ON) } } els{ (A:SMO </Select> </Element>
Again the l0 is before the s0, but this time in a goto loop.
Does this mean that the current gauge cycle is prevented from completing and thus the stack isn't refreshed?
Steven

Didn't someone do an excel spreadsheet once that could do the xml calculations and display the stack? Or is my memory going?
A quick search for fsx xml excel doesn't bring up anything interesting. ... if only I wasn't so busy...