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
def __init__(self, ard, motorL=(1, 0), motorR=(1, 1)): self.motorL = get_motor(ard, motorL) self.motorR = get_motor(ard, motorR)
def __init__(self, ard, motorL=(1,0), motorR=(1,1)): self.motorL = get_motor(ard, motorL) self.motorR = get_motor(ard, motorR)
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))