different align enhancments

This commit is contained in:
sam 2020-10-03 00:15:12 +02:00
parent 39ac8c9960
commit 4b07dfc263
5 changed files with 71 additions and 68 deletions

26
LJ.conf
View File

@ -12,10 +12,10 @@ color = -1
type = DS1000 type = DS1000
ip = 192.168.2.44 ip = 192.168.2.44
kpps = 25000 kpps = 25000
centerx = 0 centerx = -393
centery = 0 centery = 390
zoomx = 45.0 zoomx = 50.0
zoomy = 45.0 zoomy = 50.0
sizex = 32000 sizex = 32000
sizey = 32000 sizey = 32000
finangle = 0.0 finangle = 0.0
@ -34,8 +34,8 @@ ip = 192.168.2.43
kpps = 25000 kpps = 25000
centerx = 0 centerx = 0
centery = 0 centery = 0
zoomx = 30.0 zoomx = 50.0
zoomy = 30.0 zoomy = 50.0
sizex = 32000 sizex = 32000
sizey = 32000 sizey = 32000
finangle = 0.0 finangle = 0.0
@ -54,11 +54,11 @@ ip = 192.168.2.6
kpps = 25000 kpps = 25000
centerx = 0 centerx = 0
centery = 0 centery = 0
zoomx = 85.0 zoomx = 79
zoomy = 85.0 zoomy = 82
sizex = 32000 sizex = 32000
sizey = 32000 sizey = 32000
finangle = 0.0 finangle = 0.2792526803190927
swapx = -1 swapx = -1
swapy = -1 swapy = -1
lsteps = [(1.0, 8),(0.25, 3), (0.75, 3), (1.0, 10)] lsteps = [(1.0, 8),(0.25, 3), (0.75, 3), (1.0, 10)]
@ -72,10 +72,10 @@ color = -1
type = LUKE400 type = LUKE400
ip = 192.168.2.4 ip = 192.168.2.4
kpps = 25000 kpps = 25000
centerx = 0 centerx = -3797
centery = 0 centery = -1
zoomx = 45.0 zoomx = 51.0
zoomy = 45.0 zoomy = 48.0
sizex = 32000 sizex = 32000
sizey = 32000 sizey = 32000
finangle = 0.0 finangle = 0.0

View File

@ -14,8 +14,8 @@ ip = 192.168.2.4
kpps = 25000 kpps = 25000
centerx = 0 centerx = 0
centery = 0 centery = 0
zoomx = 45.0 zoomx = 50.0
zoomy = 45.0 zoomy = 50.0
sizex = 32000 sizex = 32000
sizey = 32000 sizey = 32000
finangle = 0.0 finangle = 0.0
@ -34,11 +34,11 @@ ip = 192.168.2.43
kpps = 25000 kpps = 25000
centerx = 0 centerx = 0
centery = 0 centery = 0
zoomx = 30.0 zoomx = 50.0
zoomy = 30.0 zoomy = 50.0
sizex = 32000 sizex = 32000
sizey = 32000 sizey = 32000
finangle = 0 finangle = 0.0
swapx = -1 swapx = -1
swapy = -1 swapy = -1
lsteps = [ (1.0, 2),(0.25, 1), (0.75, 1), (1.0, 5)] lsteps = [ (1.0, 2),(0.25, 1), (0.75, 1), (1.0, 5)]
@ -54,8 +54,8 @@ ip = 192.168.2.6
kpps = 25000 kpps = 25000
centerx = 0 centerx = 0
centery = 0 centery = 0
zoomx = 45.0 zoomx = 50.0
zoomy = 45.0 zoomy = 50.0
sizex = 32000 sizex = 32000
sizey = 32000 sizey = 32000
finangle = 0.0 finangle = 0.0
@ -74,8 +74,8 @@ ip = 192.168.1.5
kpps = 25000 kpps = 25000
centerx = 0 centerx = 0
centery = 0 centery = 0
zoomx = 45.0 zoomx = 50.0
zoomy = 45.0 zoomy = 50.0
sizex = 32000 sizex = 32000
sizey = 32000 sizey = 32000
finangle = 0.0 finangle = 0.0

View File

