REVLib - C++
Loading...
Searching...
No Matches
rev::AbsoluteEncoder Class Referenceabstract

#include <AbsoluteEncoder.h>

Inherited by rev::spark::SparkAbsoluteEncoder.

Public Member Functions

virtual ~AbsoluteEncoder ()=default
 
virtual util::Signal< double > GetPosition () const =0
 
virtual util::Signal< double > GetVelocity () const =0
 

Constructor & Destructor Documentation

◆ ~AbsoluteEncoder()

virtual rev::AbsoluteEncoder::~AbsoluteEncoder ( )
virtualdefault

Member Function Documentation

◆ GetPosition()

virtual util::Signal< double > rev::AbsoluteEncoder::GetPosition ( ) const
pure virtual

Get the position of the motor. This returns the native units of 'rotations'.

Returns
Signal containing the number of rotations of the motor

Implemented in rev::spark::SparkAbsoluteEncoder.

◆ GetVelocity()

virtual util::Signal< double > rev::AbsoluteEncoder::GetVelocity ( ) const
pure virtual

Get the velocity of the motor. This returns the native units of 'rotations per second'.

Returns
Signal containing the number of rotations per second of the motor

Implemented in rev::spark::SparkAbsoluteEncoder.


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