robotpy_toolkit_7407.oi package

Submodules

robotpy_toolkit_7407.oi.buttons module

class robotpy_toolkit_7407.oi.buttons.AxisButton(controller_id: int, axis_id: int, range_min: float = -1, range_max: float = 1)

Bases: _Button

Wrapper for wpilib axis button

axis_id: int
range_max: float = 1
range_min: float = -1
class robotpy_toolkit_7407.oi.buttons.DefaultButton(controller_id: int, button_id: int)

Bases: _Button

Wrapper for wpilib button

button_id: int

robotpy_toolkit_7407.oi.controllermap module

class robotpy_toolkit_7407.oi.controllermap.LogitechController

Bases: object

Mappings for Logitech Controller ports

A = 2
B = 3
LB = 5
LT = 7
L_JOY = (0, 1)
RB = 6
RT = 8
R_JOY = (2, 3)
SELECT = 9
START = 10
X = 1
Y = 4
class robotpy_toolkit_7407.oi.controllermap.XBoxController

Bases: object

Mappings for XBox Controller ports

A = 1
B = 2
LB = 5
LT = -2
L_JOY = (0, 1)
RB = 6
RT = -3
R_JOY = (4, 5)
SELECT = 7
START = 8
X = 3
Y = 4

robotpy_toolkit_7407.oi.joysticks module

class robotpy_toolkit_7407.oi.joysticks.JoystickAxis(controller_id: int, axis_id: int)

Bases: object

Wrapper for wpilib joystick button

axis_id: int
controller_id: int
property value: float

Gets the value of the axis selected

Returns:

float: The value between -1 and 1 as a float

Module contents