This commit is contained in:
Luca Warmenhoven
2024-06-03 13:41:10 +02:00
parent 92223fbf52
commit 517b5f8438
3 changed files with 4 additions and 2 deletions

View File

@@ -15,3 +15,4 @@
local.properties local.properties
.idea .idea
.vscode .vscode
/.idea/

View File

@@ -81,6 +81,7 @@ public class FitnessActivity extends RobotActivity implements RobotLifecycleCall
motionProcessor.startListening(); motionProcessor.startListening();
motionProcessor.setInputHandler(personalMotionPreviewElement); motionProcessor.setInputHandler(personalMotionPreviewElement);
}, (n) -> { }, (n) -> {
int randomMessageIndex = (int) Math.floor(Math.random() * EXERCISE_NOT_FOUND_MESSAGES.length); int randomMessageIndex = (int) Math.floor(Math.random() * EXERCISE_NOT_FOUND_MESSAGES.length);
Pepper.say(EXERCISE_NOT_FOUND_MESSAGES[randomMessageIndex]); Pepper.say(EXERCISE_NOT_FOUND_MESSAGES[randomMessageIndex]);

View File

@@ -159,7 +159,7 @@ public class ExerciseStatusElement extends View implements IInputHandler {
this.exercise = exercise; this.exercise = exercise;
} }
/** TODO: Remove */
private Vector2f projectVertex(Vector3f point, int virtualWidth, int virtualHeight) { private Vector2f projectVertex(Vector3f point, int virtualWidth, int virtualHeight) {
viewMatrix viewMatrix
.identity() .identity()