Sign in to follow this  
Guest mtom

Hydraulics pressure gauge and pump switch interdependen...

Recommended Posts

Hi again.Would one you of guys be good enough to show me what code is required to make a hydraulics pressure gauge dependent on a hydraulics pump switch. I've developed the pressure gauge okay and a dummy hydraulic pump switch for the job, but I've got no idea how to link them up. I'm guessing that most of the code would be placed in the hydraulics pressure gauge, so I've included that below.Any ideas are appreciated.Cheers,Matthew. (A:Suction pressure,inHg)

Share this post


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

Hi,You could make the needle rotation dependant of the hydraulic switch like:(L:Hydraulic Switch,bool) if{ (A:Suction pressure,inHg) }Hope it helps,Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

Hi Jan.Thanks for that. Did the trick just nicely. I've included the final code for the gauge and the switch below for anyone else who might be interested.Cheers,Matthew.(L:Hydraulic Switch,bool) if{ (A:Suction pressure,inHg) }(L:Hydraulic Switch,bool)Hydraulics Pump(L:Hydraulic Switch,bool) ! (>L:Hydraulic Switch,bool)

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