Sign in to follow this  
phjvh

xml failure

Recommended Posts

Hi Is it possible to toggle a function in a specific situation?E.g. engine failure caused by low oilpressure or high oiltemperature etc.I tried some code's, but that caused a brain-distortion.I thought about something like this, but of course.... no succes!(>K:TOGGLE_ENGINE1_FAILURE) if{ (A:General eng1 oil temperature, celsius) 200 > } I'm curious,http://ftp.avsim.com/dcforum/User_files/3dbc3a9471a37f1c.jpg

Share this post


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

>Hi >>Is it possible to toggle a function in a specific situation? >E.g. engine failure caused by low oilpressure or high >oiltemperature etc. >I tried some code's, but that caused a brain-distortion. >I thought about something like this, but of course.... no >succes! >> > >(>K:TOGGLE_ENGINE1_FAILURE) if{ (A:General eng1 >oil temperature, celsius) 200 > } > Well, the if statment is inside out, for one thing... think backwards and upside down! :)((A:General eng1 oil temperature, celsius) 200 >) if{ (>TOGGLE_ENGINE1_FAILURE) }

Share this post


Link to post
Share on other sites

Maybe a zero has to be stored, like:0 (>K:TOGGLE_ENGINE1_FAILURE)This works for me anyway. In addition, I tend to use all my "runtimes" in the following fashion, and in separate gauges:(Check this) if{ Do your stuff }I'm not sure if it's by the book, but it works for me :)

Share this post


Link to post
Share on other sites

Well, make an engine failure warning light for tests and see what happens. I'm sure you'll be able to see instantly what is wrong then. If you don't succeed, I'll give you a more detailed description.Use (A:GENERAL ENG1 FAILED,bool) for the light, or some similar parameter.

Share this post


Link to post
Share on other sites

Good evening everybody and thanks for the advicesI did a lot and now it is possible to get failures, oilpressure, hydraulic, electric, air etc. en repair them in flight.Made some lights and now busy with fine tuning, the big problem!.Anyway, it works and it is kind of a sensation to get an unexpected engine failure 2 NM finals.Karl, as always, i do want to know more about your work (and, of course, that of others)!Reg.http://ftp.avsim.com/dcforum/User_files/3dbc3a9471a37f1c.jpg

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