Package edu.wpi.first.wpilibj
Interface PIDSource
- All Known Implementing Classes:
- PIDAnalogAccelerometer,- PIDAnalogGyro,- PIDAnalogInput,- PIDAnalogPotentiometer,- PIDEncoder,- PIDUltrasonic
@Deprecated(since="2020", forRemoval=true) public interface PIDSource
Deprecated, for removal: This API element is subject to removal in a future version.
Use DoubleSupplier and new PIDController class.
This interface allows for PIDController to automatically read from this object.
- 
Method SummaryModifier and Type Method Description PIDSourceTypegetPIDSourceType()Deprecated, for removal: This API element is subject to removal in a future version.Get which parameter of the device you are using as a process control variable.doublepidGet()Deprecated, for removal: This API element is subject to removal in a future version.Get the result to use in PIDController.voidsetPIDSourceType(PIDSourceType pidSource)Deprecated, for removal: This API element is subject to removal in a future version.Set which parameter of the device you are using as a process control variable.
- 
Method Details- 
setPIDSourceTypeDeprecated, for removal: This API element is subject to removal in a future version.Set which parameter of the device you are using as a process control variable.- Parameters:
- pidSource- An enum to select the parameter.
 
- 
getPIDSourceTypeDeprecated, for removal: This API element is subject to removal in a future version.Get which parameter of the device you are using as a process control variable.- Returns:
- the currently selected PID source parameter
 
- 
pidGetdouble pidGet()Deprecated, for removal: This API element is subject to removal in a future version.Get the result to use in PIDController.- Returns:
- the result to use in PIDController
 
 
-