rover/motor_controller.py
def sendMotorDuty(self, motorID, speed):
		'''
		Wrapper method for an easier interface to control the drive motors,
		
		sends open-loop commands to the motors

		:param int motorID: number that corresponds to each physical motor
		:param int speed: Speed for each motor, range from 0-127

		'''
		self.errorCheck()
		addr = self.address[int(motorID/2)]
		if speed > 0: 
			if not motorID % 2: command = self.rc.ForwardM1
			else:               command = self.rc.ForwardM2
		else: 
			if not motorID % 2: command = self.rc.BackwardM1
			else:               command = self.rc.BackwardM2

		speed = abs(int(speed * 127))
		
		return command(addr,speed)

		Wrapper method for an easier interface to control the drive motors,
		
		sends open-loop commands to the motors

		:param int motorID: number that corresponds to each physical motor
		:param int speed: Speed for each motor, range from 0-127

		
Wrapper method for an easier interface to control the drive motors,
sends open-loop commands to the motors
Wrapper method for an easier interface to control the drive motors sends open - loop commands to the motors
def sendMotorDuty(self, motorID, speed):
		self.errorCheck()
		addr = self.address[int(motorID/2)]
		if speed > 0: 
			if not motorID % 2: command = self.rc.ForwardM1
			else:               command = self.rc.ForwardM2
		else: 
			if not motorID % 2: command = self.rc.BackwardM1
			else:               command = self.rc.BackwardM2
		speed = abs(int(speed * 127))
		return command(addr,speed)
def sendMotorDuty ( self , motorID , speed ) : self . errorCheck ( ) addr = self . address [ int ( motorID / 2 ) ] if speed > 0 : if not motorID % 2 : command = self . rc . ForwardM1 else : command = self . rc . ForwardM2 else : if not motorID % 2 : command = self . rc . BackwardM1 else : command = self . rc . BackwardM2 speed = abs ( int ( speed * 127 ) ) return command ( addr , speed )
Wrapper method for an easier interface to control the drive motors,
sends open-loop commands to the motors
Wrapper method for an easier interface to control the drive motors sends open - loop commands to the motors
'''
		Wrapper method for an easier interface to control the drive motors,
		
		sends open-loop commands to the motors

		:param int motorID: number that corresponds to each physical motor
		:param int speed: Speed for each motor, range from 0-127

		'''
self
motorID
number that corresponds to each physical motor
number that corresponds to each physical motor
speed
Speed for each motor, range from 0-127
Speed for each motor range from 0 - 127