internal MyoNotifications (BleConnector ble, MyoController controller, int sleep = 0, bool auto = false) { _ble = ble; _controller = controller; _auto = auto; _threadSleep = sleep; }
internal MyoNotifications(BleConnector ble, MyoController controller, int sleep = 0, bool auto = false) { _ble = ble; _controller = controller; _auto = auto; _threadSleep = sleep; }
public static void Connect() { Print("Connecting. Please wait!"); _myo = Myo.ConnectEasyPreConfigured("/dev/ttyACM0", NotificationAutoConfigurableValues.All); _contr = _myo.Controller; Print("Connected"); }
void ResetScene() { if(myo == null) myo = GameObject.Find("Myo"); _myoTM = myo.GetComponent<ThalmicMyo>(); //mc = GameObject.Find("Joint").GetComponent<MyoController>(); mc = MyoController.Instance; HoldArmOut = GameObject.Find("HoldArmOut"); LeftArmSet = GameObject.Find("LeftArm"); RightArmSet = GameObject.Find("RightArm"); Text = GameObject.Find("Text"); TutorialCat = GameObject.Find("TutorialCat"); TutorialCat.SetActive(false); if(am == null) am = GameObject.Find("AudioManager").GetComponent<AudioManager>(); }
void ResetScene() { if (myo == null) { myo = GameObject.Find("Myo"); } _myoTM = myo.GetComponent <ThalmicMyo>(); //mc = GameObject.Find("Joint").GetComponent<MyoController>(); mc = MyoController.Instance; HoldArmOut = GameObject.Find("HoldArmOut"); LeftArmSet = GameObject.Find("LeftArm"); RightArmSet = GameObject.Find("RightArm"); Text = GameObject.Find("Text"); TutorialCat = GameObject.Find("TutorialCat"); TutorialCat.SetActive(false); if (am == null) { am = GameObject.Find("AudioManager").GetComponent <AudioManager>(); } }
void Start() { myo = MyoController.Instance; }