Home » Programming (API) » Programming the MRPi1 with python » forwardC() – API python

forwardC()

Description

Move the robot MRPi1 forward with distance and speed control.

Syntax

forwardC(speed, distance)

Parameters

speed : the speed of the robot can be between 0 to 100.

distance : move distance (ticks unit).

Returns

None

Exemple

# move forward, distance = 1000
forward(20, 1000)