Home » back_mm() – API python

back_mm()

Description

Move the robot back with distance and speed control.

Polling function.

Syntax

back_mm(speed, millimeter distance)

Parameters

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

distance : move distance (millimeter unit).

Returns

None

 

Exemple for MRPi1 robot

from mrpi1_lib import *
import time

print "Test forward_mm"

controlEnable()
back_mm(10, 100)
  • speed : 10
  • distance : 100 mm

Exemple for MRPiZ robot

  • speed : 10
  • distance : 100 mm
from mrpiZ_lib import *
import time

print "Test forward_mm"

controlEnable()
back_mm(10, 100)