#include <SparkMaxAlternateEncoder.h>
Inherits rev::RelativeEncoder.
Get an instance of this class by using SparkMax::GetEncoder() or SparkMax::GetEncoder(SparkMax::EncoderType, int).
◆ SparkMaxAlternateEncoder() [1/2]
◆ SparkMaxAlternateEncoder() [2/2]
◆ ~SparkMaxAlternateEncoder()
| rev::spark::SparkMaxAlternateEncoder::~SparkMaxAlternateEncoder |
( |
| ) |
|
|
overridedefault |
◆ operator=()
◆ GetPosition()
| Signal< double > SparkMaxAlternateEncoder::GetPosition |
( |
| ) |
const |
|
overridevirtual |
Get the position of the motor. This returns the native units of 'rotations'.
- Returns
- Signal containing the number of rotations of the motor
Implements rev::RelativeEncoder.
◆ GetVelocity()
| Signal< double > SparkMaxAlternateEncoder::GetVelocity |
( |
| ) |
const |
|
overridevirtual |
Get the velocity of the motor. This returns the native units of 'RPM'.
- Returns
- Signal containing the RPM of the motor
Implements rev::RelativeEncoder.
◆ SetPosition()
◆ SparkMax
The documentation for this class was generated from the following files: