 
 // pins used for the connection with the sensor
 // the other you need are controlled by the SPI library):
-//const int dataReadyPin = 6;
 const int chipSelectPin = 10;
 
-
-////////////////////////////////////////////////////
-//Calibration values
-
- int xAccelerationGain=1;
- int xAccelerationOffset=0;
-
- int yAccelerationGain=1;
- int yAccelerationOffset=0;
-
- int zAccelerationGain=1;
- int zAccelerationOffset=0;
-
- int xGyroGain=1;
- int xGyroOffset=0;
-
- int yGyroGain=1;
- int yGyroOffset=0;
-
- int zGyroGain=1;
- int zGyroOffset=0;
-
-//end calibration values
-//////////////////////////////////////////////
-
+// Thresholds
+const int GYRO_THRESHOLD = 10;
+const int ACCEL_CHANGE_THRESHOLD = 10;
+const int BRIGHTNESS_CHANGE_THRESHOLD = 10;
+const unsigned long TIMEOUT_USEC = 1000000L;
 
 //*****************************************************
 void setup() 
 //*****************************************************
 {
   Serial.begin(9600);
+  Serial.print("OSVR_latency_hardware_firmware v01.00\n");
+  Serial.print(" Mount the photosensor rigidly on the screen.\n");
+  Serial.print(" Move the interial sensor along with the tracking hardware.\n");
+  Serial.print(" Make the app change the brightness in front of the photosensor.\n");
   
   MPU6000_Init();
   delay(100);

}


//Sends a write command
//*****************************************************
void writeRegister(byte thisRegister, byte thisValue) 
//*****************************************************

// OSRVR latency-testing hardware firmware source code.
// Author: Russell Taylor working for Sensics.com through ReliaSolve.com
// LICENSE: Apache License 2.0.

// This code is based on the "Accelerometer_Gyro_Shield_test" example from
// Robogaia industries that ships along with their 6-axis Gyro/Accelerometer
