Closedown

This commit is contained in:
gac-x03da
2018-04-17 19:17:27 +02:00
parent b394ae6ebd
commit 0c8f9cff52

View File

@@ -12,7 +12,7 @@ ZIGZAG (BOOLEAN)
LATENCY (float) in seconds
SENSORS (list of devices)
"""
import traceback
THETA_RANGE = (-9.0, 81.0)
THETA_STEP = 1.0
PHI_RANGE = (-40.0, +40.0)
@@ -48,6 +48,7 @@ PHI_NSTEPS = int((PHI_RANGE[1] - PHI_RANGE[0]) / PHI_STEP) + 1
phi_positions = [PHI_RANGE[0] + PHI_STEP * i for i in range(PHI_NSTEPS)]
print "phi_positions: ", phi_positions
try:
for phi in phi_positions:
ManipulatorPhi.write(phi)
@@ -60,7 +61,8 @@ try:
# print time.time(), " cscan: exception at (theta, phi) = ({th}, {ph})".format(th=ManipulatorTheta.read(), ph=phi)
if ZIGZAG:
THETA_RANGE = (THETA_RANGE[1], THETA_RANGE[0])
except:
traceback.print_exc()
finally:
if ENDSCAN:
after_scan()