VEX V5 Python API
Public Member Functions | List of all members
vex.Line Class Reference

Inherits vex.TriDevice.

Public Member Functions

def __init__ (self, triport_port)
 Use this class when programming with a line follower. More...
 
def value (self, analogUnits=AnalogUnits.PCT)
 Gets the value of the line follower. More...
 

Constructor & Destructor Documentation

◆ __init__()

def vex.Line.__init__ (   self,
  triport_port 
)

Use this class when programming with a line follower.

Member Function Documentation

◆ value()

def vex.Line.value (   self,
  analogUnits = AnalogUnits.PCT 
)

Gets the value of the line follower.

Parameters
analogUnitsThe unit type of the value that is returned.
Returns
Returns an integer that represents the unit value specified by the parameter of the line follower.