PIDSource

class wpilib.interfaces.PIDSource(self: wpilib.interfaces.PIDSource) → None

Bases: pybind11_builtins.pybind11_object

PIDSource interface is a generic sensor source for the PID class.

All sensors that can be used with the PID class will implement the PIDSource that returns a standard value that will be used in the PID code.

getPIDSourceType(self: wpilib.interfaces.PIDSource)wpilib.interfaces.PIDSourceType
pidGet(self: wpilib.interfaces.PIDSource) → float
setPIDSourceType(self: wpilib.interfaces.PIDSource, pidSource: wpilib.interfaces.PIDSourceType) → None

Set which parameter you are using as a process control variable.

Parameters

pidSource – An enum to select the parameter.