Compare commits

...

20 Commits

Author SHA1 Message Date
cfe7b96be5 Merge pull request 'dev' (#53) from dev into main
Reviewed-on: #53
2025-12-08 19:16:23 +00:00
5a805e75fc Update README.md 2025-12-08 19:16:10 +00:00
4d94a35503 Update competition_codes/sectionals/mukwonago_sectionals_final.py 2025-12-08 19:15:10 +00:00
09490f4e3e Merge pull request 'dev' (#52) from dev into main
Reviewed-on: #52
2025-12-08 19:13:47 +00:00
4539ee361f Update README.md 2025-12-08 19:13:17 +00:00
288c4eac26 Update README.md 2025-12-08 17:29:02 +00:00
c2e8ad028a Merge pull request 'dev' (#51) from dev into main
Reviewed-on: #51
2025-12-08 16:55:06 +00:00
4f21cdc99c Update competition_codes/sectionals/sectional_main_dec_6.py
Updated values
2025-12-08 00:05:09 +00:00
a0bec55e97 Update competition_codes/sectionals/sectional_main_dec_6.py 2025-12-07 21:10:25 +00:00
f838d6b566 Update competition_codes/sectionals/sectional_main_dec_6.py 2025-12-06 20:36:10 +00:00
27e1e2f751 Update competition_codes/sectionals/sectional_main_dec_6.py 2025-12-06 20:35:00 +00:00
f1f800783f Update competition_codes/sectionals/sectional_main_dec_6.py
Updates for gear ratio change
2025-12-06 20:16:37 +00:00
d0225f0417 Merge pull request 'Update competition_codes/sectionals/sectional_main_dec_6.py' (#50) from Rishi_dev into dev
Reviewed-on: #50
2025-12-06 20:09:25 +00:00
ddc0f2ccca Update competition_codes/sectionals/sectional_main_dec_6.py 2025-12-06 18:01:47 +00:00
61d1cf709c Merge pull request 'Rishi_dev' (#49) from Rishi_dev into dev
Reviewed-on: #49
2025-12-06 17:48:09 +00:00
59a4c42060 Update competition_codes/sectionals/sectional_main_experimental.py 2025-12-06 17:47:05 +00:00
0247088be2 Merge pull request 'dev' (#48) from dev into Rishi_dev
Reviewed-on: #48
2025-12-06 17:46:32 +00:00
7d168ff378 Merge pull request 'RegionalFinal.py' (#45) from dev into main
Reviewed-on: #45
2025-11-18 00:50:19 +00:00
913e12f122 Merge pull request 'dev' (#44) from dev into main
Reviewed-on: #44
2025-11-12 01:22:35 +00:00
d1eb92cf25 Merge pull request 'dev' (#35) from dev into main
Reviewed-on: #35
2025-10-31 11:58:01 +00:00
2 changed files with 34 additions and 29 deletions

View File

@@ -63,17 +63,14 @@ Repository
### Installation & Deployment - from the server - everyday ### Installation & Deployment - from the server - everyday
1. Download the file codes_for_scrimmage/regional-final/Final_combined.py 1. Download the file competition_codes/sectionals/sectional_main_dec_6.py
- You can do this through the repo, by using cURL, or by using git. - You can do this through the repo, by using cURL, or by using git.
- Repo - Go to [codes_for_scrimmage/regional-final/Final_combined.py](codes_for_scrimmage/regional-final/Final_combined.py) and click the "Download" button. - Repo - Go to the latest release and click the "Download as ZIP" button to get the full repository.
- cURL or another HTTP data transferrer - - Single file - Go to the latest release and click the file link to get the raw master file.
```curl -o Final_combined.py https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed/raw/branch/main/codes_for_scrimmage/regional-final/Final_combined.py```
- git CLI - - git CLI -
```git clone https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed.git```
```git clone -b dev https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed.git && cd solutions_season_unearthed/codes_for_scrimmage/regional-final```
Then use Final_combined.py. Then use the master file.
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. 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.

View File

@@ -123,10 +123,10 @@ async def solve_forge():
await drive_base.straight(-47) await drive_base.straight(-47)
async def solve_heavy_lifting(): async def solve_heavy_lifting():
await right_arm.run_angle(500,-90) # arm down await right_arm.run_angle(500,-160) # arm down
await wait(100) await wait(100)
await drive_base.turn(20) # turn right a little bit await drive_base.turn(20) # turn right a little bit
await right_arm.run_angle(500,140) #arm up await right_arm.run_angle(500,160) #arm up
await drive_base.turn(-20) #reset position await drive_base.turn(-20) #reset position
async def solve_who_lived_here(): async def solve_who_lived_here():
@@ -176,9 +176,8 @@ async def Run3():
monitor_distance() monitor_distance()
) )
async def solve_angler_artifacts(): async def solve_angler_artifacts():
await drive_base.straight(920) await drive_base.straight(940)
await drive_base.turn(-90,Stop.HOLD) await drive_base.turn(-90,Stop.HOLD)
await drive_base.straight(65) await drive_base.straight(65)
#Solve #Solve
@@ -187,20 +186,25 @@ async def solve_angler_artifacts():
await drive_base.straight(-110) await drive_base.straight(-110)
await drive_base.turn(90) await drive_base.turn(90)
await drive_base.arc(-150,-100, None) await drive_base.arc(-150,-103, None)
async def solve_tip_the_scale(): async def solve_tip_the_scale():
await drive_base.straight(135) await drive_base.turn(3)
await drive_base.straight(142.5)
await right_arm.run_angle(800,-150) await right_arm.run_angle(800,-150)
await right_arm.run_angle(900,150) await right_arm.run_angle(900,150)
await drive_base.straight(-100) await drive_base.straight(-100)
await drive_base.turn(-65) await drive_base.turn(-65)
await drive_base.straight(320,Stop.COAST_SMART) await drive_base.straight(300,Stop.COAST_SMART)
await drive_base.arc(10,-47, None) await drive_base.arc(10,-47, None)
#await drive_base.turn(-23, Stop.COAST_SMART) #await drive_base.turn(-23, Stop.COAST_SMART)
""" """
Run #4 Run #4
- Solves the Mineshaft explorer + 2/3 Surface Brush + 1/3 Map Reveal - Solves the Mineshaft explorer + 2/3 Surface Brush + 1/3 Map Reveal
@@ -208,14 +212,14 @@ Run #4
""" """
async def Run4(): async def Run4():
await drive_base.straight(700) await drive_base.straight(700)
await drive_base.turn(-20) await drive_base.turn(-18)
await drive_base.straight(110) await drive_base.straight(120)
await drive_base.straight(-210) await drive_base.straight(-210)
await drive_base.turn(60) await drive_base.turn(61)
await drive_base.straight(130) await drive_base.straight(133)
await right_arm.run_angle(1000, -200) await right_arm.run_angle(400, -200)
await drive_base.straight(90) await drive_base.straight(90)
await right_arm.run_angle(300, 200) await right_arm.run_angle(100, 95)
await drive_base.straight(-875) await drive_base.straight(-875)
async def solve_brush_reveal(): async def solve_brush_reveal():
@@ -236,7 +240,7 @@ Run#5
- Solves Salvage Operation + Statue Rebuild - Solves Salvage Operation + Statue Rebuild
- Orange Key - Orange Key
""" """
async def Run6(): async def Run5():
await drive_base.straight(550) await drive_base.straight(550)
await right_arm.run_angle(300,100) await right_arm.run_angle(300,100)
await drive_base.straight(-75) await drive_base.straight(-75)
@@ -244,16 +248,20 @@ async def Run6():
await drive_base.straight(300) await drive_base.straight(300)
await drive_base.straight(-200) await drive_base.straight(-200)
await drive_base.turn(-15) await drive_base.turn(-15)
#solving statue
await drive_base.straight(350) await drive_base.straight(350)
await drive_base.turn(-103) await drive_base.turn(-104)
await drive_base.straight(-80) await drive_base.straight(-80)
await left_arm.run_angle(500, -900) await left_arm.run_angle(500, -900)
await drive_base.straight(101) await drive_base.straight(120)
await left_arm.run_angle(700, 285) await drive_base.turn(5)
await drive_base.turn(30) await left_arm.run_angle(500, 290)
await drive_base.straight(-60) await drive_base.turn(18)
await drive_base.turn(80) await drive_base.straight(-100)
await drive_base.straight(-900) await drive_base.turn(-90)
await drive_base.straight(900)
drive_base.stop()
async def solve_salvage_operation(): async def solve_salvage_operation():
await drive_base.straight(500) await drive_base.straight(500)