# ๐ค 65266 Lego Dynamics - UNEARTHED Season
**โก Competitive Robotics Code for FLL SUBMERGEDโ Season โก**



---
## ๐ 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.
---
## ๐ฆพ Robot Hardware
### ๐ฏ Meet Optimus Prime III
| Component | Specification |
|-----------|--------------|
| ๐ค **Robot Name** | Optimus Prime III |
| ๐พ **Firmware** | Pybricks |
| ๐ง **Attachment Motors** | 2ร Large Motors (Ports C & D) |
| ๐ **Drive Motors** | 2ร Small Motors (Ports A & B) |
| ๐๏ธ **Sensors** | Up-facing Color Sensor (Quick Start) |
| ๐ ๏ธ **Attachments** | Multiple mission-specific tools |
### โ๏ธ Motor Configuration
- **Port A**: Left Drive Motor (Small)
- **Port B**: Right Drive Motor (Small)
- **Port C**: Left Attachment Motor (Large)
- **Port D**: Right Attachment Motor (Large)
---
## ๐ Code Structure
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_3.py
โฃ ๐ ...
โ ๐ master.py # ๐ฏ Combined master file with color-start logic
```
### ๐ Workflow
1. **Individual Run Files** โ Contain specific mission sequences
2. **Script Combination** โ Merges runs into master file
3. **Color Sensor Logic** โ Adds intelligent run selection based on color detection
---
## ๐ How to Use
### ๐ฅ Installation & Deployment
1. **Load the Code**
```bash
# Open the master.py file in Pybricks IDE
```
2. **๐ Connect to Robot**
- Pair your robot via Bluetooth in Pybricks
3. **๐ค Upload to Robot**
- Click "Download and Run" or send the program to the robot
4. **๐จ Start Your Run**
- Hold a colored LEGO brick up to the color sensor
- Different colors trigger different mission runs!
### ๐ฎ Color Start System
| ๐ฅ Red | ๐ฆ Blue | ๐ฉ Green | ๐จ Yellow |
|--------|---------|----------|-----------|
| Run 1 | Run 2 | Run 3 | Run 4 |
> **๐ก Pro Tip**: Organize your colored bricks before the match for quick run selection!
---
## ๐ Competition Notes
- โฑ๏ธ **Quick Start**: Color sensor enables rapid run switching without reprogramming
- ๐ฏ **Modular Design**: Easy to test and modify individual missions
- ๐ง **Flexible Attachments**: Multiple tools optimized for different challenges
---
## ๐ค Contributing
Team members can contribute by:
- ๐ Reporting bugs via Issues
- ๐ก Suggesting mission optimizations
- ๐งช Testing new attachment designs
- ๐ Documenting successful strategies
---
## ๐ License
**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.
### ๐ What This Means:
- โ
Learn from our approaches and strategies
- โ
Understand our logic and algorithms
- โ Don't copy-paste our exact code
- โ
Create your own unique implementations
---
## ๐ Contact & Support
**Team 65266 Lego Dynamics**
Questions about our approach? Interested in collaboration? Reach out!
---
**๐ง Built with Passion | ๐ค Powered by Pybricks | ๐ Competing for Excellence**
โญ Star this repo if you found it helpful! โญ