rover/connections.py
def _xboxVals(self):
		'''
		Parses values from the Xbox controller. By default the speed is halved, and the "A" button
		is used as a boost button. The D-pad controls the LED screen

		'''

		if self.joy.connected():
			if self.joy.dpadUp():      self.led = 0
			elif self.joy.dpadRight(): self.led = 1
			elif self.joy.dpadDown():  self.led = 2
			elif self.joy.dpadLeft():  self.led = 3

			v,r = int(self.joy.leftY()*50),int(self.joy.rightX()*100)
			if self.joy.A(): v *= 2

			return (v,r)
		else:
			return

		Parses values from the Xbox controller. By default the speed is halved, and the "A" button
		is used as a boost button. The D-pad controls the LED screen

		
Parses values from the Xbox controller. By default the speed is halved, and the "A" button
is used as a boost button. The D-pad controls the LED screen
Parses values from the Xbox controller . By default the speed is halved and the " A " button is used as a boost button . The D - pad controls the LED screen
def _xboxVals(self):
		if self.joy.connected():
			if self.joy.dpadUp():      self.led = 0
			elif self.joy.dpadRight(): self.led = 1
			elif self.joy.dpadDown():  self.led = 2
			elif self.joy.dpadLeft():  self.led = 3
			v,r = int(self.joy.leftY()*50),int(self.joy.rightX()*100)
			if self.joy.A(): v *= 2
			return (v,r)
		else:
			return
def _xboxVals ( self ) : if self . joy . connected ( ) : if self . joy . dpadUp ( ) : self . led = 0 elif self . joy . dpadRight ( ) : self . led = 1 elif self . joy . dpadDown ( ) : self . led = 2 elif self . joy . dpadLeft ( ) : self . led = 3 v , r = int ( self . joy . leftY ( ) * 50 ) , int ( self . joy . rightX ( ) * 100 ) if self . joy . A ( ) : v *= 2 return ( v , r ) else : return
Parses values from the Xbox controller.
Parses values from the Xbox controller .
'''
		Parses values from the Xbox controller. By default the speed is halved, and the "A" button
		is used as a boost button. The D-pad controls the LED screen

		'''
self