July 20, 200322 yr 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?
July 20, 200322 yr Author 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" Jan "Beatus ille qui procul negotiis..."
July 20, 200322 yr Hi Jan :-),Thanks again for a great help! This code works fine!! Attached a screenshot of part of the new ATR42-300 main_panel.
July 20, 200322 yr Author Jan,Glad it works; the instruments are beatifull!!Jan"Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
Create an account or sign in to comment