Sign in to follow this  
pve

macro fun

Recommended Posts

Hi all (@c:FlightPlanCruisingAltitude,feet) 50 > if{ (@c:FlightPlanCruisingAltitude,feet) 100 / } (L:TGTaltitude_CRZ,feet) 50 > if{ (L:TGTaltitude_CRZ,feet) } Works OK and gives both numbers in test gauge. Used with:- @EICASCrzAltDisplay 100 * (A:PLANE ALTITUDE,feet) - abs s0 150 < l0 -150 > && && (>L:CRZ,bool) only when entering the (L:TGTaltitude_CRZ,feet) number will it work. Can anyone help.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi,What must happen in the macro?Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Hi,Value that macro puts on the last stack position is:1) (@c:FlightPlanCruisingAltitude,feet) 100 /When (@c:FlightPlanCruisingAltitude,feet) > 50 and (L:TGTaltitude_CRZ,feet) < 50 2) (L:TGTaltitude_CRZ,feet) When (@c:FlightPlanCruisingAltitude,feet) > 50 and (L:TGTaltitude_CRZ,feet) > 50 3) (L:TGTaltitude_CRZ,feet) When (@c:FlightPlanCruisingAltitude,feet) < 50 and (L:TGTaltitude_CRZ,feet) > 50 4) The last stack's value before the macro is called, or 0 if the stack is emptyWhen (@c:FlightPlanCruisingAltitude,feet) < 50 and (L:TGTaltitude_CRZ,feet) < 50 Hope this to be useful to help you find what you need.Tom

Share this post


Link to post
Share on other sites

Hi Jan (@c:FlightPlanCruisingAltitude,feet) 50 > if{ (@c:FlightPlanCruisingAltitude,feet) 100 / } Takes the FS9 Flight plan cruise level and displays the numbers in the FMC page. (L:TGTaltitude_CRZ,feet) 50 > if{ (L:TGTaltitude_CRZ,feet) } If you want to change the cruise level display put your own 3 digit number in with this. The number from this macro is either the FS9 flightplan cruise level number (default) or the user changed number. I Tried to use the numbers from this macro in another gauge in the EICAS to set CRZ warning but it only works when I change the default number (250) to the same user number (250).

Share this post


Link to post
Share on other sites

Ok,May be to tired..., but(@c:FlightPlanCruisingAltitude,feet) 50 > if{ (@c:FlightPlanCruisingAltitude,feet) } (L:TGTaltitude_CRZ,feet) 50 > if{ (L:TGTaltitude_CRZ,feet) }gives 2 numbers.Must there be a + or - somewhere or an if/els statement?Does this one need:@EICASCrzAltDisplay (A:PLANE ALTITUDE,feet) - abs s0 150 < l0 -150 > and and if{ "something" (>L:CRZ,bool) } ??Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Hi all Checked further found an L:var firing on load. Changed last part to:- @EICASCrzAltDisplay 100 * (A:PLANE ALTITUDE,feet) - abs s0 150 < l0 -150 > && && if{ 1 (>L:CRZ,bool) } els{ 0 (>L:CRZ,bool) } works OK Thanks to you both.

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