//ButtonMPU2 //Dome private void MPUBtn2_Click(object sender, RoutedEventArgs e) { Imotraf.Device.IDevice arduino = new Imotraf.Device.Arduino(); unit2 = new Imotraf.Device.MoCapU(arduino); unit2.ConnectionEstablished += UnitTwoConnected; unit2.ConnectionLost += UnitTwoConnectionLost; unit2.ConnectMoCapUnit("192.168.1.129", 3038); }
//ButtonMPU1 private void MPUBtn1_Click(object sender, RoutedEventArgs e) { Imotraf.Device.IDevice arduino = new Imotraf.Device.Arduino(); unit1 = new Imotraf.Device.MoCapU(arduino); unit1.ConnectionEstablished += UnitOneConnected; unit1.ConnectionLost += UnitOneConnectionLost; unit1.ConnectMoCapUnit("192.168.1.130", 3001); }
//ButtonMPU7 //DONE private void MPUBtn7_Click(object sender, RoutedEventArgs e) { Imotraf.Device.IDevice arduino = new Imotraf.Device.Arduino(); unit7 = new Imotraf.Device.MoCapU(arduino); unit7.ConnectionEstablished += UnitSeventhConnected; unit7.ConnectionLost += UnitSeventhConnectionLost; unit7.ConnectMoCapUnit("192.168.1.123", 3036);; }
//ButtonMPU9 //DONE private void MPUBtn9_Click(object sender, RoutedEventArgs e) { Imotraf.Device.IDevice arduino = new Imotraf.Device.Arduino(); unit9 = new Imotraf.Device.MoCapU(arduino); unit9.ConnectionEstablished += UnitNinethConnected; unit9.ConnectionLost += UnitEighthConnectionLost; unit9.ConnectMoCapUnit("192.168.1.146", 3033);; }
//ButtonMPU5 /DONE private void MPUBtn5_Click(object sender, RoutedEventArgs e) { Imotraf.Device.IDevice arduino = new Imotraf.Device.Arduino(); unit5 = new Imotraf.Device.MoCapU(arduino); unit5.ConnectionEstablished += UnitFourthConnected; unit5.ConnectionLost += UnitFivethConnectionLost; unit5.ConnectMoCapUnit("192.168.1.104", 3032); }