|
TinyRobotics
|
Abstract base class for all motor driver types. More...
#include <IMotor.h>

Public Member Functions | |
| virtual bool | begin ()=0 |
| virtual void | end ()=0 |
| virtual bool | isPinsSet () const =0 |
| virtual bool | setValuePercent (T percent)=0 |
| virtual T | getValuePercent () const =0 |
| void | setID (uint8_t id) |
| uint8_t | getID () const |
Protected Attributes | |
| uint8_t | id = 0 |
Abstract base class for all motor driver types.
The Motor class defines a common interface for all motor drivers in the library. It enforces the implementation of:
All specific motor driver classes (e.g., HBridge, ServoMotor) should inherit from Motor.
|
pure virtual |
Implemented in StepperMotor< T >, and GenericMotor< T >.
|
pure virtual |
Implemented in BrushedMotor< T >, BrushedMotor< float >, GenericMotor< T >, and StepperMotor< T >.
|
pure virtual |
Implemented in GenericMotor< T >.
|
pure virtual |
Implemented in BrushedMotor< T >, BrushedMotor< float >, and GenericMotor< T >.
|
pure virtual |
Implemented in BrushedMotor< T >, GenericMotor< T >, ServoMotor< T >, and StepperMotor< T >.