From c421fb2c41071febffb438a662c47b7669206866 Mon Sep 17 00:00:00 2001 From: Luca Warmenhoven Date: Wed, 5 Jun 2024 13:24:51 +0200 Subject: [PATCH] Poepzaad --- .../fitbot/util/processing/InputProcessor.java | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/code/src/Fitbot/app/src/main/java/com/example/fitbot/util/processing/InputProcessor.java b/code/src/Fitbot/app/src/main/java/com/example/fitbot/util/processing/InputProcessor.java index 66f54b2..f5742de 100644 --- a/code/src/Fitbot/app/src/main/java/com/example/fitbot/util/processing/InputProcessor.java +++ b/code/src/Fitbot/app/src/main/java/com/example/fitbot/util/processing/InputProcessor.java @@ -130,7 +130,7 @@ public class InputProcessor { */ public void onAdequateRepetition() { ExerciseManager.TOTAL_REPETITIONS_PERFORMED++; - // TODO: Play sound + // TODO: Add animation for correct repetition } /** @@ -138,6 +138,7 @@ public class InputProcessor { */ public void onInadequateRepetition() { + // TODO: Add animation for wrong repetition } /** @@ -333,16 +334,6 @@ public class InputProcessor { return jsonArray.toString(); } - /** - * Method for getting the current progress of the exercise. - * The return value will range between 0.0 and 1.0. - * - * @return The current progress of the exercise. - */ - public double getCurrentProgress() { - return secondsPassed / exerciseDurationInSeconds; - } - /** * Function for getting the combined (average) error value of both sensors. public double getCombinedError() @@ -362,9 +353,10 @@ public class InputProcessor { */ public double getError(int sensorId, float time) { - /*// Ensure the sensor ID is within the bounds of the array + // Ensure the sensor ID is within the bounds of the array if (sensorId < 0 || sensorId >= selfRotationVectorPaths.length) return 0.0d; + /* // Index of the current rotation vector int targetIndex = (int) ((this.exerciseDurationInSeconds / this.targetRotationVectorPaths[sensorId].length) * time);