private static void dispose()
        {
            if (timer != null)
            {
                timer.Dispose();
            }

            if (_measuringDevice != null)
            {
                if (_measuringDevice.isRecording())
                {
                    _measuringDevice.stopRecording();
                }
                _measuringDevice.gotoConfig();
                _measuringDevice.disableRadio();
                _measuringDevice.clearCallbackHandlers();
            }
        }
Esempio n. 2
0
    private void StopMeasurement()
    {
        if (!_MTWsInitialized)
        {
            return;
        }

        _MTWsInitialized = false;
        _acceptNewMTWs   = true;

        if (_masterDevice.isRecording())
        {
            _masterDevice.stopRecording();
        }
        _masterDevice.gotoConfig();

        _poseUpdater.setNewPose(SMPLPoseUpdater.tPose);

        UnityEngine.Debug.Log("Measurement stopped, " + _masterDevice.childCount() + " MTws connected");
    }