class Gimbal(object): def __init__(self): self.servo_x = ServoMotor(address=103) self.servo_z = ServoMotor(address=104) def set_orientation(self, angle_x, angle_z): self.servo_x.set_angle(angle_x) self.servo_z.set_angle(angle_z)
def __init__(self): self.joints = [ StepperMotor(address=101), StepperMotor(address=102), StepperMotor(address=103), StepperMotor(address=104), ServoMotor(address=105), StepperMotor(address=105) ] self.gripper = Gripper(address=106)
def __init__(self): self.servo_x = ServoMotor(address=103) self.servo_z = ServoMotor(address=104)