trikRuntime
trikControl::EncoderInterface Class Referenceabstract

Encoder of power motor. More...

#include <encoderInterface.h>

Inheritance diagram for trikControl::EncoderInterface:
Collaboration diagram for trikControl::EncoderInterface:

Public Slots

virtual int read ()=0
 Returns current encoder reading (in degrees). More...
 
virtual int readRawData ()=0
 Returns current raw reading of encoder. More...
 
virtual void reset ()=0
 Resets encoder by setting current reading to 0. More...
 

Additional Inherited Members

- Public Types inherited from trikControl::DeviceInterface
enum  Status {
  Status::permanentFailure, Status::temporaryFailure, Status::off, Status::starting,
  Status::ready, Status::stopping
}
 Device status. More...
 
- Public Member Functions inherited from trikControl::DeviceInterface
 DeviceInterface ()=default
 
virtual ~DeviceInterface ()=default
 
virtual Status status () const =0
 Returns current status of the device. More...
 
- Static Public Member Functions inherited from trikControl::DeviceInterface
static Status combine (const DeviceInterface &underlying, const DeviceInterface::Status &dependent)
 Helper method to return status of a device relying on other device to work. More...
 

Detailed Description

Encoder of power motor.

Member Function Documentation

virtual int trikControl::EncoderInterface::read ( )
pure virtualslot

Returns current encoder reading (in degrees).

virtual int trikControl::EncoderInterface::readRawData ( )
pure virtualslot

Returns current raw reading of encoder.

virtual void trikControl::EncoderInterface::reset ( )
pure virtualslot

Resets encoder by setting current reading to 0.


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