|
REVLib - C++
|
#include <SparkAbsoluteEncoder.h>
Inherits rev::AbsoluteEncoder.
Public Member Functions | |
| SparkAbsoluteEncoder (SparkAbsoluteEncoder &&rhs)=default | |
| SparkAbsoluteEncoder & | operator= (SparkAbsoluteEncoder &&rhs)=default |
| SparkAbsoluteEncoder (const SparkAbsoluteEncoder &rhs)=default | |
| ~SparkAbsoluteEncoder () override=default | |
| double | GetPosition () const override |
| double | GetVelocity () const override |
Public Member Functions inherited from rev::AbsoluteEncoder | |
| virtual | ~AbsoluteEncoder () |
Friends | |
| class | SparkBase |
Get an instance of this class by using SparkBase::GetEncoder() or SparkBase::GetEncoder(SparkMaxRelativeEncoder::Type, int).
|
default |
|
default |
|
overridedefault |
|
default |
|
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 AbsoluteEncoderConfig::PositionConversionFactor().
Implements rev::AbsoluteEncoder.
|
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 AbsoluteEncoderConfig::VelocityConversionFactor().
Implements rev::AbsoluteEncoder.
|
friend |