Package ca.team3161.lib.robot.pid
Interface PIDAngleValueSrc<T extends edu.wpi.first.wpilibj.PIDSource>
-
- Type Parameters:
T
- the type of the PIDSource sensor for this AnglePidSrc (eg potentiometer)
- All Superinterfaces:
edu.wpi.first.wpilibj.PIDSource
,PIDSrc<T,java.lang.Float>
- All Known Implementing Classes:
GyroAnglePIDSrc
,PotentiometerVoltagePIDSrc
public interface PIDAngleValueSrc<T extends edu.wpi.first.wpilibj.PIDSource> extends PIDSrc<T,java.lang.Float>
A PID source that specifically returns values to be interpreted as degrees.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.Float
getAngle()
Get the angle measured by this sensor.java.lang.Float
getMaxAngle()
The maximal angle of this sensor.java.lang.Float
getMinAngle()
The minimal angle of this sensor.-
Methods inherited from interface ca.team3161.lib.robot.pid.PIDSrc
getPIDValue, getSensor, pidGet
-
-
-
-
Method Detail
-
getMinAngle
java.lang.Float getMinAngle()
The minimal angle of this sensor.- Returns:
- the minimal angle of this sensor
-
getMaxAngle
java.lang.Float getMaxAngle()
The maximal angle of this sensor.- Returns:
- the maximal angle of this sensor
-
getAngle
default java.lang.Float getAngle()
Get the angle measured by this sensor.- Returns:
- the angle value.
-
-