import supply_voltage #导入它，开启电量指示呼吸灯功能
import motor
import time


左轮 = motor.smart_motor(1, direction=False)
左轮.set_soft_break(True)
右轮 = motor.smart_motor(2, direction=True)
右轮.set_soft_break(True)
机械臂 = motor.smart_motor(4, direction=True)
机械臂.set_soft_break(True)
左轮.openloop_turn(100)
右轮.openloop_turn(100)
time.sleep(0.5)
左轮.openloop_turn(0)
右轮.openloop_turn(0)
time.sleep(0.5)
左轮.openloop_turn(50)
右轮.openloop_turn((-50))
time.sleep(0.5)
左轮.openloop_turn(0)
右轮.openloop_turn(0)
机械臂.openloop_turn(50)
time.sleep(0.2)
机械臂.openloop_turn(0)
左轮.openloop_turn((-100))
右轮.openloop_turn((-100))
time.sleep(0.5)
左轮.openloop_turn(0)
右轮.openloop_turn(0)
