vex.bumper_switch_sensor package

VEX Bumper Switch Sensor.

class vex.bumper_switch_sensor.Bumper(index: Ports)[source]

Bases: Device

Bumper Switch Sensor.

ROBOT MESH PYTHON B:

robotmesh.com/studio/content/docs/vexiq-python_b/html/classvex_1_1_bumper.html

pressing() bool[source]

Return Bumper’s pressed status.

ROBOT MESH PYTHON B:

Get the pressed status of the bumper device.

Returns True if pressed, False otherwise.