First have you tried?
Log in to Search the Forum for help!
Learn more about using FreeStyler at the FreeStyler WIKI HERE
Learn more about DMX in General at The DMX Wiki HERE

if all else fails and you need a fixture consider the fixture building service HERE

Laser Pan/Tilt (LD Sy-190 RGY)

Fixture File Help & Support, This is not a Request forum we are here to help you not work for you... If you do need a fixture and don't wish to make one yourself or learn then go here : http://www.freestylersupport.com/wiki/f ... on_service
Forum rules
This forum is designed for you to get HELP with building fixtures, Please make an attempt if you get stuck YOU must upload your partial fixture file (as an exported fixture file) so we can point you in the right direction if you don't do this you won't LEARN and if you don't learn you will may never be able to get the fixtures you require. It is Very hard to make fixtures for people when we don't have the same light at hand to test it with after all having the light in front of you makes programing so much easier! That's why we will help but rarely build any fixtures for you. You Alone are the best person to build your fixtures if you need help ask if you want it building for you Don't....
or alternativaly if your willing to pay for fixtures to be created then go here : http://www.freestylersupport.com/wiki/f ... on_service


You can Upload your fixtures as attachments to your posts so there is no need to supply email details Please post any fixtures in the download forum if you require help please contact an Admin/Moderator.
Post Reply
lncdoc
Knows how to turn Lights ON
Posts: 4
Joined: 12 Jan 2011, 04:34
FreeStyler Version: 3.3.2
I Use FreeStyler for: Just for the Fun of it.

Laser Pan/Tilt (LD Sy-190 RGY)

Post by lncdoc »

Hi guys,

I have created a fixture file for a 190mw (60 green, 130 red) RGY laser I recently purchased. The laser is an L D SY-190, but it's sold under a whole bunch of names.The pan and tilt are on channel 5 and 4, respectively, and are only 7 bit wide (128...255 are autopan and autotilt, respectively). But there's a twist (literally): The center is at 0/0, not at 63/63 as you would expect... so between 0..63 you're moving the pattern/beam/whatever from center to right. At 64 you're suddenly all the way at the left, moving towards the center, so 64...127 is moving from all the way left to the center.
The same is true for the tilt, which is straight ahead at 0. From 0...63 you move it down all the way to the bottom and at 64 you're at the top, so 64...127 is top to center.
Since this is not so easy to explain, I have made a diagram with the bit values:
laser_pan_tilt.png
Can anyone tell me how to map this onto the normal pan/tilt thing? I'm okay completely using the autotilt and autopan or just writing macros for that part of it, but it would be really nice to be able to use the joystick to control pan/tilt with the center at the actual center, as at the moment it jumps violently from left to right whenever I cross that magic treshold of 63.

Thanks a lot,

lncdoc
You do not have the required permissions to view the files attached to this post.


Mavi
LJ
Posts: 267
Joined: 30 Mar 2010, 01:19
FreeStyler Version: 3.2.8
I Use FreeStyler for: Just for the Fun of it.

Re: Laser Pan/Tilt (LD Sy-190 RGY)

Post by Mavi »

Hi and welcome to FS forum!

This is a realy unusual way to controll pan/tilt. Not only the channels are splited up with different functions, they also act like a ring. To map onto normal pan/tilt behavior you would have to do some math by adding or subtracting values. But the values to add/subtract depends on the values you set, otherwiese the fixture will go into autopan/autotilt or will not map onto the "ring" correctly. I do not think you can do this with FS.
I know, my english is not the best. If you have any problem to understand you are welcome to give me englisch lessons
lncdoc
Knows how to turn Lights ON
Posts: 4
Joined: 12 Jan 2011, 04:34
FreeStyler Version: 3.3.2
I Use FreeStyler for: Just for the Fun of it.

Re: Laser Pan/Tilt (LD Sy-190 RGY)

Post by lncdoc »

Hi Mavi,

Thanks a lot for your quick reply. The math behind this is actually really easy, but I have no idea how to incorporate that, I guess in the current version this may just not be possible. My C programming is very, very poor, so here's a MATLAB function that would map the input to the correct output for both pan and tilt:

Code: Select all

function [ptout]=pantiltmapping(ptin)
ptin=(ptin+127)/2; % Add 127 to offset center to right to upper right quadrant
ptin=mod(ptin,127); % Take the modulus ('roll over' at 127) at 127
ptout=round(ptin); % Ensure the output is integer.
This would produce the correct mapping for my laser, so basically just add 127 to the input value, divide by two, take the modulus of 127 and round the output to the nearest integer.

If anyone has any idea how to do this, I would be immensely grateful.

lncdoc
Mavi
LJ
Posts: 267
Joined: 30 Mar 2010, 01:19
FreeStyler Version: 3.2.8
I Use FreeStyler for: Just for the Fun of it.

Re: Laser Pan/Tilt (LD Sy-190 RGY)

