XY Pad relative Mode
Posted: Sat Mar 26, 2016 9:34 am
Hi,
I bought a Gamepad to controll moving fixtures with it. It's analog stick is sending a value of 127 if it is in center, if you push it, it goes up to 255 or down to 0.
The problem is: The xy-pad uses the Inputs as absolute position, which is not usable in this situation.
The idea: Writing some code, which increments the value (pan or tilt) with an increasing speed proportional to the input value of the stick axes.
What I've done: I made a little C# programm which gets the stick values through ArtNet from QLC+. It increments or decrements the value of pan and tilt and sends it back to QLC+ via ArtNet. It works with a Timer of 30ms interval, each Timer event is used to manipulate the DMX Value acording to the value of the analog stick.
What I'd like to have:
I'm not familar with the QLC+ Code and with Qt programming, which is the reason for the C# approach. I will post the C# class. I hope you want to integrate this algorithm in the code of the XY Pad, so that the user can decide either if he wants an absolute or a relative setting, this would just be perfect.
Happy Easter
PS: Please rename this ".qxw"-File to .cs. The Forum didn't allow me to upload the class.
I bought a Gamepad to controll moving fixtures with it. It's analog stick is sending a value of 127 if it is in center, if you push it, it goes up to 255 or down to 0.
The problem is: The xy-pad uses the Inputs as absolute position, which is not usable in this situation.
The idea: Writing some code, which increments the value (pan or tilt) with an increasing speed proportional to the input value of the stick axes.
What I've done: I made a little C# programm which gets the stick values through ArtNet from QLC+. It increments or decrements the value of pan and tilt and sends it back to QLC+ via ArtNet. It works with a Timer of 30ms interval, each Timer event is used to manipulate the DMX Value acording to the value of the analog stick.
What I'd like to have:
I'm not familar with the QLC+ Code and with Qt programming, which is the reason for the C# approach. I will post the C# class. I hope you want to integrate this algorithm in the code of the XY Pad, so that the user can decide either if he wants an absolute or a relative setting, this would just be perfect.
Happy Easter
PS: Please rename this ".qxw"-File to .cs. The Forum didn't allow me to upload the class.