// FormatCalibratingString void FormatCalibratingString(ref string str) { if (MagAutoCalibrate == true) { str = System.String.Format("Mag Calibrating (AUTO)... Point {0} set", OVRDevice.MagNumberOfSamples(0)); } else { // Manual Calibration: Make sure to get proper direction str = "Mag Calibrating (MANUAL)... LOOK "; switch (OVRDevice.MagManualCalibrationState(0)) { case (0): str += "FORWARD"; break; case (1): str += "UP"; break; case (2): str += "LEFT"; break; case (3): str += "RIGHT"; break; case (4): str += "UPPER-RIGHT"; break; // failure case, user will need to be reset mag calibration manually case (5): str = "MANUAL CALIBRATION FAILED. PLEASE TRY AGAIN."; break; } } }
// FormatCalibratingString void FormatCalibratingString(ref string str) { if (MagAutoCalibrate == true) { str = System.String.Format("Mag Calibrating (AUTO)... Point {0} set", OVRDevice.MagNumberOfSamples(0)); } else { // Manual Calibration: Make sure to get proper direction str = "Mag Calibrating (MANUAL)... LOOK "; switch (OVRDevice.MagNumberOfSamples(0)) { case (0): str += "FORWARD"; break; case (1): str += "UP"; break; case (2): str += "LEFT"; break; case (3): str += "RIGHT"; break; } } }