Motor Test 3: Now it should work

This commit is contained in:
boccioli_m
2015-10-19 15:38:10 +02:00
parent eb2afd0221
commit 77ad15eadf
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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