#include <SparkAbsoluteEncoder.h>
Inherits rev::AbsoluteEncoder.
Get an instance of this class by using SparkBase::GetEncoder() or SparkBase::GetEncoder(SparkMaxRelativeEncoder::Type, int).
◆ SparkAbsoluteEncoder() [1/2]
◆ SparkAbsoluteEncoder() [2/2]
◆ ~SparkAbsoluteEncoder()
rev::spark::SparkAbsoluteEncoder::~SparkAbsoluteEncoder |
( |
| ) |
|
|
overridedefault |
◆ operator=()
◆ GetPosition()
double SparkAbsoluteEncoder::GetPosition |
( |
| ) |
const |
|
overridevirtual |
Get the position of the motor. This returns the native units of 'rotations' by default, and can be changed by a scale factor using setPositionConversionFactor().
- Returns
- Number of rotations of the motor
Implements rev::AbsoluteEncoder.
◆ GetVelocity()
double SparkAbsoluteEncoder::GetVelocity |
( |
| ) |
const |
|
overridevirtual |
Get the velocity of the motor. This returns the native units of 'rotations per second' by default, and can be changed by a scale factor using setVelocityConversionFactor().
- Returns
- Number of rotations per second of the motor
Implements rev::AbsoluteEncoder.
◆ SparkBase
The documentation for this class was generated from the following files: