Пример #1
0
 def __init__(self, js_file='/dev/input/js0'):
     Joystick.__init__(self, js_file)
     # direction gives the direction of travel. Defined in terms of r and theta
     self.direction_vector = (0, 0)
     # rotation tells the robot to rotate x degrees
     self.rotation_vector = (0, 0)