Modifier and Type | Class and Description |
---|---|
static class |
AbstractEncoder.PIDMode |
Constructor and Description |
---|
AbstractEncoder() |
Modifier and Type | Method and Description |
---|---|
abstract int |
get()
Gets the value of this Encoder.
|
double |
getForPID()
Gets the value being used for PID.
|
AbstractEncoder.PIDMode |
getPIDMode()
Gets the PID Mode of this Encoder.
|
abstract double |
getRate()
Gets the rate of this Encoder.
|
boolean |
isReversed()
Checks if this Encoder is reversed.
|
abstract void |
reset()
Resets this PIDSource.
|
void |
setPIDMode(AbstractEncoder.PIDMode p)
Sets the PID Mode of this Encoder.
|
void |
setReversed(boolean r)
Sets if this Encoder should be reversed.
|
public void setPIDMode(AbstractEncoder.PIDMode p)
p
- The PID mode.public AbstractEncoder.PIDMode getPIDMode()
public abstract double getRate()
public abstract int get()
public boolean isReversed()
public void setReversed(boolean r)
r
- If this Encoder should be reversed.public double getForPID()
PIDSource