Abstract class for implementing different types of actuators. More...
#include <Actuator.h>
Public Member Functions | |
Actuator (int pin, ActuatorType type) | |
Constructor for the Actuator class. | |
virtual void | activate ()=0 |
Pure virtual function to activate the actuator. | |
virtual void | deactivate ()=0 |
Pure virtual function to deactivate the actuator. | |
Abstract class for implementing different types of actuators.
This class provides a base for all actuator types, defining common properties and methods.
|
inline |
Constructor for the Actuator class.
pin | The GPIO pin to which the actuator is connected. |
type | The type of actuator. |
|
pure virtual |
Pure virtual function to activate the actuator.
This function must be implemented by derived classes to define how the actuator should be activated.
Implemented in StrokingActuator, TabbingActuator, and VibrationActuator.
|
pure virtual |
Pure virtual function to deactivate the actuator.
This function must be implemented by derived classes to define how the actuator should be deactivated.
Implemented in StrokingActuator, TabbingActuator, and VibrationActuator.