Compare commits
6 Commits
a91e79a02a
...
60384d4367
| Author | SHA1 | Date | |
|---|---|---|---|
| 60384d4367 | |||
| 116836b86d | |||
| f58372d166 | |||
| f688ef0cb3 | |||
| 19f735e7e2 | |||
| c2a7775d82 |
@@ -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 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)
|
||||
Reference in New Issue
Block a user