tracer shutdown order
This commit is contained in:
parent
23a07470e6
commit
e45ab18f5d
14 changed files with 80 additions and 60 deletions
|
|
@ -184,6 +184,7 @@ def SceneChange(newscene):
|
|||
# Change current laser and send "/scim lasernumber to each plugin"
|
||||
def NoteOn(note):
|
||||
|
||||
print()
|
||||
print("NoteOn", note)
|
||||
# Change laser client
|
||||
if note < 8:
|
||||
|
|
@ -201,7 +202,7 @@ def NoteOn(note):
|
|||
gstt.Laser = note -24
|
||||
print("Current Laser switched to", gstt.Laser)
|
||||
plugins.sendWSall("/status Laser " + str(gstt.Laser))
|
||||
plugins.SendAll(["/scim", str(gstt.Laser), 1])
|
||||
plugins.SendAll("/scim "+str(gstt.Laser))
|
||||
print("sending cropper data..")
|
||||
plugins.sendWSall("/loffset/X/" + str(gstt.Laser) +" " +str(gstt.centerX[gstt.Laser]))
|
||||
plugins.sendWSall("/loffset/Y/" + str(gstt.Laser) +" " +str(gstt.centerY[gstt.Laser]))
|
||||
|
|
@ -299,6 +300,7 @@ def handler(oscpath, args):
|
|||
|
||||
|
||||
elif oscpath[1] == "noteon":
|
||||
|
||||
NoteOn(int(args[0]))
|
||||
|
||||
|
||||
|
|
@ -715,6 +717,12 @@ def LJautokill():
|
|||
|
||||
log.warn("LJ stopping...")
|
||||
print(gstt.LaserNumber,"Tracers launched")
|
||||
|
||||
for laser in range(gstt.LaserNumber):
|
||||
if gstt.debug > 0:
|
||||
print('Shutdown order for tracer '+str(laser), 9)
|
||||
r.set('/order/'+str(laser), 9)
|
||||
|
||||
lasernumber= gstt.LaserNumber -1
|
||||
log.warn("Ending tracer0...")
|
||||
worker0.join()
|
||||
|
|
@ -727,7 +735,7 @@ def LJautokill():
|
|||
if lasernumber >2:
|
||||
log.warn("Ending tracer3...")
|
||||
worker3.join()
|
||||
|
||||
|
||||
log.warn("Laser feedbacks resetting...")
|
||||
for laserid in range(0,lasernumber+1):
|
||||
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@ def Restart(name):
|
|||
def Start(name):
|
||||
|
||||
# get Plugin configuration.
|
||||
print("plugins starting ",name)
|
||||
command = Command(name)
|
||||
|
||||
sendWSall("/status Starting "+name+"...")
|
||||
|
|
@ -206,6 +207,8 @@ def SendAll(oscpath):
|
|||
|
||||
for plugin in list(gstt.plugins.keys()):
|
||||
if gstt.debug > 0:
|
||||
print("plugin",plugin)
|
||||
print('oscpath', oscpath)
|
||||
print("sending /"+plugin+oscpath,"to", plugin)
|
||||
print("sending /"+plugin+oscpath[0],"to", plugin)
|
||||
#sendWSall("/"+ plugin + "/start 0")
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ This tracer include an enhanced version (support for several lasers) of the ethe
|
|||
6 : Max Intensity Change = reread redis key /intensity
|
||||
7 : kpps change = reread redis key /kpps
|
||||
8 : color balance change = reread redis keys /red /green /blue
|
||||
9 : shutdown
|
||||
|
||||
|
||||
- Managing Etherdream DACs :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue