Interface IEncoderProvider
-
- All Known Implementing Classes:
TalonSRXCollection
,VictorSPXCollection
public interface IEncoderProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EncoderBase
getDefaultEncoder()
Get the default encoderEncoderBase
getEncoder(int id, boolean phase)
Get an encoder of a specific ID.
-
-
-
Method Detail
-
getDefaultEncoder
EncoderBase getDefaultEncoder()
Get the default encoder- Returns:
- Default encoder
-
getEncoder
EncoderBase getEncoder(int id, boolean phase)
Get an encoder of a specific ID. This is useful if a system has more than one sensor, or if it has more than one input, but only one sensor. If the system only has one sensor, this should probably just return getDefaultEncoder()- Parameters:
id
- Encoder ID- Returns:
- Encoder
-
-