From 4ff5de480d17316d40cd4aaf46e4ede8ed802ec7 Mon Sep 17 00:00:00 2001 From: Atharv <30nagava@elmbrookstudents.org> Date: Tue, 28 Oct 2025 18:06:09 +0000 Subject: [PATCH 1/8] Update README.md --- README.md | 53 +++++++++++++++++++++++------------------------------ 1 file changed, 23 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 49a400b..298ed1d 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ ## Project Overview -Welcome to the official code repository for **Team 65266 Lego Dynamics**! This repository contains all the Pybricks code powering our robot through the UNEARTHED season missions. Our modular approach allows for flexible mission execution and quick color-sensor-based run selection. +Welcome to the official code repository for **Team 65266 - Lego Dynamics**! This repository contains all the Pybricks code powering our robot through the UNEARTHED season missions. Our modular approach allows for flexible mission execution and quick color-sensor-based run selection. --- @@ -26,8 +26,8 @@ Welcome to the official code repository for **Team 65266 Lego Dynamics**! This r |-----------|--------------| | **Robot Name** | Optimus Prime III | | **Firmware** | Pybricks | -| **Attachment Motors** | 2× Large Motors (Ports C & D) | -| **Drive Motors** | 2× Small Motors (Ports A & B) | +| **Attachment Motors** | 2x Large Motors (Ports C & D) | +| **Drive Motors** | 2x Small Motors (Ports A & B) | | **Sensors** | Up-facing Color Sensor (Quick Start) | | **Attachments** | Multiple mission-specific tools | @@ -46,10 +46,10 @@ Our codebase is organized for maximum efficiency and modularity: ``` Repository ┣ run_1.py # Individual mission runs - ┣ run_2.py # Each file = 1+ mission completions + ┣ run_2.py ┣ run_3.py ┣ ... - ┗ master.py # 🎯 Combined master file with color-start logic + ┗ masterFile.py # 🎯 Combined master file with color-start logic - this changes periodically as we release new versions. Check this README if you are unsure what code should be loaded on the robot. ``` ### Workflow @@ -61,15 +61,16 @@ Repository ## How to Use -### Installation & Deployment +### Installation & Deployment - from the server - everyday -1. **Load the Code** - ```bash - # Open the master.py file in Pybricks IDE - ``` +1. Download the file codes_for_scrimmage/hazmat/mainhazmatUPD.py -2. **Connect to Robot** - - Pair your robot via Bluetooth in Pybricks +2. Open https://code.pybricks.com/ and select the "Import a file" button on the top of the left bar. Import the .py file. Pair your robot via Bluetooth in Pybricks by selecting the Bluetooth button. + + - Import button looks like this: + ![alt text](https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed/raw/branch/do-not-merge/import.png) + - Bluetooth button looks like this: + ![alt text](https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed/raw/branch/do-not-merge/bluetooth.png) 3. **Upload to Robot** - Click "Download and Run" or send the program to the robot @@ -79,16 +80,14 @@ Repository - Different colors trigger different mission runs! ### Color Start System -| Color | Mission | Celebration Sound | -|-------|-----------|------------------| -| Green 🟩 | Run 1 | Victory Fanfare | -| White ⚪ | Run 2 | Rickroll Inspired | -| Yellow 🟨 | Run 3 | Success Chime | -| Orange 🟧 | Run 4 | Power Up | -| Blue 🟦 | Run 5 | Power Up | -| Red 🟥 | Run 6 | Ta-Da! | - -> **Tip** Organize your colored bricks before the match for quick run selection! +| Color | Mission | +|-------|-----------| +| Green 🟩 | Run 1 | +| Purple 🟪 | Run 2 | +| Red 🟥| Run 3 | +| Yellow 🟨| Run 4 | +| Blue 🟦| Run 5 | +| Orange 🟧| Run 6 | --- @@ -130,14 +129,8 @@ This project is licensed under GPL-3.0 - see the [LICENSE](LICENSE) file for com ## Contact & Support -**Team 65266 Lego Dynamics** +**Team 65266 - Lego Dynamics** Questions about our approach? Interested in collaboration? Reach out! ---- - -
- -Star this repo if you found it helpful! - -
\ No newline at end of file +--- \ No newline at end of file From 33b926cb1f39615382e743f7fcc03aa90ad5830c Mon Sep 17 00:00:00 2001 From: Atharv <30nagava@elmbrookstudents.org> Date: Tue, 28 Oct 2025 18:06:44 +0000 Subject: [PATCH 2/8] Upload files to "/" --- Screenshot 2025-10-28 1.06.30 PM.png | Bin 0 -> 878 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Screenshot 2025-10-28 1.06.30 PM.png diff --git a/Screenshot 2025-10-28 1.06.30 PM.png b/Screenshot 2025-10-28 1.06.30 PM.png new file mode 100644 index 0000000000000000000000000000000000000000..44fad26fd8c9a90a630eb6545deacb1c9e8d6435 GIT binary patch literal 878 zcmV-!1CjiRP)0tEAWM-if2hMU&XT|;PbxXAA6PUuvgg*epWdG0|}94m9VJw?NBOpmofk4vVJ_T_nW(=)m#h=ISiWOqO;O%afwR03Rym(Eu-xYlfG*$6s6 zTF%QZ$r61$M8FJ1Rq*es*e8`}N)$)7ZxS+iuA!@H9vX|YQ)1hT{wN&}UdUMn@{S5n=StRAG(kj_S49s#lJ>_m~VuQ$=%6>7%yE89i8wuBxV2eW!0X ze;pYIW@xGUJoGE8va#*`0N}uV)%cXI_+i`4XD>}=Y=;k*RYsG!QrU}=P#9pvSruAr zXvv|42Ly0X^<{W0r>Yel3_uL4Ra)Kb#mDW}o4O4qGmykm6}n8(m74$H`IvSZ$YZ0b zt8ehcjfPL(M}RG4tGB Date: Tue, 28 Oct 2025 18:07:08 +0000 Subject: [PATCH 3/8] Delete Screenshot 2025-10-28 1.06.30 PM.png --- Screenshot 2025-10-28 1.06.30 PM.png | Bin 878 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 Screenshot 2025-10-28 1.06.30 PM.png diff --git a/Screenshot 2025-10-28 1.06.30 PM.png b/Screenshot 2025-10-28 1.06.30 PM.png deleted file mode 100644 index 44fad26fd8c9a90a630eb6545deacb1c9e8d6435..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 878 zcmV-!1CjiRP)0tEAWM-if2hMU&XT|;PbxXAA6PUuvgg*epWdG0|}94m9VJw?NBOpmofk4vVJ_T_nW(=)m#h=ISiWOqO;O%afwR03Rym(Eu-xYlfG*$6s6 zTF%QZ$r61$M8FJ1Rq*es*e8`}N)$)7ZxS+iuA!@H9vX|YQ)1hT{wN&}UdUMn@{S5n=StRAG(kj_S49s#lJ>_m~VuQ$=%6>7%yE89i8wuBxV2eW!0X ze;pYIW@xGUJoGE8va#*`0N}uV)%cXI_+i`4XD>}=Y=;k*RYsG!QrU}=P#9pvSruAr zXvv|42Ly0X^<{W0r>Yel3_uL4Ra)Kb#mDW}o4O4qGmykm6}n8(m74$H`IvSZ$YZ0b zt8ehcjfPL(M}RG4tGB Date: Tue, 28 Oct 2025 18:11:19 +0000 Subject: [PATCH 4/8] Update README.md --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 298ed1d..ef5a38b 100644 --- a/README.md +++ b/README.md @@ -72,12 +72,14 @@ Repository - Bluetooth button looks like this: ![alt text](https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed/raw/branch/do-not-merge/bluetooth.png) -3. **Upload to Robot** - - Click "Download and Run" or send the program to the robot +3. **Upload to Robot** - Click "Download and Run" or send the program to the robot + - Run button looks like this: ![alt text](https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed/raw/branch/do-not-merge/run.png) + 4. **Start Your Run** - - Hold a colored LEGO brick up to the color sensor - - Different colors trigger different mission runs! + - If starting without Pybricks, press the center circular button on the SPIKE Prime Hub to start the program. + - Hold a colored LEGO brick up to the color sensor. + - Different colors trigger different mission runs - color mapping is below. ### Color Start System | Color | Mission | From bb95852bf1a00f16e42bf220dca0b6521b33ec2e Mon Sep 17 00:00:00 2001 From: Atharv <30nagava@elmbrookstudents.org> Date: Tue, 28 Oct 2025 18:22:25 +0000 Subject: [PATCH 5/8] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index ef5a38b..1082a39 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,10 @@ Repository ### Installation & Deployment - from the server - everyday 1. Download the file codes_for_scrimmage/hazmat/mainhazmatUPD.py + - You can do this through the repo, by using cURL, or by using git. + - Repo - Go to [codes_for_scrimmage/hazmat/mainhazmatUPD.py](codes_for_scrimmage/hazmat/mainhazmatUPD.py) and click the "Download" button. + - cURL or another HTTP data transferrer - curl -o mainhazmatUPD.py https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed/raw/branch/main/codes_for_scrimmage/hazmat/mainhazmatUPD.py + - git CLI - git clone -b dev https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed.git && cd solutions_season_unearthed/codes_for_scrimmage/hazmat - Then use mainhazmatUPD.py. 2. Open https://code.pybricks.com/ and select the "Import a file" button on the top of the left bar. Import the .py file. Pair your robot via Bluetooth in Pybricks by selecting the Bluetooth button. From 8ccf8b9a5a70ab667628a277731fe6104ae542e9 Mon Sep 17 00:00:00 2001 From: Atharv <30nagava@elmbrookstudents.org> Date: Thu, 30 Oct 2025 12:21:46 +0000 Subject: [PATCH 6/8] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1082a39..b0ef79a 100644 --- a/README.md +++ b/README.md @@ -66,8 +66,10 @@ Repository 1. Download the file codes_for_scrimmage/hazmat/mainhazmatUPD.py - You can do this through the repo, by using cURL, or by using git. - Repo - Go to [codes_for_scrimmage/hazmat/mainhazmatUPD.py](codes_for_scrimmage/hazmat/mainhazmatUPD.py) and click the "Download" button. - - cURL or another HTTP data transferrer - curl -o mainhazmatUPD.py https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed/raw/branch/main/codes_for_scrimmage/hazmat/mainhazmatUPD.py - - git CLI - git clone -b dev https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed.git && cd solutions_season_unearthed/codes_for_scrimmage/hazmat - Then use mainhazmatUPD.py. + - cURL or another HTTP data transferrer - + ```curl -o mainhazmatUPD.py https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed/raw/branch/main/codes_for_scrimmage/hazmat/mainhazmatUPD.py``` + - git CLI - + ```git clone -b dev https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed.git && cd solutions_season_unearthed/codes_for_scrimmage/hazmat``` - Then use mainhazmatUPD.py. 2. Open https://code.pybricks.com/ and select the "Import a file" button on the top of the left bar. Import the .py file. Pair your robot via Bluetooth in Pybricks by selecting the Bluetooth button. @@ -119,9 +121,7 @@ Team members can contribute by: **GNU General Public License v3.0** -``` You can take inspiration from our code, but you can't take our exact code. -``` This project is licensed under GPL-3.0 - see the [LICENSE](LICENSE) file for complete details. From a6bbba94192417459685d0ba00643bd6ff5ffd53 Mon Sep 17 00:00:00 2001 From: Atharv <30nagava@elmbrookstudents.org> Date: Thu, 30 Oct 2025 15:42:31 +0000 Subject: [PATCH 7/8] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b0ef79a..5187815 100644 --- a/README.md +++ b/README.md @@ -67,9 +67,13 @@ Repository - You can do this through the repo, by using cURL, or by using git. - Repo - Go to [codes_for_scrimmage/hazmat/mainhazmatUPD.py](codes_for_scrimmage/hazmat/mainhazmatUPD.py) and click the "Download" button. - cURL or another HTTP data transferrer - + ```curl -o mainhazmatUPD.py https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed/raw/branch/main/codes_for_scrimmage/hazmat/mainhazmatUPD.py``` - git CLI - - ```git clone -b dev https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed.git && cd solutions_season_unearthed/codes_for_scrimmage/hazmat``` - Then use mainhazmatUPD.py. + + ```git clone -b dev https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed.git && cd solutions_season_unearthed/codes_for_scrimmage/hazmat``` + + Then use mainhazmatUPD.py. 2. Open https://code.pybricks.com/ and select the "Import a file" button on the top of the left bar. Import the .py file. Pair your robot via Bluetooth in Pybricks by selecting the Bluetooth button. From e785a8ad05f57cd4fe35b9d8168cd30fa00aa2bf Mon Sep 17 00:00:00 2001 From: Atharv <30nagava@elmbrookstudents.org> Date: Thu, 30 Oct 2025 15:42:53 +0000 Subject: [PATCH 8/8] Delete HEAVY_LIFTING_UPD we dont need it it is alr in missions/ --- HEAVY_LIFTING_UPD | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 HEAVY_LIFTING_UPD diff --git a/HEAVY_LIFTING_UPD b/HEAVY_LIFTING_UPD deleted file mode 100644 index da0f004..0000000 --- a/HEAVY_LIFTING_UPD +++ /dev/null @@ -1,33 +0,0 @@ -from pybricks.hubs import PrimeHub -from pybricks.pupdevices import Motor, ColorSensor, UltrasonicSensor, ForceSensor -from pybricks.parameters import Button, Color, Direction, Port, Side, Stop -from pybricks.robotics import DriveBase -from pybricks.tools import wait, StopWatch -from pybricks.tools import run_task, multitask - -hub = PrimeHub() - -left_motor = Motor(Port.A, Direction.COUNTERCLOCKWISE) -right_motor = Motor(Port.B) - -left_arm = Motor(Port.C, Direction.COUNTERCLOCKWISE) -right_arm = Motor(Port.D) -drive_base = DriveBase(left_motor, right_motor, wheel_diameter=68.8, axle_track=180) -drive_base.settings(600,500,300,200) -drive_base.use_gyro(True) - -async def main(): - await drive_base.straight(200) - await drive_base.turn(-20) - await drive_base.straight(536) - await drive_base.turn(60, Stop.HOLD) - await drive_base.straight(30) - - await right_arm.run_angle(5000,3000) - await drive_base.straight(40) - await right_arm.run_angle(5000,-4000) - await drive_base.straight(-60) - - await drive_base.turn(-60) - await drive_base.straight(-670) -run_task(main()) \ No newline at end of file