Startup
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
# look at the centroid position (BPM or screen) downstream of the gun.
|
||||
|
||||
import datetime
|
||||
import ch.psi.utils.Chrono as Chrono
|
||||
|
||||
mode = "camtool" # "camtool", "bpm" or "direct"
|
||||
camera_name = "simulation"
|
||||
@@ -52,9 +53,14 @@ if mode == "camtool":
|
||||
#camtool.stop()
|
||||
#camtool.startPipeline(camera_name, 0, use_background, None, 0.0, None)
|
||||
#camtool.startReceiver();
|
||||
c = Chrono()
|
||||
|
||||
print "t1 = " , c.ellapsed
|
||||
camtool.start(camera_name, 0, use_background, None, 0.0, None)
|
||||
print "t2 = " , c.ellapsed
|
||||
if camtool.value is not None: print "Started " , camtool.value.getTimestamp()
|
||||
wait_camtool_message()
|
||||
print "t3 = " , c.ellapsed
|
||||
print "OK"
|
||||
else:
|
||||
if mode == "bpm":
|
||||
|
||||
Reference in New Issue
Block a user