January 28, 200818 yr 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.
January 28, 200818 yr Author 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 FS RTWR SHRS F-111 JoinFS Little Navmap
January 29, 200818 yr 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
February 2, 200818 yr Author 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 FS RTWR SHRS F-111 JoinFS Little Navmap
Create an account or sign in to comment