Sign in to follow this  
spokes2112

Pitch Indicator

Recommended Posts

Hi All,I need help on a gauge that should only be visible between -30 degrees of pitch to +40 degrees of pitch.The idea is when the pitch exceeds +40 degrees or falls below -30 it will not show.Here is the code I have so far. (A:Attitude indicator pitch degrees, degrees) 30 <What happens now is when the pitch exceeds -30 degrees (going down) the gauge goes off; but nothing when the pitch is going up. When I change it to:(A:Attitude indicator pitch degrees, degrees) 30 >Now the gauge is turned off until I have exceeded -30 degrees (going down).Any help will be greatly appreciated.

Share this post


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

Try(A:Attitude indicator pitch degrees, degrees)30 < (A:Attitude indicator pitch degrees, degrees)-40 > &Or(A:Attitude indicator pitch degrees, degrees) s1 30 < l1 -40 > &Regards,Roman

Share this post


Link to post
Share on other sites

Roman,Both codes worked perfect. Would you mind explaining the following code. I know it has something to do with stacks, but I'm not familiar with it.(A:Attitude indicator pitch degrees, degrees)s1 30 < l1 -40 > & Many thanks,Benny

Share this post


Link to post
Share on other sites

Benny,The s#, sp# stores are volatile temporary stores of a value. Volatile as in they go back to zero after each gauge read.(G:VARs), (L:VARs) are not volatile. There are 40 stores, 0 - 39.sp ( store "pop" ) stores the value then removes the value of the store from the stack.l# ( load ) reads the store.They are very useful to keep from repeating the same variable call.Regards,Roman

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