private void MyTCPmanager_SensorDataChanged(object sender, TCPManager.SensorDataReceivedEventArgs e) { Answer = e.Answer; Acc_X = e.Acc_X; Acc_Y = e.Acc_Y; Acc_Z = e.Acc_Z; Gyro_X = e.Gyro_X; Gyro_Y = e.Gyro_Y; Gyro_Z = e.Gyro_Z; Light = e.Light; SendData(); }
private void MyTCPManager_SensorDataChanged(object sender, TCPManager.SensorDataReceivedEventArgs e) { Answer = e.Answer; Acc_X = e.Acc_X; Acc_Y = e.Acc_Y; Acc_Z = e.Acc_Z; Gyro_X = e.Gyro_X; Gyro_Y = e.Gyro_Y; Gyro_Z = e.Gyro_Z; Light = e.Light; UpdateAccelerometer(Acc_X, Acc_Y, Acc_Z); UpdateGyroscope(Gyro_X, Gyro_Y, Gyro_Z); UpdateLight(Light); UpdateAnswer(Answer); }