@ -398,7 +398,7 @@ Try these steps in this order ;
python3 talk3.py -i etherdreamIP python3 talk3.py -i etherdreamIP
- You should see "connected to yourLJserverIP" on webUI. If not : LJ is not started / your network configuration is bad / a wrong IP in the configure parameters : python3 configure.py. - You should see "connected to yourLJserverIP" on webUI. If not : LJ is not started / reload webpage / your network configuration is bad / a wrong IP in the configure parameters : python3 configure.py.
- Switch to simu page. If you don't see anything : check redis server or your points in redis doesn't respect pointlist formatting (see command reference). - Switch to simu page. If you don't see anything : check redis server or your points in redis doesn't respect pointlist formatting (see command reference).
@ -427,22 +427,23 @@ Use the same syntax if you send your pointlist directly in redis : "/pl/0/0" is
Every point must be : (x,y,color). Color is the hex color like #FFFFFF in decimal. For new laserist : if point A is green and next point B is red, line AB will be red. Every point must be : (x,y,color). Color is the hex color like #FFFFFF in decimal. For new laserist : if point A is green and next point B is red, line AB will be red.
/scale/X/lasernumber value /scale/X/lasernumber value (0-200)
/scale/Y/lasernumber value /scale/Y/lasernumber value (0-200)
/swap/X/lasernumber value (0 or 1) /swap/X/lasernumber value (0 or 1)
/swap/Y/lasernumber value (0 or 1) /swap/Y/lasernumber value (0 or 1)
/angle/lasernumber value : increase/decrease angle correction for given laser by value /angle/lasernumber value : angle correction for given laser by value (0-360)
/loffset/X/lasernumber value : change X offset of given laser by value /loffset/X/lasernumber value : change X offset of given laser to value (-32000/32000)
/loffset/Y/lasernumber value : change Y offset of given laser by value /loffset/Y/lasernumber value : change Y offset of given laser to value (-32000/32000)
/kpps/lasernumber value : live change of kpps /kpps/lasernumber value : live change of kpps
/intens/lasernumber value : increase/decrease intensity for given laser by value. Needs analog modulation laser /intens/lasernumber value : increase/decrease intensity for given laser by value. Needs analog modulation laser

View File

@ -16,8 +16,8 @@ UpdateAllwww()
/forwardui "htmlid args" /forwardui "htmlid args"
/scale/X/lasernumber value /scale/X/lasernumber value (0-200)
/scale/Y/lasernumber value /scale/Y/lasernumber value (0-200)
/client or note on < 8 : change client displayed for Current Laser /client or note on < 8 : change client displayed for Current Laser
23 < /noteon < 32 : PL number displayed on webUI simulator 23 < /noteon < 32 : PL number displayed on webUI simulator
@ -31,7 +31,7 @@ UpdateAllwww()
/kpps/lasernumber value /kpps/lasernumber value
Live change of kpps is not implemented in newdac.py. Change will effect next startup. Live change of kpps is not implemented in newdac.py. Change will effect next startup.
/angle/lasernumber value : increase/decrease angle correction for given laser by value /angle/lasernumber value : angle correction for given laser by value (0-360)
/intens/lasernumber value : increase/decrease intensity for given laser by value /intens/lasernumber value : increase/decrease intensity for given laser by value
@ -43,8 +43,8 @@ lsteps is a string like "[ (1.0, 8),(0.25, 3), (0.75, 3), (1.0, 10)]"
/swap/X/lasernumber value (0 or 1) /swap/X/lasernumber value (0 or 1)
/swap/Y/lasernumber value (0 or 1) /swap/Y/lasernumber value (0 or 1)
/loffset/X/lasernumber value : change X offset of given laser by value /loffset/X/lasernumber value : change X offset of given laser to value (-32000/32000)
/loffset/Y/lasernumber value : change Y offset of given laser by value /loffset/Y/lasernumber value : change Y offset of given laser to value (-32000/32000)
/order value : instruct tracer what to do. /order value : instruct tracer what to do.
@ -89,7 +89,7 @@ Bob could use /pl/2/0 and /pl/2/1 and Lisa could use /pl/2/2 and /pl/2/3.
""" """
import types, time, socket import types, time, socket, math
from libs3 import gstt from libs3 import gstt
import redis import redis
from libs3 import settings, plugins, homographyp,log from libs3 import settings, plugins, homographyp,log
@ -432,7 +432,7 @@ def handler(oscpath, args):
# /angle/lasernumber value # /angle/lasernumber value
if oscpath[1] == "angle": if oscpath[1] == "angle":
print("New Angle modification for laser ", oscpath[2], ":", float(args[0])) print("New Angle modification for laser ", oscpath[2], ":", float(args[0]))
gstt.finANGLE[laser] += float(args[0]) gstt.finANGLE[laser] = math.radians(float(args[0]))
NewEDH(laser) NewEDH(laser)
print("New angle", gstt.finANGLE[laser]) print("New angle", gstt.finANGLE[laser])
@ -491,28 +491,30 @@ def handler(oscpath, args):
# /loffset/X/lasernumber value # /loffset/X/lasernumber value
if oscpath[1] == "loffset" and oscpath[2] == "X": if oscpath[1] == "loffset" and oscpath[2] == "X":
print("offset/X laser", laser, "modified to", args[0]) if -32000 < int(args[0]) < 32000:
gstt.centerX[laser] -= int(args[0]) print("offset/X laser", laser, "modified to", args[0])
NewEDH(laser) gstt.centerX[laser] = int(args[0])
NewEDH(laser)
# /loffset/Y/lasernumber value # /loffset/Y/lasernumber value
if oscpath[1] == "loffset" and oscpath[2] == "Y": if oscpath[1] == "loffset" and oscpath[2] == "Y":
print("offset/Y laser", laser, "modified to", args[0]) if -32000 < int(args[0]) < 32000:
gstt.centerY[laser] -= int(args[0]) print("offset/Y laser", laser, "modified to", args[0])
NewEDH(laser) gstt.centerY[laser] = int(args[0])
NewEDH(laser)
# /scale/X/lasernumber value # /scale/X/lasernumber value
if oscpath[1] == "scale" and oscpath[2] == "X": if oscpath[1] == "scale" and oscpath[2] == "X":
if gstt.zoomX[laser] + int(args[0]) > 0:
gstt.zoomX[laser] += int(args[0]) gstt.zoomX[laser] = int(args[0])
print("scale/X laser", laser , "modified to", gstt.zoomX[laser]) print("scale/X laser", laser , "modified to", gstt.zoomX[laser])
NewEDH(laser) NewEDH(laser)
# /scale/Y/lasernumber value # /scale/Y/lasernumber value
if oscpath[1] == "scale" and oscpath[2] == "Y": if oscpath[1] == "scale" and oscpath[2] == "Y":
if gstt.zoomY[laser] + int(args[0]) > 0:
gstt.zoomY[laser] += int(args[0]) gstt.zoomY[laser] = int(args[0])
print("scale/Y laser", laser, "modified to", gstt.zoomY[laser]) print("scale/Y laser", laser, "modified to", gstt.zoomY[laser])
NewEDH(laser) NewEDH(laser)

