Potentiometer

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

Bases: wpilib.interfaces.PIDSource

Interface for potentiometers.

get(self: wpilib.interfaces.Potentiometer) → float

Common interface for getting the current value of a potentiometer.

Returns

The current set speed. Value is between -1.0 and 1.0.

setPIDSourceType(self: wpilib.interfaces.Potentiometer, pidSource: wpilib.interfaces.PIDSourceType) → None