OSVR-Core
|
Public Member Functions | |
OsvrHdkLedIdentifier (const PatternStringList &PATTERNS) | |
Give it a list of patterns to use. More... | |
ZeroBasedBeaconId | getId (ZeroBasedBeaconId currentId, BrightnessList &brightnesses, bool &lastBright, bool blobsKeepId) const override |
Determine an ID based on a list of brightnesses This truncates the passed-in list to only as many elements as are in the pattern list, to keep it from growing too large and wasting time and space. More... | |
OsvrHdkLedIdentifier (const PatternStringList &PATTERNS) | |
Give it a list of patterns to use. More... | |
int | getId (int currentId, BrightnessList &brightnesses, bool &lastBright, bool blobsKeepId) const override |
Determine an ID based on a list of brightnesses This truncates the passed-in list to only as many elements as are in the pattern list, to keep it from growing too large and wasting time and space. More... | |
![]() | |
virtual | ~LedIdentifier () |
Virtual destructor;. | |
virtual | ~LedIdentifier () |
Virtual destructor;. | |
osvr::vbtracker::OsvrHdkLedIdentifier::OsvrHdkLedIdentifier | ( | const PatternStringList & | PATTERNS | ) |
Give it a list of patterns to use.
There is a string for each LED, and each is encoded with '*' meaning that the LED is bright and '.' that it is dim at this point in time. All patterns must have the same length.
osvr::vbtracker::OsvrHdkLedIdentifier::OsvrHdkLedIdentifier | ( | const PatternStringList & | PATTERNS | ) |
Give it a list of patterns to use.
There is a string for each LED, and each is encoded with '*' meaning that the LED is bright and '.' that it is dim at this point in time. All patterns must have the same length.
|
overridevirtual |
Determine an ID based on a list of brightnesses This truncates the passed-in list to only as many elements as are in the pattern list, to keep it from growing too large and wasting time and space.
Skip turned-off patterns.
Implements osvr::vbtracker::LedIdentifier.
|
overridevirtual |
Determine an ID based on a list of brightnesses This truncates the passed-in list to only as many elements as are in the pattern list, to keep it from growing too large and wasting time and space.
Skip turned-off patterns.
Implements osvr::vbtracker::LedIdentifier.