Jump to content

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...