November 4, 200520 yr 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) }
November 4, 200520 yr Author 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" Jan "Beatus ille qui procul negotiis..."
Create an account or sign in to comment