Exemple #1
0
 public void finishCalibration()
 {
     if (operatingState == ConnectionState.CALIBRATING)
     {
         if (EnfluxVRSuit.finishCalibration(connectedDevices.Count) < 1)
         {
             operatingState = ConnectionState.CONNECTED;
         }
         else
         {
             Debug.Log("Problem occured during calibration");
         }
     }
     else
     {
         Debug.Log("Unable to stop calibration, program is in wrong state "
                   + Enum.GetName(typeof(ConnectionState), operatingState));
     }
 }
    public void finishCalibration()
    {
        if (operatingState == ConnectionState.CALIBRATING)
        {
            StringBuilder returnBuffer = new StringBuilder(EnfluxVRSuit.MESSAGESIZE);

            if (EnfluxVRSuit.finishCalibration(connectedDevices.Count, returnBuffer) < 1)
            {
                operatingState = ConnectionState.CONNECTED;
            }
            else
            {
                Debug.Log(returnBuffer);
            }
        }
        else
        {
            Debug.Log("Unable to stop calibration, program is in wrong state "
                      + Enum.GetName(typeof(ConnectionState), operatingState));
        }
    }