Algorithm 1 Pseudocode for Signal Modulation | ||
1: initialize n, ref[n], measured[n], , J, | ||
2: | ||
3: while do | ||
4: measured[i] ← measured[] | ▹ Shift the data array to the right by one | |
5: | ||
6: measured[0] ← current measured value (i.e., 0 or 1) | ||
7: | ||
8: while do | ||
9: if measured[j] == ref[j] then | ▹ Compare the bit | |
10: | ||
11: | ||
12: | ||
13: if then | ▹ Signal matching case | |
14: retrieve x and y position | ▹ Obtain x and y position information |