private IEnumerator Log() { while (true) { yield return(new WaitForSeconds(1F)); if (ParticipantBehavior.Participant == null) { continue; } var newRow = _dataTable.NewRow(); newRow["participant_id"] = ParticipantBehavior.Participant.Data.Id; newRow["mission_number"] = MissionMetaData.MissionNumber; newRow["mission_time"] = Time.timeSinceLevelLoad; newRow["heart_rate"] = _heartRate.GetSensorValue(); newRow["galvanic_skin_response"] = _galvanicSkinResponse.GetSensorValue(); newRow["emotion"] = _emotionClassification.GetSensorValue(); newRow["gaze_x"] = _gazeTracker.GetSensorValue().x; newRow["gaze_y"] = _gazeTracker.GetSensorValue().y; newRow["attention_id"] = _gazeAttention.GetSensorValue(); _dataTable.Rows.Add(newRow); } }
// Use this for initialization private void Start() { if (!On) { return; } GazeTracking = new GazeTracking(); if (GazeTracking.GetSensorValue() != GazeTracking.GetSensorFailureValue()) { return; } }