示例#1
0
 def __init__(self,
              ard,
              motorL=params.omni_l,
              motorR=params.omni_r,
              motorB=params.omni_b):
     self.motorL = get_motor(ard, motorL)  # front left
     self.motorR = get_motor(ard, motorR)  # front right
     self.motorB = get_motor(ard, motorB)  # back
示例#2
0
 def __init__(self, ard, motorL=(1, 0), motorR=(1, 1)):
     self.motorL = get_motor(ard, motorL)
     self.motorR = get_motor(ard, motorR)
示例#3
0
文件: drive.py 项目: garywang/tart
 def __init__(self, ard, motorL=params.omni_l, motorR=params.omni_r, motorB=params.omni_b):
     self.motorL = get_motor(ard, motorL) # front left
     self.motorR = get_motor(ard, motorR) # front right
     self.motorB = get_motor(ard, motorB) # back
示例#4
0
文件: drive.py 项目: garywang/tart
 def __init__(self, ard, motorL=(1,0), motorR=(1,1)):
     self.motorL = get_motor(ard, motorL)
     self.motorR = get_motor(ard, motorR)
示例#5
0
 def __init__(self):
     self.ard = arduino.ArduinoThread()
     self.map = mapping.Map()
     self.sm = state_machine.StateMachine(self)
     self.drive = pidrive.PIDriveController(self.ard, self.map)
     self.roller = motor.get_motor(self.ard, (1, 0))
示例#6
0
 def __init__(self):
     self.ard = arduino.ArduinoThread()
     self.map = mapping.Map()
     self.sm = state_machine.StateMachine(self)
     self.drive = pidrive.PIDriveController(self.ard, self.map)
     self.roller = motor.get_motor(self.ard, (1, 0))