8 Commits

Author SHA1 Message Date
d3294bcb0b SCRIMMAGE MERGE!!!
Reviewed-on: #15
yayyyyyyyyyy
2025-10-11 02:30:26 +00:00
d66aecd5eb Update README.md 2025-10-11 02:29:50 +00:00
bbdf0d0e3a Shortened fun sounds 2025-10-11 02:25:18 +00:00
5ba2811af3 Merge pull request 'Updated LICENSE and README' (#12) from dev into main
Reviewed-on: #12
2025-10-09 21:16:08 +00:00
387e00b5c3 Merge branch 'dev' 2025-10-09 13:00:26 -05:00
3fdd6ae9d1 Merge to main for Scrimmage 2025-10-09 12:01:36 -05:00
ee0b8eb6a0 Update README.md 2025-09-10 13:28:54 +00:00
a745ed8c79 Merge pull request 'WIP - Test Merge ( dev to main )' (#1) from dev into main
Reviewed-on: #1
2025-09-02 02:32:19 +00:00
2 changed files with 22 additions and 22 deletions

View File

@@ -1,12 +1,12 @@
# 65266 Lego Dynamics - UNEARTHED Season # 65266 Lego Dynamics - UNEARTHED Season Robot Code
<div align="center"> <div align="center">
**Competitive Robotics Code for FLL SUBMERGED℠ Season** **Competitive Robotics Code for FLL SUBMERGED℠ Season**
![Team](https://img.shields.io/badge/Team-65266%20Lego%20Dynamics-blue?style=for-the-badge) ![Team](https://img.shields.io/badge/Team-65266%20Lego%20Dynamics-blue?style=for-the-badge)
![Season](https://img.shields.io/badge/Season-UNEARTHED-green?style=for-the-badge) ![Season](https://img.shields.io/badge/Season-UNEARTHED-green?style=for-the-badge)
![License](https://img.shields.io/badge/License-GPL-red?style=for-the-badge) ![License](https://img.shields.io/badge/License-GPLv3-red?style=for-the-badge)
</div> </div>
@@ -79,30 +79,34 @@ Repository
- Different colors trigger different mission runs! - Different colors trigger different mission runs!
### Color Start System ### 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! |
| 🟥 Red | 🟦 Blue | 🟩 Green | 🟨 Yellow | > **Tip** Organize your colored bricks before the match for quick run selection!
|--------|---------|----------|-----------|
| Run 1 | Run 2 | Run 3 | Run 4 |
> **Tip**: Organize your colored bricks before the match for quick run selection!
--- ---
## Competition Notes ## Competition Notes
- ⏱️ **Quick Start**: Color sensor enables rapid run switching without reprogramming - **Quick Start**: Color sensor enables rapid run switching without reprogramming
- 🎯 **Modular Design**: Easy to test and modify individual missions - **Modular Design**: Easy to test and modify individual missions
- 🔧 **Flexible Attachments**: Multiple tools optimized for different challenges - **Flexible Attachments**: Multiple tools optimized for different challenges
--- ---
## Contributing ## Contributing
Team members can contribute by: Team members can contribute by:
- 🐛 Reporting bugs via Issues - Reporting bugs via Issues
- 💡 Suggesting mission optimizations - Suggesting mission optimizations
- 🧪 Testing new attachment designs - Testing new attachment designs
- 📝 Documenting successful strategies - Documenting successful strategies
--- ---

View File

@@ -249,11 +249,7 @@ async def play_power_up():
async def play_rickroll_inspired(): async def play_rickroll_inspired():
"""Fun 80s-style dance beat inspired sound""" """Fun 80s-style dance beat inspired sound"""
# Upbeat bouncy rhythm # Upbeat bouncy rhythm
pattern = [ pattern = [ (cn["B3"], 100), (cn["Cs4"], 100), (cn["Ds4"], 100), (cn["E4"], 100), (cn["Cs4"], 100), (cn["B3"], 100), (cn["A3"], 100), (cn["B3"], 200), (cn["Cs4"], 100), (cn["B3"], 100), (cn["A3"], 100), (cn["Gs3"], 200), ]
(cn["Gs3"], 200), (cn["A3"], 200), (cn["B3"], 200), (cn["Cs4"], 200),
(cn["A3"], 200), (cn["Gs3"], 200), (cn["Fs3"], 200), (cn["Gs3"], 400),
(cn["A3"], 200), (cn["Gs3"], 200), (cn["Fs3"], 200), (cn["E3"], 400),
]
@@ -262,7 +258,7 @@ async def play_rickroll_inspired():
#await wait(50) #await wait(50)
# Basically a big if else statement that calls the functions above # Basically a big if else statement that calls the functions above
async def celebrate_mission_complete(sound_type=CelebrationSound.WAITING_SOUND): async def celebrate_mission_complete(sound_type=CelebrationSound.RICKROLL_INSPIRED):
""" """
Main celebration function to call after completing a mission. Main celebration function to call after completing a mission.
Plays a sound and shows light animation. Plays a sound and shows light animation.
@@ -302,7 +298,7 @@ async def celebrate_mission_complete(sound_type=CelebrationSound.WAITING_SOUND):
async def main(): async def main():
# MAIN LOOP # MAIN LOOP
while True: while True:
await celebrate_mission_complete(CelebrationSound.WAITING_SOUND) await celebrate_mission_complete(CelebrationSound.RICKROLL_INSPIRED)
color_reflected_percent = await color_sensor.reflection() color_reflected_percent = await color_sensor.reflection()
print(f"Color reflection percentage: {color_reflected_percent}") print(f"Color reflection percentage: {color_reflected_percent}")