View File

@ -327,7 +327,7 @@
<div class="spacer" style="height: 6px;"></div> <div class="spacer" style="height: 6px;"></div>
<!-- kpps knob --> <!-- kpps knob -->
<div><webaudio-knob id="kpps/0" diameter="60" min="0" max="55000" value="25000"></webaudio-knob></div> <div><webaudio-knob id="kpps/0" diameter="60" min="100" max="40000" value="25000"></webaudio-knob></div>
<!-- Lasergrid 0 --> <!-- Lasergrid 0 -->
@ -346,8 +346,8 @@
<!-- Angle, Offset X, Offset Y --> <!-- Angle, Offset X, Offset Y -->
<div><webaudio-knob id="angle/0" diameter="60" min="0" max="360" value="0"></webaudio-knob></div> <div><webaudio-knob id="angle/0" diameter="60" min="0" max="360" value="0"></webaudio-knob></div>
<div><webaudio-knob id="loffset/X/0" diameter="60" min="-320" max="320" value="0"></webaudio-knob></div> <div><webaudio-knob id="loffset/X/0" diameter="60" min="-27000" max="27000" value="0"></webaudio-knob></div>
<div><webaudio-knob id="loffset/Y/0" diameter="60" min="-320" max="320" value="0"></webaudio-knob></div> <div><webaudio-knob id="loffset/Y/0" diameter="60" min="-27000" max="27000" value="0"></webaudio-knob></div>
<div class="lasertext">Angle</div> <div class="lasertext">Angle</div>
<div class="lasertext">Offset X</div> <div class="lasertext">Offset X</div>
<div class="lasertext">Offset Y</div> <div class="lasertext">Offset Y</div>
@ -360,8 +360,8 @@
<!-- Max global intensity, Scale X, Scale Y --> <!-- Max global intensity, Scale X, Scale Y -->
<div><webaudio-knob id="intens/0" diameter="60" min="0" max="255" value="255"></webaudio-knob></div> <div><webaudio-knob id="intens/0" diameter="60" min="0" max="255" value="255"></webaudio-knob></div>
<div><webaudio-knob id="scale/X/0" diameter="60" min="-10" max="10" value="0"></webaudio-knob></div> <div><webaudio-knob id="scale/X/0" diameter="60" min="0" max="200" value="50"></webaudio-knob></div>
<div><webaudio-knob id="scale/Y/0" diameter="60" min="-10" max="10" value="0"></webaudio-knob></div> <div><webaudio-knob id="scale/Y/0" diameter="60" min="0" max="200" value="50"></webaudio-knob></div>
<div class="lasertext"style="color: #ddd;">Intens</div> <div class="lasertext"style="color: #ddd;">Intens</div>
<div class="lasertext">Scale X</div> <div class="lasertext">Scale X</div>
<div class="lasertext">Scale X</div> <div class="lasertext">Scale X</div>
@ -410,7 +410,7 @@
<div class="spacer" style="height: 6px;"></div> <div class="spacer" style="height: 6px;"></div>
<!-- kpps knob --> <!-- kpps knob -->
<div><webaudio-knob id="kpps/1" diameter="60" min="0" max="55000" value="25000"></webaudio-knob></div> <div><webaudio-knob id="kpps/1" diameter="60" min="100" max="40000" value="25000"></webaudio-knob></div>
@ -429,9 +429,9 @@
<div class="spacer"></div> <div class="spacer"></div>
<!-- Angle, Offset X, Offset Y --> <!-- Angle, Offset X, Offset Y -->
<div><webaudio-knob id="angle/1" diameter="60" min="-1" max="1" value="0"></webaudio-knob></div> <div><webaudio-knob id="angle/1" diameter="60" min="0" max="360"value="0"></webaudio-knob></div>
<div><webaudio-knob id="loffset/X/1" diameter="60" min="-320" max="320" value="0"></webaudio-knob></div> <div><webaudio-knob id="loffset/X/1" diameter="60" min="-27000" max="27000" value="0"></webaudio-knob></div>
<div><webaudio-knob id="loffset/Y/1" diameter="60" min="-320" max="320" value="0"></webaudio-knob></div> <div><webaudio-knob id="loffset/Y/1" diameter="60" min="-27000" max="27000" value="0"></webaudio-knob></div>
<div class="lasertext">Angle</div> <div class="lasertext">Angle</div>
<div class="lasertext">Offset X</div> <div class="lasertext">Offset X</div>
<div class="lasertext">Offset Y</div> <div class="lasertext">Offset Y</div>
@ -444,8 +444,8 @@
<!-- Max global intensity, Scale X, Scale Y --> <!-- Max global intensity, Scale X, Scale Y -->
<div><webaudio-knob id="intens/1" diameter="60" min="0" max="255" value="255"></webaudio-knob></div> <div><webaudio-knob id="intens/1" diameter="60" min="0" max="255" value="255"></webaudio-knob></div>
<div><webaudio-knob id="scale/X/1" diameter="60" min="-10" max="10" value="0"></webaudio-knob></div> <div><webaudio-knob id="scale/X/1" diameter="60" min="0" max="200" value="50"></webaudio-knob></div>
<div><webaudio-knob id="scale/Y/1" diameter="60" min="-10" max="10" value="0"></webaudio-knob></div> <div><webaudio-knob id="scale/Y/1" diameter="60" min="0" max="200" value="50"></webaudio-knob></div>
<div class="lasertext"style="color: #ddd;">Intens</div> <div class="lasertext"style="color: #ddd;">Intens</div>
<div class="lasertext">Scale X</div> <div class="lasertext">Scale X</div>
<div class="lasertext">Scale X</div> <div class="lasertext">Scale X</div>
@ -494,7 +494,7 @@
<div class="spacer" style="height: 6px;"></div> <div class="spacer" style="height: 6px;"></div>
<!-- kpps knob --> <!-- kpps knob -->
<div><webaudio-knob id="kpps/2" diameter="60" min="0" max="55000" value="25000"></webaudio-knob></div> <div><webaudio-knob id="kpps/2" diameter="60" min="100" max="40000" value="25000"></webaudio-knob></div>
<!-- Laser 2 grid --> <!-- Laser 2 grid -->
<div class="lasergrid" style="background-image: url(knobs/lasergrid2.png)"> <div class="lasergrid" style="background-image: url(knobs/lasergrid2.png)">
@ -511,9 +511,9 @@
<div class="spacer"></div> <div class="spacer"></div>
<!-- Angle, Offset X, Offset Y --> <!-- Angle, Offset X, Offset Y -->
<div><webaudio-knob id="angle/2" diameter="60" min="-1" max="1" value="0"></webaudio-knob></div> <div><webaudio-knob id="angle/2" diameter="60" min="0" max="360" value="0"></webaudio-knob></div>
<div><webaudio-knob id="loffset/X/2" diameter="60" min="-320" max="320" value="0"></webaudio-knob></div> <div><webaudio-knob id="loffset/X/2" diameter="60" min="-27000" max="27000" value="0"></webaudio-knob></div>
<div><webaudio-knob id="loffset/Y/2" diameter="60" min="-320" max="320" value="0"></webaudio-knob></div> <div><webaudio-knob id="loffset/Y/2" diameter="60" min="-27000" max="27000" value="0"></webaudio-knob></div>
<div class="lasertext">Angle</div> <div class="lasertext">Angle</div>
<div class="lasertext">Offset X</div> <div class="lasertext">Offset X</div>
<div class="lasertext">Offset Y</div> <div class="lasertext">Offset Y</div>
@ -526,8 +526,8 @@
<!-- Max global intensity, Scale X, Scale Y --> <!-- Max global intensity, Scale X, Scale Y -->
<div><webaudio-knob id="intens/2" diameter="60" min="0" max="255" value="255"></webaudio-knob></div> <div><webaudio-knob id="intens/2" diameter="60" min="0" max="255" value="255"></webaudio-knob></div>
<div><webaudio-knob id="scale/X/2" diameter="60" min="-10" max="10" value="0"></webaudio-knob></div> <div><webaudio-knob id="scale/X/2" diameter="60" min="0" max="200" value="50"></webaudio-knob></div>
<div><webaudio-knob id="scale/Y/2" diameter="60" min="-10" max="10" value="0"></webaudio-knob></div> <div><webaudio-knob id="scale/Y/2" diameter="60" min="0" max="200" value="50"></webaudio-knob></div>
<div class="lasertext"style="color: #ddd;">Intens</div> <div class="lasertext"style="color: #ddd;">Intens</div>
<div class="lasertext">Scale X</div> <div class="lasertext">Scale X</div>
<div class="lasertext">Scale X</div> <div class="lasertext">Scale X</div>
@ -576,7 +576,7 @@
<div class="spacer" style="height: 6px;"></div> <div class="spacer" style="height: 6px;"></div>
<!-- kpps knob --> <!-- kpps knob -->
<div><webaudio-knob id="kpps/3" diameter="60" min="0" max="55000" value="25000"></webaudio-knob></div> <div><webaudio-knob id="kpps/3" diameter="60" min="100" max="40000" value="25000"></webaudio-knob></div>
<!-- Laser 3 grid --> <!-- Laser 3 grid -->
@ -594,9 +594,9 @@
<div class="spacer"></div> <div class="spacer"></div>
<!-- Angle, Offset X, Offset Y --> <!-- Angle, Offset X, Offset Y -->
<div><webaudio-knob id="angle/3" diameter="60" min="-1" max="1" value="0"></webaudio-knob></div> <div><webaudio-knob id="angle/3" diameter="60" min="0" max="360" value="0"></webaudio-knob></div>
<div><webaudio-knob id="loffset/X/3" diameter="60" min="-320" max="320" value="0"></webaudio-knob></div> <div><webaudio-knob id="loffset/X/3" diameter="60" min="-27000" max="27000" value="0"></webaudio-knob></div>
<div><webaudio-knob id="loffset/Y/3" diameter="60" min="-320" max="320" value="0"></webaudio-knob></div> <div><webaudio-knob id="loffset/Y/3" diameter="60" min="-27000" max="27000" value="0"></webaudio-knob></div>
<div class="lasertext">Angle</div> <div class="lasertext">Angle</div>
<div class="lasertext">Offset X</div> <div class="lasertext">Offset X</div>
<div class="lasertext">Offset Y</div> <div class="lasertext">Offset Y</div>
@ -609,8 +609,8 @@
<!-- Max global intensity, Scale X, Scale Y --> <!-- Max global intensity, Scale X, Scale Y -->
<div><webaudio-knob id="intens/3" diameter="60" min="0" max="255" value="255"></webaudio-knob></div> <div><webaudio-knob id="intens/3" diameter="60" min="0" max="255" value="255"></webaudio-knob></div>
<div><webaudio-knob id="scale/X/3" diameter="60" min="-10" max="10" value="0"></webaudio-knob></div> <div><webaudio-knob id="scale/X/3" diameter="60" min="0" max="200" value="50"></webaudio-knob></div>
<div><webaudio-knob id="scale/Y/3" diameter="60" min="-10" max="10" value="0"></webaudio-knob></div> <div><webaudio-knob id="scale/Y/3" diameter="60" min="0" max="200" value="50"></webaudio-knob></div>
<div class="lasertext"style="color: #ddd;">Intens</div> <div class="lasertext"style="color: #ddd;">Intens</div>
<div class="lasertext">Scale X</div> <div class="lasertext">Scale X</div>
<div class="lasertext">Scale X</div> <div class="lasertext">Scale X</div>