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
public interface PIDSourceThis interface allows for PIDController to automatically read from this object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PIDSourceTypegetPIDSourceType()Get which parameter of the device you are using as a process control variable.doublepidGet()Get the result to use in PIDController.voidsetPIDSourceType(PIDSourceType pidSource)Set which parameter of the device you are using as a process control variable.
-
-
-
Method Detail
-
setPIDSourceType
void setPIDSourceType(PIDSourceType pidSource)
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()
Get which parameter of the device you are using as a process control variable.- Returns:
- the currently selected PID source parameter
-
pidGet
double pidGet()
Get the result to use in PIDController.- Returns:
- the result to use in PIDController
-
-