Motor Test 3: Now it should work
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#TestingList for pshell: configuration properties
|
||||
#Mon Oct 19 15:22:19 CEST 2015
|
||||
#Mon Oct 19 15:33:24 CEST 2015
|
||||
customPanel=Kollimators
|
||||
showEnabledTestsOnly=true
|
||||
listFilter=LabTests2
|
||||
|
||||
@@ -87,7 +87,7 @@ def startTest(testName, DEVICE, params):
|
||||
test.sendFeedback( ret, success)
|
||||
return
|
||||
|
||||
direction = 1.0
|
||||
direction = 1
|
||||
countSteps = 0
|
||||
test.log('Starting testing sequence')
|
||||
count = 0
|
||||
@@ -142,12 +142,12 @@ def startTest(testName, DEVICE, params):
|
||||
#check if arrived to R1 or R2
|
||||
if endH:
|
||||
#invert direction and swap start with end of translation
|
||||
direction = -1.0
|
||||
direction = -1
|
||||
test.log('Reached R2 switch, changing target to R1')
|
||||
break
|
||||
elif endL:
|
||||
#invert direction and swap start with end of translation
|
||||
direction = 1.0
|
||||
direction = 1
|
||||
test.log('Reached R1 switch, changing target to R2')
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user