Sign in to follow this  
phjvh

Rudder Trim Switch

Recommended Posts

I am trying to make a Ruddder Trim Switch. The problem I have is that when I click the switch to the left or right the switch does not move, Then if I repeatily click then the switch move to the right or left then disappears. What I want it to do is go to the right or left when you click then go back to the center position when I have stopped clicking.This is the code I am using(A:Rudder trim, degrees)Rudder Trim(K:RUDDER_TRIM_LEFT) -1 != if{ (A:Rudder trim, degrees) 1 - (> K:RUDDER_TRIM_RIGHT) }(K:RUDDER_TRIM_LEFT) 1 != if{ (A:Rudder trim, degrees) 1 + (> K:RUDDER_TRIM_RIGHT) }

Share this post


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

Hi,Maybe this one helps (in this case for the ailerons, but should function also for the rudder):(L:aileron trim,enum)(M:Event) 'LeftSingle' scmp 0 == if{ -1 (>L:aileron trim,enum) (>K:AILERON_TRIM_LEFT) } (M:Event) 'Leave' scmp 0 == if{ 0 (>L:aileron trim,enum) }(M:Event) 'LeftSingle' scmp 0 == if{ 1 (>L:aileron trim,enum) (>K:AILERON_TRIM_RIGHT) } (M:Event) 'Leave' scmp 0 == if{ 0 (>L:aileron trim,enum) } Jan"Beatus Ille Procul Negotiis"

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