Poepzaad
This commit is contained in:
@@ -130,7 +130,7 @@ public class InputProcessor {
|
|||||||
*/
|
*/
|
||||||
public void onAdequateRepetition() {
|
public void onAdequateRepetition() {
|
||||||
ExerciseManager.TOTAL_REPETITIONS_PERFORMED++;
|
ExerciseManager.TOTAL_REPETITIONS_PERFORMED++;
|
||||||
// TODO: Play sound
|
// TODO: Add animation for correct repetition
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -138,6 +138,7 @@ public class InputProcessor {
|
|||||||
*/
|
*/
|
||||||
public void onInadequateRepetition() {
|
public void onInadequateRepetition() {
|
||||||
|
|
||||||
|
// TODO: Add animation for wrong repetition
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -333,16 +334,6 @@ public class InputProcessor {
|
|||||||
return jsonArray.toString();
|
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.
|
* Function for getting the combined (average) error value of both sensors.
|
||||||
public double getCombinedError()
|
public double getCombinedError()
|
||||||
@@ -362,9 +353,10 @@ public class InputProcessor {
|
|||||||
*/
|
*/
|
||||||
public double getError(int sensorId, float time) {
|
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)
|
if (sensorId < 0 || sensorId >= selfRotationVectorPaths.length)
|
||||||
return 0.0d;
|
return 0.0d;
|
||||||
|
/*
|
||||||
|
|
||||||
// Index of the current rotation vector
|
// Index of the current rotation vector
|
||||||
int targetIndex = (int) ((this.exerciseDurationInSeconds / this.targetRotationVectorPaths[sensorId].length) * time);
|
int targetIndex = (int) ((this.exerciseDurationInSeconds / this.targetRotationVectorPaths[sensorId].length) * time);
|
||||||
|
Reference in New Issue
Block a user