VEX IQ Python API
Public Member Functions | List of all members
vex.Bumper Class Reference
Inheritance diagram for vex.Bumper:
vex.Device

Public Member Functions

def __init__ (self, index)
 
def pressing (self)
 Get the pressed status of the bumper device. More...
 

Detailed Description

 Creates a new bumper object on the port specified in the parameter.
 @param index The port index for this bumper. The index is zero-based.

Constructor & Destructor Documentation

◆ __init__()

def vex.Bumper.__init__ (   self,
  index 
)

Member Function Documentation

◆ pressing()

def vex.Bumper.pressing (   self)

Get the pressed status of the bumper device.

Returns
True if pressed, False otherwise.