Handles the OST encoding scheme for actuators. More...
#include <OSTEncoding.h>
Static Public Member Functions | |
static void | handle (int number, Actuator **actuators, Hand hand) |
Activates an actuator based on the OST encoding sequence. | |
![]() | |
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 OST encoding scheme for actuators.
This class defines the OST encoding scheme and how the actuators should be activated based on that scheme.
|
inlinestatic |
Activates an actuator based on the OST encoding sequence.
This function handles the activation of actuators based on the OST encoding scheme. The activation sequence is determined by the index number and the hand (left or right). The appropriate actuator is activated according to the given index, and a custom delay is applied.
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. |