#include <SparkRelativeEncoder.h>
Inherits rev::RelativeEncoder.
Get an instance of this class by using SparkBase::GetEncoder() or SparkBase::GetEncoder(SparkRelativeEncoder::Type, int).
◆ SparkRelativeEncoder() [1/2]
◆ SparkRelativeEncoder() [2/2]
◆ ~SparkRelativeEncoder()
| rev::spark::SparkRelativeEncoder::~SparkRelativeEncoder |
( |
| ) |
|
|
overridedefault |
◆ operator=()
◆ GetPosition()
| Signal< double > SparkRelativeEncoder::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 > SparkRelativeEncoder::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()
◆ SparkBase
The documentation for this class was generated from the following files: