From c2a7775d82e183c92026fa6eb9d0330671115202 Mon Sep 17 00:00:00 2001 From: Atharv Nagavarapu <30nagava@elmbrookstudents.org> Date: Thu, 11 Dec 2025 14:27:45 +0000 Subject: [PATCH 1/5] Update diagnostics/BatteryDiagnostics.py --- {utils => diagnostics}/BatteryDiagnostics.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {utils => diagnostics}/BatteryDiagnostics.py (100%) diff --git a/utils/BatteryDiagnostics.py b/diagnostics/BatteryDiagnostics.py similarity index 100% rename from utils/BatteryDiagnostics.py rename to diagnostics/BatteryDiagnostics.py From 19f735e7e2a0cc56feaea22e6904a1a2dca50fb7 Mon Sep 17 00:00:00 2001 From: Atharv Nagavarapu <30nagava@elmbrookstudents.org> Date: Thu, 11 Dec 2025 14:27:56 +0000 Subject: [PATCH 2/5] Update diagnostics/FullDiagnostics.py --- {utils => diagnostics}/FullDiagnostics.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {utils => diagnostics}/FullDiagnostics.py (100%) diff --git a/utils/FullDiagnostics.py b/diagnostics/FullDiagnostics.py similarity index 100% rename from utils/FullDiagnostics.py rename to diagnostics/FullDiagnostics.py From f688ef0cb3ae93bdc79861d98630cf155d7dcb03 Mon Sep 17 00:00:00 2001 From: Atharv Nagavarapu <30nagava@elmbrookstudents.org> Date: Thu, 11 Dec 2025 14:28:21 +0000 Subject: [PATCH 3/5] Update diagnostics/MotorDiagnostics.py --- {utils => diagnostics}/MotorDiagnostics.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {utils => diagnostics}/MotorDiagnostics.py (100%) diff --git a/utils/MotorDiagnostics.py b/diagnostics/MotorDiagnostics.py similarity index 100% rename from utils/MotorDiagnostics.py rename to diagnostics/MotorDiagnostics.py 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 4/5] 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) From 116836b86d4f2421df78f9779ad77bc05dce5113 Mon Sep 17 00:00:00 2001 From: Atharv Nagavarapu <30nagava@elmbrookstudents.org> Date: Thu, 11 Dec 2025 14:29:13 +0000 Subject: [PATCH 5/5] Removed ambiguous Unicode characters --- diagnostics/MotorDiagnostics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diagnostics/MotorDiagnostics.py b/diagnostics/MotorDiagnostics.py index e6207da..e8299c2 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 (around 0%), 200 as max (around 100%) + # Normalize load: map 10 to 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)