REVLib - C++
rev::AbsoluteEncoder Class Referenceabstract

#include <AbsoluteEncoder.h>

Inherited by rev::spark::SparkAbsoluteEncoder.

Public Member Functions

virtual ~AbsoluteEncoder ()
 
virtual double GetPosition () const =0
 
virtual double GetVelocity () const =0
 

Friends

class spark::SparkAbsoluteEncoder
 

Constructor & Destructor Documentation

◆ ~AbsoluteEncoder()

virtual rev::AbsoluteEncoder::~AbsoluteEncoder ( )
inlinevirtual

Member Function Documentation

◆ GetPosition()

virtual double rev::AbsoluteEncoder::GetPosition ( ) const
pure virtual

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

Implemented in rev::spark::SparkAbsoluteEncoder.

◆ GetVelocity()

virtual double rev::AbsoluteEncoder::GetVelocity ( ) const
pure virtual

Get the velocity of the motor. This returns the native units of 'rotations per minute' by default, and can be changed by a scale factor using setVelocityConversionFactor().

Returns
Number of rotations per minute of the motor

Implemented in rev::spark::SparkAbsoluteEncoder.

Friends And Related Function Documentation

◆ spark::SparkAbsoluteEncoder

friend class spark::SparkAbsoluteEncoder
friend

The documentation for this class was generated from the following file: