From f58372d16609defbf01db344511947d0e1257487 Mon Sep 17 00:00:00 2001 From: Atharv Nagavarapu <30nagava@elmbrookstudents.org> Date: Thu, 11 Dec 2025 14:28:52 +0000 Subject: [PATCH] Update diagnostics/MotorDiagnostics.py --- diagnostics/MotorDiagnostics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diagnostics/MotorDiagnostics.py b/diagnostics/MotorDiagnostics.py index 8fdb3bc..e6207da 100644 --- a/diagnostics/MotorDiagnostics.py +++ b/diagnostics/MotorDiagnostics.py @@ -41,7 +41,7 @@ class MotorDiagnostics: # Stability: penalize deviation relative to desired stability = max(0, 100 - (stdev_speed / desired) * 100) - # Normalize load: map 10–20 as baseline (≈0%), 200 as max (≈100%) + # Normalize load: map 10–20 as baseline (around 0%), 200 as max (around 100%) baseline = 15 # midpoint of idle range max_observed = 200 # heavy load/stall normalized_load = max(0, avg_load - baseline)