// Received an exercise to do from the robot private void OnExerciseReceive(int exerciseNum, int armOrientation) { // TODO: check exerciseNum this.Log("Received exercise number " + exerciseNum + "\n"); TherapyExercise te = new TherapyExercise(this, armOrientation); // TODO: expand TherapyExercise class this.kinect.SetExercise(te); }
// Set the exercise to do now public void SetExercise(TherapyExercise therapyExercise) { this.therapyExercise = therapyExercise; }