Compare commits
19 Commits
Rishi_dev
...
sectionals
| Author | SHA1 | Date | |
|---|---|---|---|
| 68d8b346c7 | |||
| f38a3cc625 | |||
| cfe7b96be5 | |||
| 5a805e75fc | |||
| 4d94a35503 | |||
| 09490f4e3e | |||
| 4539ee361f | |||
| 288c4eac26 | |||
| c2e8ad028a | |||
| 4f21cdc99c | |||
| a0bec55e97 | |||
| f838d6b566 | |||
| 27e1e2f751 | |||
| f1f800783f | |||
| d0225f0417 | |||
| 61d1cf709c | |||
| 7d168ff378 | |||
| 913e12f122 | |||
| d1eb92cf25 |
13
README.md
13
README.md
@@ -63,17 +63,14 @@ Repository
|
||||
|
||||
### 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.
|
||||
- Repo - Go to [codes_for_scrimmage/regional-final/Final_combined.py](codes_for_scrimmage/regional-final/Final_combined.py) and click the "Download" button.
|
||||
- cURL or another HTTP data transferrer -
|
||||
|
||||
```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```
|
||||
- Repo - Go to the [latest release](https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed/releases) and click the "Download as ZIP" button to get the full repository.
|
||||
- Single file - Go to the latest release and click the file link to get the raw master file.
|
||||
- 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/regional-final```
|
||||
```git clone https://codes.fll-65266.org/FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed.git```
|
||||
|
||||
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.
|
||||
|
||||
|
||||
@@ -123,10 +123,10 @@ async def solve_forge():
|
||||
await drive_base.straight(-47)
|
||||
|
||||
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 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
|
||||
|
||||
async def solve_who_lived_here():
|
||||
@@ -176,9 +176,8 @@ async def Run3():
|
||||
monitor_distance()
|
||||
)
|
||||
|
||||
|
||||
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.straight(65)
|
||||
#Solve
|
||||
@@ -187,20 +186,25 @@ async def solve_angler_artifacts():
|
||||
await drive_base.straight(-110)
|
||||
|
||||
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():
|
||||
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(900,150)
|
||||
|
||||
await drive_base.straight(-100)
|
||||
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.turn(-23, Stop.COAST_SMART)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
"""
|
||||
Run #4
|
||||
- Solves the Mineshaft explorer + 2/3 Surface Brush + 1/3 Map Reveal
|
||||
@@ -244,16 +248,20 @@ async def Run5():
|
||||
await drive_base.straight(300)
|
||||
await drive_base.straight(-200)
|
||||
await drive_base.turn(-15)
|
||||
#solving statue
|
||||
await drive_base.straight(350)
|
||||
await drive_base.turn(-103)
|
||||
await drive_base.turn(-104)
|
||||
await drive_base.straight(-80)
|
||||
await left_arm.run_angle(500, -900)
|
||||
await drive_base.straight(105)
|
||||
await left_arm.run_angle(700, 285)
|
||||
await drive_base.turn(30)
|
||||
await drive_base.straight(-60)
|
||||
await drive_base.turn(80)
|
||||
await drive_base.straight(-900)
|
||||
await drive_base.straight(120)
|
||||
await drive_base.turn(5)
|
||||
await left_arm.run_angle(500, 290)
|
||||
await drive_base.turn(18)
|
||||
await drive_base.straight(-100)
|
||||
await drive_base.turn(-90)
|
||||
await drive_base.straight(900)
|
||||
drive_base.stop()
|
||||
|
||||
|
||||
async def solve_salvage_operation():
|
||||
await drive_base.straight(500)
|
||||
Reference in New Issue
Block a user