@stephanschulz wrote:
I have a pan tilt spot light which has a pan range of 540˚.
The dmx values 0-255 would move the light to one of these angles.My app has a virtual light has a moved range of 360˚.
Wrapping my virtual angle from 0 to 360 causes a jump / wrap around movement of the robe light.
That makes sense as I am asking it to jump from DMX 169 back to DMX 0.But how can I take better advantage of the fact that I actually have 540˚ to work with?
How would I make the code to know that I could go to DMX 170 instead of back to 0?right now I am doing this, but I know it’s not what I need.
temp_angleX = ofWrapDegrees(temp_angleX, -180, 180); dmx_object.panValue = ofMap(temp_angleX, -270 ,270,0, 255,true); // pan max 540
Posts: 1
Participants: 1