wpilib Package

This is the core of WPILib.

wpilib.AccumulatorResult Structure for holding the values stored in an accumulator.
wpilib.ADXL345_I2C(port, range) ADXL345 accelerometer device via i2c
wpilib.ADXL345_SPI(port, range) ADXL345 accelerometer device via spi
wpilib.ADXL362(range[, port]) ADXL362 SPI Accelerometer.
wpilib.ADXRS450_Gyro([port]) Use a rate gyro to return the robots heading relative to a starting position.
wpilib.AnalogAccelerometer(channel) Analog Accelerometer
wpilib.AnalogGyro(channel[, …]) Interface to a gyro device via an AnalogInput
wpilib.AnalogInput(channel) Analog input
wpilib.AnalogOutput(channel) Analog output
wpilib.AnalogPotentiometer(channel) Reads a potentiometer via an AnalogInput
wpilib.AnalogTrigger(channel) Converts an analog signal into a digital signal
wpilib.AnalogTriggerOutput(…) Represents a specific output from an AnalogTrigger
wpilib.BuiltInAccelerometer([range]) Built-in accelerometer device
wpilib.CameraServer Provides a way to launch an out of process cscore-based camera service instance, for streaming or for image processing.
wpilib.Compressor([module]) Class for operating a compressor connected to a PCM (Pneumatic Control Module).
wpilib.ControllerPower Old Controller PR class.
wpilib.Counter(*args, **kwargs) Counts the number of ticks on a DigitalInput channel.
wpilib.DigitalGlitchFilter() Class to enable glitch filtering on a set of digital inputs.
wpilib.DigitalInput(channel) Reads a digital input.
wpilib.DigitalOutput(channel) Writes to a digital output
wpilib.DigitalSource() DigitalSource Interface.
wpilib.DMC60(channel: int) Digilent DMC 60 Speed Controller.
wpilib.DoubleSolenoid(*args, …) Controls 2 channels of high voltage Digital Output on the PCM.
wpilib.DriverStation() Provide access to the network communication data to / from the Driver Station.
wpilib.Encoder(*args, **kwargs) Class to read quadrature encoders.
wpilib.Filter(source) Superclass for filters
wpilib.GearTooth(channel[, …]) Interface to the gear tooth sensor supplied by FIRST
wpilib.GyroBase() GyroBase is the common base class for Gyro implementations such as AnalogGyro.
wpilib.I2C(port, deviceAddress[, simPort]) I2C bus interface class.
wpilib.InterruptableSensorBase() Base for sensors to be used with interrupts
wpilib.IterativeRobot() IterativeRobot implements the IterativeRobotBase robot program framework.
wpilib.IterativeRobotBase() IterativeRobotBase implements a specific type of robot program framework, extending the RobotBase class.
wpilib.Jaguar(channel) Texas Instruments / Vex Robotics Jaguar Speed Controller as a PWM device.
wpilib.Joystick(port) Handle input from standard Joysticks connected to the Driver Station.
wpilib.LinearDigitalFilter(…) This class implements a linear, digital filter.
wpilib.LiveWindow The public interface for putting sensors and actuators on the LiveWindow.
wpilib.LiveWindowSendable A special type of object that can be displayed on the live window.
wpilib.MotorSafety() Provides mechanisms to safely shutdown motors if they aren’t updated often enough.
wpilib.NidecBrushless(…) Nidec Brushless Motor
wpilib.PIDController(Kp, Ki, …) Can be used to control devices via a PID Control Loop.
wpilib.PowerDistributionPanel([…]) Use to obtain voltage, current, temperature, power, and energy from the
wpilib.Preferences() Provides a relatively simple way to save important values to the roboRIO to access the next time the roboRIO is booted.
wpilib.PWM(channel) Raw interface to PWM generation in the FPGA.
wpilib.PWMSpeedController(channel) Common base class for all PWM Speed Controllers.
wpilib.PWMTalonSRX(channel) Cross the Road Electronics (CTRE) Talon SRX Speed Controller with PWM control.
wpilib.PWMVictorSPX(channel: int) Cross the Road Electronics (CTRE) Victor SPX Speed Controller with PWM control.
wpilib.Relay(channel[, direction]) Controls VEX Robotics Spike style relay outputs.
wpilib.Resource(size) Tracks resources in the program.
wpilib.RobotBase() Implement a Robot Program framework.
wpilib.RobotController Contains functions for roboRIO functionality.
wpilib.RobotDrive(*args, **kwargs)

Deprecated since version 2018.0.0.

wpilib.RobotState Provides an interface to determine the current operating state of the robot code.
wpilib.SafePWM(channel) A raw PWM interface that implements the MotorSafety interface
wpilib.SampleRobot() A simple robot base class that knows the standard FRC competition states (disabled, autonomous, or operator controlled).
wpilib.SD540(channel) Mindsensors SD540 Speed Controller
wpilib.Sendable The base interface for objects that can be sent over the network
wpilib.SendableBase([addLiveWindow]) Base class for all sensors.
wpilib.SendableChooser() A useful tool for presenting a selection of options to be displayed on
wpilib.SensorBase([addLiveWindow]) Base class for all sensors
wpilib.SerialPort(baudRate, port) Driver for the RS-232 serial port on the roboRIO.
wpilib.Servo(channel) Standard hobby style servo
wpilib.SmartDashboard The bridge between robot programs and the SmartDashboard on the laptop
wpilib.Solenoid(*args, **kwargs) Solenoid class for running high voltage Digital Output.
wpilib.SolenoidBase(moduleNumber) SolenoidBase class is the common base class for the Solenoid and DoubleSolenoid classes.
wpilib.Spark(channel) REV Robotics SPARK Speed Controller
wpilib.SpeedControllerGroup(…) Allows multiple SpeedController objects to be linked together.
wpilib.SPI(port[, simPort]) Represents a SPI bus port
wpilib.Talon(channel) Cross the Road Electronics (CTRE) Talon and Talon SR Speed Controller via PWM
wpilib.TimedRobot() TimedRobot implements the IterativeRobotBase robot program framework.
wpilib.Timer() Provides time-related functionality for the robot
wpilib.Ultrasonic(pingChannel, …) Ultrasonic rangefinder control
wpilib.Utility Contains global utility functions
wpilib.Victor(channel) VEX Robotics Victor 888 Speed Controller via PWM
wpilib.VictorSP(channel) VEX Robotics Victor SP Speed Controller via PWM
wpilib.XboxController(port) Handle input from Xbox 360 or Xbox One controllers connected to the Driver Station.