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

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

#include <OSTEncoding.h>

Inheritance diagram for OSTEncoding:
Encoding

Static Public Member Functions

static void handle (int number, Actuator **actuators, Hand hand)
 Activates an actuator based on the OST encoding sequence.
 
- 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 OST encoding scheme for actuators.

This class defines the OST encoding scheme and how the actuators should be activated based on that scheme.

Member Function Documentation

◆ handle()

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

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: