Jump to content
Sign in to follow this  
phjvh

Altimeter Warning Light - 2

Recommended Posts

Hi all,I am using the code below for an Altimeter Warning Light:1. Altimeter with Altitude Warning Light (on +/- 750 feet before set [AP] Altitude, off +/- 100 feet before set [AP] altitude. Will also illuminate if aircraft leaves the set [AP] altitude (-100 feet), e.g. on ILS APP, and will in this case go off when the altitude is 750 feet below the set [AP] altitude). 2. AFCS ALT & CRS2 Selector (ALT function modified to work with the Altimeter Altitude Warning Light).Element code in the Altimeter:(A:Autopilot altitude lock var, feet) (A:Indicated altitude, feet) - abs d 100 >= r 750 <= &&This code is working with the Altitude Selector, element code://--->(A:AUTOPILOT ALTITUDE LOCK VAR,feet) 3 */-->(G:Var1) if{ (>K:AP_VS_VAR_DEC) } els{ (>K:AP_ALT_VAR_DEC) }(G:Var1) if{ (>K:AP_VS_VAR_INC) } els{ (>K:AP_ALT_VAR_INC) }//--->So far, so good! When the aircraft leaves the set [AP] altitude on e.g. an ILS approach (pt. 1 above), the Altimeter Warning Light should NOT illuminate. Anyone who can help with this one?

Share this post


Link to post
Share on other sites

Jan,Try this, change the section:(A:Autopilot approach hold, bool) 0 == (A:Autopilot altitude lock var, feet) (A:Indicated altitude, feet) - abs d 100 >= r 750 <= && &&Jan"Procul Negotiis"

Share this post


Link to post
Share on other sites

Hi Jan :-),Thanks again for a great help! This code works fine!! Attached a screenshot of part of the new ATR42-300 main_panel.

Share this post


Link to post
Share on other sites

Jan,Glad it works; the instruments are beatifull!!Jan"Procul Negotiis"

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...