Handles the sequential encoding scheme for actuators. More...
#include <SequentialEncoding.h>
Static Public Member Functions | |
static void | handle (int number, Actuator **actuators, Hand hand) |
Activates and deactivates an actuator based on the sequential encoding scheme. | |
![]() | |
static void | customDelay (unsigned long timeInMs) |
Custom delay function to provide a non-blocking delay. | |
static bool | validIndex (int number, Hand hand) |
Checks whether the given pin number is valid for the specified hand. | |
Handles the sequential encoding scheme for actuators.
This class defines the sequential encoding scheme and how the actuators should be activated in sequence.
|
inlinestatic |
Activates and deactivates an actuator based on the sequential encoding scheme.
This function handles the sequential encoding scheme by activating the actuator corresponding to the given pin number and hand (left or right). After activation, the actuator is deactivated after a specified duration. A delay is applied both after activation and deactivation.
number | The index number representing the actuator to be activated. |
actuators | The array of actuator pointers to be used. |
hand | The hand (left or right) to which the actuator belongs. |