Package edu.wpi.first.wpilibj
Interface PIDSource
-
- All Known Subinterfaces:
Potentiometer
- All Known Implementing Classes:
ADXRS450_Gyro,AnalogAccelerometer,AnalogGyro,AnalogInput,AnalogPotentiometer,Counter,Encoder,Filter,GearTooth,GyroBase,LinearDigitalFilter,Ultrasonic
@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 Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier 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 Detail
-
setPIDSourceType
void setPIDSourceType(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.- Parameters:
pidSource- An enum to select the parameter.
-
getPIDSourceType
PIDSourceType getPIDSourceType()
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.- Returns:
- the currently selected PID source parameter
-
pidGet
double 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
-
-