Table of Contents

turnrobotusingir()

Function Definition: turnrobotusingir(turn_direction = 'left', next_line = 'next')

Parameters

NameTypeDescriptionExpected ValuesDefault Value
turn_directionstringSet direction of robot'left', 'right''left'
next_linestringSet next line for turn'next', '2nd' or '3rd''next'

Description

Using this function, you can turn the robot left or right in the arena to follow the next black line. You need to set the threshold of the IR and adjust the robot turning speed.

turnrobotusingir(‘left’, ‘next’)

Note: You need to set the threshold of the IR to adjust the robot's turning speed.

Example

There are no examples documented for this article.