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

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


20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...