Abstract base interface class for a motor controller. More...
#include <motor_controller_interface.h>
Public Member Functions | |
virtual void | setSpeed (int value)=0 |
Set the speed of the a motor. More... | |
Protected Attributes | |
TMotorDriver | motor_driver_ |
Abstract base interface class for a motor controller.
Inherit from this base class and specify the type of motor driver. The interface provides setSpeed, which is an abstract method and must therefore be implemented.
Definition at line 17 of file motor_controller_interface.h.
|
pure virtual |
Set the speed of the a motor.
Implement this method to set the speed of a motor that is connected to the motor_driver_ which is of type TMotorDriver.
value | positive or negative value to set the direction and speed of the motor. |
Implemented in diffbot::AdafruitMotorController.
|
protected |
Definition at line 35 of file motor_controller_interface.h.