Jump to content
Sign in to follow this  
ddawson

hydraulic control failures

Recommended Posts

Guest Skymed

Any-one know how to emulate "STIFF" controls when a simulated hydraulic failure occurs? I am wanting to make the controls slow to react to control input, but have had no success yet. Arne posted a macro sometime back that would act as a kind of delay for gauge needles, and I was wondering if that kind of thought process could be used for the controls to slow the overall input from a joystick.Steve

Share this post


Link to post
Share on other sites
Guest Skymed

Still thinking about this, and I'm leaning towards this type of thought process:Hydraulics failed?? {IF} Detect axis movement.(L:HydraulicsFail,bool) if{ (A:YOKE Y POSITION,percent) (G:Var1) - (A:YOKE Y POSITION,percent) (>G:Var1) }If axis has moved, implement some type of delay and apply it to the appropriate axis(A:YOKE Y POSITION,percent)100 / 16384 * DELAY (>K:AXIS_ELEVATOR_SET)If my thought process is correct, how would I implement a delay from the axis input to the axis set?Steve

Share this post


Link to post
Share on other sites
Guest Mathias

As joystick input is hard-coded into the sim it is only possible to hijack the input when no new signal arrives from the joystick. Then you can do your AXIS_ ... stuff, but this will be overwrtitten instantly as soon as the jostick is either moved again or the potentiometer decides to send out a spike. Nevertheless I think it could actually do what you want if you code your AXIS_ events carefully.

Share this post


Link to post
Share on other sites

I think you are correct, it is probably possible. I have been able to use an event trap to completely inhibit control surface movement. When the command to move the control surface is detected, the gauge responds with the same command, using the surface's current position as the argument. The only trick is differentiating this gauge generated event from events generated by other sources - you don't want the gauge to respond to its own event commands.One could presumably do the same kind of thing to simulate sluggish control surface response - calculate the maximum deflection currently allowed, and use that value as the argument when the gauge responds to user commanded events.Doug

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