Compare commits

...

16 Commits

Author SHA1 Message Date
60384d4367 Merge pull request 'dev' (#11) from dev into main
Reviewed-on: Arcmyx/pynamics-pybricks-utils#11
2025-12-11 14:29:29 +00:00
116836b86d Removed ambiguous Unicode characters 2025-12-11 14:29:13 +00:00
f58372d166 Update diagnostics/MotorDiagnostics.py 2025-12-11 14:28:52 +00:00
f688ef0cb3 Update diagnostics/MotorDiagnostics.py 2025-12-11 14:28:21 +00:00
19f735e7e2 Update diagnostics/FullDiagnostics.py 2025-12-11 14:27:56 +00:00
c2a7775d82 Update diagnostics/BatteryDiagnostics.py 2025-12-11 14:27:45 +00:00
a91e79a02a Merge pull request 'dev' (#10) from dev into main
Reviewed-on: Arcmyx/pynamics-pybricks-utils#10
2025-12-11 14:27:04 +00:00
595cfdc6eb Update README.md 2025-12-11 14:26:42 +00:00
9f94a114ae Update README.md 2025-12-09 00:22:49 +00:00
ffd89e5698 Update README.md 2025-12-09 00:12:35 +00:00
6b6cfa11b4 Update README.md 2025-12-09 00:12:26 +00:00
17db936432 Merge pull request 'dev' (#9) from dev into main
Reviewed-on: Arcmyx/pynamics-pybricks-utils#9
2025-12-09 00:10:54 +00:00
d3a740e705 Merge pull request 'dev' (#7) from dev into main
Reviewed-on: Arcmyx/pybricks-utils#7
2025-12-08 17:04:25 +00:00
960fd598c9 Merge pull request 'dev' (#5) from dev into main
Reviewed-on: Arcmyx/pybricks-utils#5
2025-12-08 14:21:45 +00:00
f3460290e5 Merge pull request 'Update utils/BatteryDiagnostics.py' (#3) from dev into main
Reviewed-on: Arcmyx/pybricks-utils#3
2025-12-07 21:49:05 +00:00
345da15b22 Merge pull request 'dev' (#2) from dev into main
Reviewed-on: Arcmyx/pybricks-utils#2
2025-12-07 21:31:02 +00:00
4 changed files with 4 additions and 4 deletions

View File

@@ -1,10 +1,10 @@
# Team 65266 Lego Dynamics - Pybricks Utils
# Team 65266 Lego Dynamics - PYNAMICS - Pybricks Utilities
A collection of Pybricks utilities to assist in your FLL robot programming with Python. Created by FLL team 65266, Lego Dynamics.
<img src="https://codes.fll-65266.org/Arcmyx/pynamics-pybricks-utils/raw/branch/arcmyx-dev/pynamics-screenshot.png" alt="Pynamics screenshot" width="670">
<img src="https://codes.fll-65266.org/Arcmyx/pynamics-pybricks-utils/raw/branch/main/pynamics-screenshot.png" alt="Pynamics screenshot" width="670">
How to use this
How to use this:
- Download the repository by clicking on the "Code" tab, clicking the "< > Code" button, then downloading as a ZIP. Additionally, you can also use ```git clone https://codes.fll-65266.org/Arcmyx/pybricks-utils.git```. Unzip the archive and open code.pybricks.com. Then choose which folder you'd like to use, and open each file in pybricks by using the import button. For example, to use the diagnostics tool, simply open each program in the ```diagnostics``` folder into Pybricks. Then, follow the instructions for each utility.

View File

@@ -41,7 +41,7 @@ class MotorDiagnostics:
# Stability: penalize deviation relative to desired
stability = max(0, 100 - (stdev_speed / desired) * 100)
# Normalize load: map 1020 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)