Post by Mavi »

You are right, the math behind is not that hard :) But the problem is to bring this to FS. There is an other topic with the same problem (http://www.freestylersupport.com/fsforu ... f=8&t=3345) and Spirit just points out:
Spirit wrote:So far as i know this is Not possible, or i know a work around for it but it's not realy official.
Perhaps you should ask him about the work araound.
I know, my english is not the best. If you have any problem to understand you are welcome to give me englisch lessons
User avatar
Spirit
Pro Supporter! (Moderator)
Posts: 1421
Joined: 10 Jul 2010, 20:55
FreeStyler Version: 3.5.9
I Use FreeStyler for: Nightclub Lighting

Re: Laser Pan/Tilt (LD Sy-190 RGY)

Post by Spirit »

Yes, But only this workaround works if you have a Midi controller or touchscreen.
but i will sort it out when i come home first i need to work. :D

So i don't know anything about a Joystick.
AMD FX-6100 (3.6ghz)x6, Nvidia 770GTX 4GB, 8GB Ram,ROG MB, enttec Pro, Open enttec, Velleman, T2250MTS-B1 22"touchscreen, Ilyama 23" screen, scans, dimm, rgbled, laser, soundsystem Just a drive-in show. Live and Dance
User avatar
Spirit
Pro Supporter! (Moderator)
Posts: 1421
Joined: 10 Jul 2010, 20:55
FreeStyler Version: 3.5.9
I Use FreeStyler for: Nightclub Lighting

Re: Laser Pan/Tilt (LD Sy-190 RGY)

Post by Spirit »

oke i have lookt at the joystick features but you can only assign keyboard shortcurt so mine Workaround doesn't work.
AMD FX-6100 (3.6ghz)x6, Nvidia 770GTX 4GB, 8GB Ram,ROG MB, enttec Pro, Open enttec, Velleman, T2250MTS-B1 22"touchscreen, Ilyama 23" screen, scans, dimm, rgbled, laser, soundsystem Just a drive-in show. Live and Dance
lncdoc
Knows how to turn Lights ON
Posts: 4
Joined: 12 Jan 2011, 04:34
FreeStyler Version: 3.3.2
I Use FreeStyler for: Just for the Fun of it.

Re: Laser Pan/Tilt (LD Sy-190 RGY)

Post by lncdoc »

Thanks for checking, Spirit. Would you mind sharing the workaround for midi controllers and touchscreens anyways? maybe I'll find some weird joystick driver that will allow me to patch in something like that (like map a joystick to midi or something like that). I think I would be okay even controlling it with a keyboard... I'd be very interested in seeing your solution.

I wish FS were opensource, I could just write in 2 lines and fix it (but don't get me wrong guys, I totally understand why one wouldn't want to make it opensource! It's an awesome program :fs: ). I think I'll post this as a feature request - something like an "add mapping equation" in fixture creator where you can just enter an equation to change the mapping. I don't know how hard it is to parse something like that, but I know a few programs (like the Generic Mapping Toolkit) that allow just that.

lncdoc
User avatar
Spirit
Pro Supporter! (Moderator)
Posts: 1421
Joined: 10 Jul 2010, 20:55
FreeStyler Version: 3.5.9
I Use FreeStyler for: Nightclub Lighting

Re: Laser Pan/Tilt (LD Sy-190 RGY)

Post by Spirit »

oke, if you take your pan and tilt channels, and assign tham to the Iris channel, and Focus channel.
now you can say the Min. and Max. Value lets fill in 0 and 127. (in Fixture Creator 5.5)

now open Fs en add de Fixture with the Workaround.
open the Iris/Focus/Frost /zoom/prism. Palletwindows now those 2 channel would act as a Pan and tilt with a value of 0-127.you can drag it also with the mouse.

now you can also use the Iris and Focus channel with Midi and or touchscreen only the touchscreen haves Encoders en a midi controller faders i prefer Faders.

i hope you undestand it otherwise i will hear it.
AMD FX-6100 (3.6ghz)x6, Nvidia 770GTX 4GB, 8GB Ram,ROG MB, enttec Pro, Open enttec, Velleman, T2250MTS-B1 22"touchscreen, Ilyama 23" screen, scans, dimm, rgbled, laser, soundsystem Just a drive-in show. Live and Dance
lncdoc
Knows how to turn Lights ON
Posts: 4
Joined: 12 Jan 2011, 04:34
FreeStyler Version: 3.3.2
I Use FreeStyler for: Just for the Fun of it.

Re: Laser Pan/Tilt (LD Sy-190 RGY)

Post by lncdoc »

Thanks Spirit. This workaround does solve the 0...127 issue, but the weird 0...64 and 64...127 mapping issue is a little more tricky. I may just switch to ILDA for laser control...

lncdoc
Post Reply

Return to “FreeStyler Fixture Files - Help & Support”