def moveMEVToOpenLimit(self):
		if testEnded():
			return
		self.MEVStepper.setVelocity(self.MEVStepper.defaultVelocity)
		while not self.MEVOpenLimitHit() and not testEnded():
			time.sleep(0.001)			  
		self.MEVStepper.setVelocity(0)
	def moveVentToOpenLimit(self):
		if self.ventStepper is None:
			return

		if testEnded():
			return
		self.ventStepper.setVelocity(-self.ventStepper.defaultVelocity)
		while not self.VentOpenLimitHit() and not testEnded():
			time.sleep(0.001)			  
		self.ventStepper.setVelocity(0)
Esempio n. 3
0
 def moveMEVByAngle(self, angleDegrees, velocity):
     encoderTarget = self.encoder.getPosition() + (
         angleDegrees * ValveControl._ENCODER_COUNT_PER_DEGREES)
     #towards closed position
     if (angleDegrees < 0):
         self.MEVStepper.setVelocity(-velocity)
         while self.encoder.getPosition(
         ) > encoderTarget and not self.MEVCloseLimitHit(
         ) and not testEnded():
             time.sleep(0.001)
     #towards open position
     elif (angleDegrees > 0):
         self.MEVStepper.setVelocity(velocity)
         while self.encoder.getPosition(
         ) < encoderTarget and not self.MEVOpenLimitHit() and not testEnded(
         ):
             time.sleep(0.001)
     self.MEVStepper.setVelocity(0)