Script execution
This commit is contained in:
@@ -124,14 +124,14 @@ for setpoint1 in range(0, loopTimes):
|
||||
end = startDefault
|
||||
start = setpoint2 - direction
|
||||
direction = -1.0
|
||||
print 'End of span, changing direction to ' + str(direction)
|
||||
print 'End of span ('+setpoint2+'), changing direction to ' + str(direction)
|
||||
break
|
||||
if endL>0.0 or ( direction < 0.0 and setpoint2 <= end+1 ):
|
||||
#invert direction and swap start with end of translation
|
||||
end = endDefault
|
||||
start = setpoint2 - direction
|
||||
direction = 1.0
|
||||
print 'End of span, changing direction to ' + str(direction)
|
||||
print 'End of span ('+setpoint2+'), changing direction to ' + str(direction)
|
||||
break
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user