Jump to content
Sign in to follow this  
taguilo

L:Var to control a string

Recommended Posts

You might try this:(L:Center Hydraulic Switch 1, enum) 1 == (L:Center Hydraulic Switch 2, enum) 1 == orif{ (L:Center hydraulic pressure, psi) 10 + 2970 min (>L:Center hydraulic pressure, psi) } els { (L:Center hydraulic pressure, psi) 10 - 0 max (>L:Center hydraulic pressure, psi) }After you make it work, you could try this little more complex that will add a bit of pressure when both switches are on, as per your desire :-)(L:Center Hydraulic Switch 1, enum) 1 == s0(L:Center Hydraulic Switch 2, enum) 1 == s1 or if{ (L:Center hydraulic pressure, psi) 10 + 2970 15 l0 l1 * * + min (>L:Center hydraulic pressure, psi) } els { (L:Center hydraulic pressure, psi) 10 - 0 max (>L:Center hydraulic pressure, psi) }TomPD: Be sure to check the proper spacing within the syntax.

Share this post


Link to post
Share on other sites

Hi, 15 l0 l1 * * + is a good one!I add also some N2, Hz and Bleedair to give more "oscillation".Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Jan,Actually oscillation occurs mostly by the use of flight controls (30-60 psi fluctuations). The redudancy in pumps make each system pretty stable, especially when both are working.Tom

Share this post


Link to post
Share on other sites
Guest A320 Co-Pilot

Thanks for all the help, I manged to get it work how I want it to. The pressures are taken from the level D 767 panel, and work simliar to that panel, the only thing I have not modelled yet is the rotary switch.Here is the working valueAnd once again Thanks for all the help.Cheers(L:Center Hydraulic Switch 1, enum) 1 == if{ (L:Center Hydraulic Switch 2, enum) 0 == if{ (L:Center hydraulic pressure, psi) 10 + 2970 min (>L:Center hydraulic pressure, psi) } } els { (L:Center Hydraulic Switch 1, enum) 0 == if{ (L:Center Hydraulic Switch 2, enum) 1 == if{ (L:Center hydraulic pressure, psi) 10 + 2970 min (>L:Center hydraulic pressure, psi) } } els { (L:Center Hydraulic Switch 1, enum) 1 == if{ (L:Center Hydraulic Switch 2, enum) 1 == if{ (L:Center hydraulic pressure, psi) 10 + 3170 min (>L:Center hydraulic pressure, psi) } } els { (L:Center Hydraulic Switch 1, enum) 0 == if{ (L:Center Hydraulic Switch 2, enum) 0 == if{ (L:Center hydraulic pressure, psi) 10 - 0 max (>L:Center hydraulic pressure, psi) } }

Share this post


Link to post
Share on other sites

"I manged to get it work how I want it to"Good. Most important is to use the code you feel more comfortable with. :-)"the only thing I have not modelled yet is the rotary switch." There ain't no rotary switchs for hydraulics in the 757.Proper documentation is of a great help in the development of a complex project. :-)Tom

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