public void Geterror()
 {
     Measurement.Board0.Board_Force_error_storage = Wiiboard.Board_ForceRead(0);
     Measurement.Board1.Board_Force_error_storage = Wiiboard.Board_ForceRead(1);
     Measurement.Board2.Board_Force_error_storage = Wiiboard.Board_ForceRead(2);
     Measurement.Board3.Board_Force_error_storage = Wiiboard.Board_ForceRead(3);
     // These value are used for calibriation
 }
    // Update is called once per frame
    void FixedUpdate()
    {
        if (Input.GetKeyDown(KeyCode.T))
        {
            Debug.Log("Test Mode Begins");
            testmode = true;
        }
        if (Input.GetKeyDown(KeyCode.S))
        {
            Debug.Log("Test Mode Stops");
            testmode = false;
        }

        if (testmode == false)
        {
            DeviceNumbers = Wii.GetRemoteCount();
            foreach (GenericBoard item in Boards)

            {
                item.Board_Force      = Wiiboard.Board_ForceRead(item.BoardNumber);
                item.CalibratedForce  = EliminateError(item);
                item.Board_Totalforce = item.CalculateTotalForce();
            }
            Debug.Log(Board0.Board_Force);
            Debug.Log("This is Board0.Board_Force");
            Debug.Log(Board0.CalibratedForce);
            Debug.Log("This is Board0.CalibratedForce");
            Debug.Log(Board0.Board_Totalforce);
            Debug.Log("This is Board0.Board_Totalforce");
            GlobalTotalForce = CalculateGlobalTotalForce();
            COPRatioCalculationInGlobalCoordinate();
            GlobalVelocity = VelocityCalculationInGlobalCoordinate();
        }

        if (testmode == true)
        {
            Testdataset();
            foreach (GenericBoard item in Boards)
            {
                item.CalibratedForce  = EliminateError(item);
                item.Board_Totalforce = item.CalculateTotalForce();
            }
            GlobalTotalForce = CalculateGlobalTotalForce();
            COPRatioCalculationInGlobalCoordinate();
            GlobalVelocity = VelocityCalculationInGlobalCoordinate();
        }
    }