rcute_cozmars.motor¶
-
class
rcute_cozmars.motor.Motors(robot)¶ 警告
Be careful not to drop the robot off table when it moves!
-
set_speed(value, duration=None)¶ 参数: - value (float / tuple) – -1~1. It can be a number to set speed for both motors, or a two-element tuple to set left and right motors respectively
- duration (float) – duration in seconds of movement. default is None for non-stop until
stop()is called or the speed is set to 0
-
speed¶ get/set speed of the motor, the tuple composed of two numbers -1~1 represents the speed of the left and right motors.
-
stop()¶
-