wpilib Package

wpilib functions

ADIS16448_IMU(*args, **kwargs)

Overloaded function.

ADIS16470_IMU(*args, **kwargs)

Overloaded function.

ADXL345_I2C(port, range, deviceAddress)

ADXL345 Accelerometer on I2C.

ADXL345_SPI(port, range)

ADXL345 Accelerometer on SPI.

ADXL362(*args, **kwargs)

ADXL362 SPI Accelerometer.

ADXRS450_Gyro(*args, **kwargs)

Use a rate gyro to return the robots heading relative to a starting position.

AddressableLED(port)

A class for driving addressable LEDs, such as WS2812s and NeoPixels.

AnalogAccelerometer(*args, **kwargs)

Handle operation of an analog accelerometer.

AnalogEncoder(*args, **kwargs)

Class for supporting continuous analog encoders, such as the US Digital MA3.

AnalogGyro(*args, **kwargs)

Use a rate gyro to return the robots heading relative to a starting position.

AnalogInput(channel)

Analog input class.

AnalogOutput(channel)

MXP analog output class.

AnalogPotentiometer(*args, **kwargs)

Class for reading analog potentiometers.

AnalogTrigger(*args, **kwargs)

Overloaded function.

AnalogTriggerOutput(trigger, outputType)

Class to represent a specific output from an analog trigger.

AnalogTriggerType(value)

Members:

BuiltInAccelerometer(range)

Built-in accelerometer.

CAN(*args, **kwargs)

High level class for interfacing with CAN devices conforming to the standard CAN spec.

CANData()

CANStatus()

CameraServer()

Provides a way to launch an out of process cscore-based camera service instance, for streaming or for image processing.

Color(*args, **kwargs)

Represents colors that can be used with Addressable LEDs.

Color8Bit(*args, **kwargs)

Represents colors that can be used with Addressable LEDs.

Compressor(*args, **kwargs)

Class for operating a compressor connected to a pneumatics module.

CompressorConfigType(value)

Members:

Counter(*args, **kwargs)

Class for counting the number of ticks on a digital input channel.

DMC60(channel)

Digilent DMC 60 Motor %Controller.

DSControlWord()

A wrapper around Driver Station control word.

DataLogManager

Centralized data log that provides automatic data log file management.

DigitalGlitchFilter()

Class to enable glitch filtering on a set of digital inputs.

DigitalInput(channel)

Class to read a digital input.

DigitalOutput(channel)

Class to write to digital outputs.

DigitalSource()

DigitalSource Interface.

DoubleSolenoid(*args, **kwargs)

DoubleSolenoid class for running 2 channels of high voltage Digital Output on a pneumatics module.

DriverStation

Provide access to the network communication data to / from the Driver Station.

DutyCycle(source)

Class to read a duty cycle PWM input.

DutyCycleEncoder(*args, **kwargs)

Class for supporting duty cycle/PWM encoders, such as the US Digital MA3 with PWM Output, the CTRE Mag Encoder, the Rev Hex Encoder, and the AM Mag Encoder.

Encoder(*args, **kwargs)

Class to read quad encoders.

Field2d()

2D representation of game field for dashboards.

FieldObject2d

Game field object on a Field2d.

I2C(port, deviceAddress)

I2C bus interface class.

IterativeRobotBase(period)

IterativeRobotBase implements a specific type of robot program framework, extending the RobotBase class.

Jaguar(channel)

Luminary Micro / Vex Robotics Jaguar Motor %Controller with PWM control.

Joystick(port)

Handle input from standard Joysticks connected to the Driver Station.

LiveWindow

The LiveWindow class is the public interface for putting sensors and actuators on the LiveWindow.

Mechanism2d(width, height[, backgroundColor])

Visual 2D representation of arms, elevators, and general mechanisms through a node-based API.

MechanismLigament2d

Ligament node on a Mechanism2d.

MechanismObject2d

Common base class for all Mechanism2d node types.

MechanismRoot2d

Root Mechanism2d node.

MotorControllerGroup(*args)

MotorSafety()

This base class runs a watchdog timer and calls the subclass's StopMotor() function if the timeout expires.

NidecBrushless(pwmChannel, dioChannel)

Nidec Brushless Motor.

Notifier(handler)

Create a Notifier for timer event notification.

PS4Controller(port)

Handle input from PS4 controllers connected to the Driver Station.

PWM(channel[, registerSendable])

Class implements the PWM generation in the FPGA.

PWMMotorController(name, channel)

Common base class for all PWM Motor Controllers.

PWMSparkMax(channel)

REV Robotics SPARK MAX Motor %Controller.

PWMTalonFX(channel)

Cross the Road Electronics (CTRE) %Talon FX Motor %Controller with PWM control.

PWMTalonSRX(channel)

Cross the Road Electronics (CTRE) %Talon SRX Motor %Controller with PWM control.

PWMVenom(channel)

Playing with Fusion Venom Smart Motor with PWM control.

PWMVictorSPX(channel)

Cross the Road Electronics (CTRE) %Victor SPX Motor %Controller with PWM control.

PneumaticHub(*args, **kwargs)

Overloaded function.

PneumaticsBase()

PneumaticsControlModule(*args, **kwargs)

Overloaded function.

PneumaticsModuleType(value)

Members:

PowerDistribution(*args, **kwargs)

Class for getting voltage, current, temperature, power and energy from the CTRE Power Distribution Panel (PDP) or REV Power Distribution Hub (PDH).

Preferences

The preferences class provides a relatively simple way to save important values to the roboRIO to access the next time the roboRIO is booted.

Relay(channel, direction)

Class for Spike style relay outputs.

RobotBase()

Implement a Robot Program framework.

RobotController

RobotState

RuntimeType(value)

Members:

SD540(channel)

Mindsensors SD540 Motor %Controller.

SPI(port)

SPI bus interface class.

SendableBuilderImpl()

SendableChooser()

The SendableChooser class is a useful tool for presenting a selection of options to the SmartDashboard.

SendableChooserBase

This class is a non-template base class for SendableChooser.

SensorUtil

Stores most recent status information as well as containing utility functions for checking channels and error processing.

SerialPort(*args, **kwargs)

Driver for the RS-232 serial port on the roboRIO.

Servo(channel)

Standard hobby style servo.

SmartDashboard

Solenoid(*args, **kwargs)

Solenoid class for running high voltage Digital Output on a pneumatics module.

Spark(channel)

REV Robotics SPARK Motor %Controller.

SynchronousInterrupt(*args, **kwargs)

Class for handling synchronous (blocking) interrupts.

Talon(channel)

Cross the Road Electronics (CTRE) %Talon and %Talon SR Motor %Controller.

TimedRobot([period])

TimedRobot implements the IterativeRobotBase robot program framework.

Timer()

A timer class.

TimesliceRobot(robotPeriodicAllocation, ...)

TimesliceRobot extends the TimedRobot robot program framework to provide timeslice scheduling of periodic functions.

Tracer()

A class for keeping track of how much time it takes for different parts of code to execute.

Ultrasonic(*args, **kwargs)

Ultrasonic rangefinder class.

Victor(channel)

Vex Robotics %Victor 888 Motor %Controller.

VictorSP(channel)

Vex Robotics %Victor SP Motor %Controller.

Watchdog(timeout, callback)

A class that's a wrapper around a watchdog timer.

XboxController(port)

Handle input from Xbox 360 or Xbox One controllers connected to the Driver Station.