This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** This is the algorithm that generates the error correction code (ECC) used to identify each IR-LED in | |
** the Oculus Rift DK2. | |
** More information on the DK2 optical tracking system can be found in the blog post series | |
** "Hacking the Oculus Rift DK2" by Oliver Kreylos: http://doc-ok.org/?p=1095 | |
** | |
** This algorithm was *not* found in the binaries provided by Oculus (they only include pre-computed LUTs). | |
** | |
** The algorithm is pretty simple: | |
** All code words need to fulfil two requirements: |