Table of Contents

setlinefollowerparameter()

Function Definition: setlinefollowerparameter(F = 35, T1 = 40, T2 = 10)

Parameters

NameTypeDescriptionExpected ValuesDefault Value
FintSet forward speed while doing line following0 to 10035
T1intSet forward speed of motor while doing turn0 to 10040
T2intSet backward speed of motor while doing turn0 to 10010

Description

The parameters in this function are the same as the regular line following function in the “Robot Extension” of the Quarky board. They define the speeds of motors in different scenarios while following the black line on a white path.

F: The speed with which the robot moves forward when both detect white.
T1 and T2: Speeds of the forward and reverse moving motors respectively to turn the robot along the black line gently.

setlinefollowerparameter(35,40,10)

Example

There are no examples documented for this article.