Braille Glove
 
Loading...
Searching...
No Matches
SequentialEncoding Class Reference

Handles the sequential encoding scheme for actuators. More...

#include <SequentialEncoding.h>

Inheritance diagram for SequentialEncoding:
Encoding

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 Public Member Functions inherited from Encoding
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.
 

Detailed Description

Handles the sequential encoding scheme for actuators.

This class defines the sequential encoding scheme and how the actuators should be activated in sequence.

Member Function Documentation

◆ handle()

static void SequentialEncoding::handle ( int number,
Actuator ** actuators,
Hand hand )
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.

Parameters
numberThe index number representing the actuator to be activated.
actuatorsThe array of actuator pointers to be used.
handThe hand (left or right) to which the actuator belongs.

The documentation for this class was generated from the following file: