rover/robot.py
def cornerPosControl(self, tar_enc):
		'''
		Takes the target angle and gets what encoder tick that value is for position control

		:param list [int] tar_enc: List of target angles in degrees for each corner
		'''
		tick = []
		for i in range(4):
			tick.append(self.deg2tick(tar_enc[i],self.enc_min[i],self.enc_max[i]))
		
		enc = self.getCornerEnc()
		for i in range(4):
			if abs(tick[i] - enc[i]) < 30: tick[i] = 0          # stopping the motor when it is close to target reduced motor jitter
		
		self.cornerToPosition(tick)

		Takes the target angle and gets what encoder tick that value is for position control

		:param list [int] tar_enc: List of target angles in degrees for each corner
		
Takes the target angle and gets what encoder tick that value is for position control
:param list [int] tar_enc: List of target angles in degrees for each corner
Takes the target angle and gets what encoder tick that value is for position control : param list [ int ] tar_enc : List of target angles in degrees for each corner
def cornerPosControl(self, tar_enc):
		tick = []
		for i in range(4):
			tick.append(self.deg2tick(tar_enc[i],self.enc_min[i],self.enc_max[i]))
		enc = self.getCornerEnc()
		for i in range(4):
			if abs(tick[i] - enc[i]) < 30: tick[i] = 0          
		self.cornerToPosition(tick)
def cornerPosControl ( self , tar_enc ) : tick = [ ] for i in range ( 4 ) : tick . append ( self . deg2tick ( tar_enc [ i ] , self . enc_min [ i ] , self . enc_max [ i ] ) ) enc = self . getCornerEnc ( ) for i in range ( 4 ) : if abs ( tick [ i ] - enc [ i ] ) < 30 : tick [ i ] = 0 self . cornerToPosition ( tick )
Takes the target angle and gets what encoder tick that value is for position control
:param list [int] tar_enc: List of target angles in degrees for each corner
Takes the target angle and gets what encoder tick that value is for position control : param list [ int ] tar_enc : List of target angles in degrees for each corner
'''
		Takes the target angle and gets what encoder tick that value is for position control

		:param list [int] tar_enc: List of target angles in degrees for each corner
		''' # stopping the motor when it is close to target reduced motor jitter
self
tar_enc