Laser Sensing Display for UI interfaces in the real world
Fork of skinGames_forktest by
Diff: hardwareIO/lockin.h
- Revision:
- 14:0fc33a3a7b4b
- Parent:
- 10:6f8e48dca1bd
- Child:
- 23:bf666fcc61bc
diff -r 9f03eac02700 -r 0fc33a3a7b4b hardwareIO/lockin.h --- a/hardwareIO/lockin.h Thu Apr 12 09:50:47 2012 +0000 +++ b/hardwareIO/lockin.h Thu Apr 12 13:02:59 2012 +0000 @@ -51,6 +51,7 @@ //variables unsigned short buffer[BUFFER_SIZE]; // does not need to be a float - in fact values are from 0 to 4096 (i.e., //unsigned short int buffer[BUFFER_SIZE]; // this is two bytes (0 to 65535) + unsigned short orderedBuffer[BUFFER_SIZE_MEDIAN]; // for computation of the MEDIAN value int buffer_pos; float refFrequency; // frequency of sensing laser and lock-in (in KHz)