Skip to main content

Robot library

Here is everything you can do with the Hexapod

Linear movement

Hexapod can go forward or backward

main.py
robot.forward(speed, duration)
robot.backward(speed, duration)

speed numerical value between 0 (MIN_SPEED) and 100 (MAX_SPEED)

duration numerical value - duration of movement (-1 for infinity)

Rotation

Hexapod can rotate left or right

main.py
robot.left(speed, duration)
robot.right(speed, duration)

speed numerical value between 0 (MIN_SPEED) and 100 (MAX_SPEED)

duration numerical value - duration of movement (-1 for infinity)