Fixed more issues, added more logging

This commit is contained in:
Luca Warmenhoven
2024-06-05 15:44:55 +02:00
parent 7320e10513
commit 8e57713152

View File

@@ -147,7 +147,6 @@ public class InputProcessor {
this.checksPerformed = 0; this.checksPerformed = 0;
this.totalChecks = ExerciseManager.DEFAULT_EXERCISE_REPETITIONS * 6; this.totalChecks = ExerciseManager.DEFAULT_EXERCISE_REPETITIONS * 6;
this.errorCheckInterval_s = this.exerciseRepetitionDurationInSeconds * ExerciseManager.DEFAULT_EXERCISE_REPETITIONS / 6.0f;
Log.i("InputProcessor", "Exercise error checking interval: " + this.errorCheckInterval_s); Log.i("InputProcessor", "Exercise error checking interval: " + this.errorCheckInterval_s);
@@ -161,6 +160,8 @@ public class InputProcessor {
this.exerciseRepetitionDurationInSeconds = exercise.exerciseTimeInSeconds; this.exerciseRepetitionDurationInSeconds = exercise.exerciseTimeInSeconds;
this.secondsPassed = 0.0D; this.secondsPassed = 0.0D;
this.lastTime = System.currentTimeMillis(); this.lastTime = System.currentTimeMillis();
this.errorCheckInterval_s = this.exerciseRepetitionDurationInSeconds * ExerciseManager.DEFAULT_EXERCISE_REPETITIONS / 6.0f;
} }
/** /**