Feedback SpellingBee

This commit is contained in:
Helena Van Breugel
2023-04-05 13:40:54 +00:00
committed by Jelle De Geest
parent e6b0cbd596
commit 2a7dd16f5f
5 changed files with 271 additions and 70 deletions

View File

@@ -340,17 +340,17 @@ public class CoursesController : AbstractFeedback
if (feedbackText != null && feedbackProgressImage != null)
{
Color col;
if (accCurrentSign > sign.thresholdPrecentage)
if (accCurrentSign > sign.thresholdPercentage)
{
feedbackText.text = "Goed";
col = new Color(0x8b / 255.0f, 0xd4 / 255.0f, 0x5e / 255.0f);
}
else if (accCurrentSign > 0.9 * sign.thresholdPrecentage)
else if (accCurrentSign > 0.9 * sign.thresholdPercentage)
{
feedbackText.text = "Bijna";
col = new Color(0xf2 / 255.0f, 0x7f / 255.0f, 0x0c / 255.0f);
}
else if (accPredictSign > predSign.thresholdPrecentage)
else if (accPredictSign > predSign.thresholdPercentage)
{
feedbackText.text = $"Verkeerde gebaar: '{predictedSign}'";
col = new Color(0xf5 / 255.0f, 0x49 / 255.0f, 0x3d / 255.0f);
@@ -378,7 +378,7 @@ public class CoursesController : AbstractFeedback
});
}
if (accPredictSign > sign.thresholdPrecentage)
if (accPredictSign > sign.thresholdPercentage)
{
// Correct sign
if (predictedSign == currentSign)