tr2023-robot/test_by_motor.py

14 lines
306 B
Python
Raw Normal View History

2023-05-27 09:30:02 +00:00
from RobotCompletCode import MotorizedPlatform
m = MotorizedPlatform()
def frontLeft(speed):
m.setSpeed({"frontLeft":speed})
def frontRight(speed):
m.setSpeed({"frontRight":speed})
def backLeft(speed):
m.setSpeed({"backLeft":speed})
def backRight(speed):
m.setSpeed({"backRight":speed})