Encoder
Constructor
There are no constructors for this class. It is only used to inherit from.
Methods
These methods are available to all classes that inherit from this class.
GetEncoderRawTicks
Returns the raw ticks from the encoder.
Example
GetEncoderTickVelocity
Returns the velocity of the encoder in ticks per second.
Example
ZeroEncoder
Zeros the encoder.
Example
SetEncoderPosition
Sets the encoder position.
Example
SetEncoderOffset
Sets the encoder offset.
Example
GetEncoderTicks
Returns the encoder ticks.
Example
GetEncoderTicksPerRotation
Returns the encoder ticks per rotation.
Example
SetReduction
Sets the reduction of the encoder.
Example
GetEncoderPosition
Returns the encoder position.
Example
GetEncoderDistance
Returns the encoder distance.
Example
GetEncoderAngularVelocity
Returns the encoder angular velocity.
Example
DigitalEncoder
Constructor
Example
CANSparkMaxEncoder
Constructor
Example
TalonFXEncoder
Constructor
Example
TalonSRXEncoder
Constructor
Example
DutyCycleEncoder
Constructor
Example
CanEncoder
Constructor
Example