public class MustangDriveBaseEncoder
extends java.lang.Object
Constructor and Description |
---|
MustangDriveBaseEncoder(Encoder dioEncoder,
CANEncoder sparkEncoder,
boolean isSparkMAXInverted) |
Modifier and Type | Method and Description |
---|---|
PIDSourceType |
getPIDSourceType() |
double |
getPositionInches()
Returns the position determined by the encoder in inches
|
int |
getPositionTicks()
Returns the position determined by the encoder in ticks
|
double |
getVelocityInches()
Returns the velocity determined by the encoder in inches/second
|
double |
getVelocityTicks()
Returns the velocity determined by the encoder in ticks/second
|
double |
pidGet() |
void |
setPIDSourceType(PIDSourceType pidSource) |
public MustangDriveBaseEncoder(Encoder dioEncoder, CANEncoder sparkEncoder, boolean isSparkMAXInverted)
dioEncoder
- the DIO Encoder used for this side of the drivebasesparkEncoder
- the Spark Encoder associatd for this side of the drivebasepublic int getPositionTicks()
public double getPositionInches()
public double getVelocityInches()
public double getVelocityTicks()
public void setPIDSourceType(PIDSourceType pidSource)
public PIDSourceType getPIDSourceType()
public double pidGet()