#include <SparkFlexExternalEncoder.h>
Inherits rev::RelativeEncoder.
◆ SparkFlexExternalEncoder() [1/2]
◆ SparkFlexExternalEncoder() [2/2]
◆ ~SparkFlexExternalEncoder()
| rev::spark::SparkFlexExternalEncoder::~SparkFlexExternalEncoder |
( |
| ) |
|
|
overridedefault |
◆ operator=()
◆ GetPosition()
| Signal< double > SparkFlexExternalEncoder::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 > SparkFlexExternalEncoder::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()
◆ SparkFlex
The documentation for this class was generated from the following files: