diff --git a/2.webp b/2.webp new file mode 100644 index 0000000..3d4f121 Binary files /dev/null and b/2.webp differ diff --git a/4.webp b/4.webp new file mode 100644 index 0000000..28caee3 Binary files /dev/null and b/4.webp differ diff --git a/DranSword.webp b/DranSword.webp new file mode 100644 index 0000000..6ba6229 Binary files /dev/null and b/DranSword.webp differ diff --git a/Kurama_vs_Susanoo.webp b/Kurama_vs_Susanoo.webp new file mode 100644 index 0000000..f7c90d4 Binary files /dev/null and b/Kurama_vs_Susanoo.webp differ diff --git a/Naruto-clipart-naruto-storm-3-693905-2403022_%281%29.webp b/Naruto-clipart-naruto-storm-3-693905-2403022_%281%29.webp new file mode 100644 index 0000000..be71451 Binary files /dev/null and b/Naruto-clipart-naruto-storm-3-693905-2403022_%281%29.webp differ diff --git a/Naruto_Kuramalink.webp b/Naruto_Kuramalink.webp new file mode 100644 index 0000000..acc90f1 Binary files /dev/null and b/Naruto_Kuramalink.webp differ diff --git a/Naruto_Sage_Mode.webp b/Naruto_Sage_Mode.webp new file mode 100644 index 0000000..8730059 Binary files /dev/null and b/Naruto_Sage_Mode.webp differ diff --git a/cd.webp b/cd.webp new file mode 100644 index 0000000..0fc2c27 Binary files /dev/null and b/cd.webp differ diff --git a/curseseal.gif b/curseseal.gif new file mode 100644 index 0000000..47cea09 Binary files /dev/null and b/curseseal.gif differ diff --git a/hakagenaruto.png b/hakagenaruto.png new file mode 100644 index 0000000..d648baa Binary files /dev/null and b/hakagenaruto.png differ diff --git a/naruto-sage-of-six-paths-4geux1uiu72ek9bt.jpg b/naruto-sage-of-six-paths-4geux1uiu72ek9bt.jpg new file mode 100644 index 0000000..a7d7552 Binary files /dev/null and b/naruto-sage-of-six-paths-4geux1uiu72ek9bt.jpg differ diff --git a/silowholived.py b/silowholived.py new file mode 100644 index 0000000..355ac7a --- /dev/null +++ b/silowholived.py @@ -0,0 +1,89 @@ +from hub import port +import runloop +import motor_pair +import motor + +# ====================== +# CONSTANTS +# ====================== +DRIVE_SPEED = 180 +TURN_SPEED = 180 +NORMAL_SPEED = 90 +FAST_SPEED = 720 + +ATTACH_START = 230 +SILO_DROP = 80 +WHO_LIVED_HERE_PUSH = 120 + +# ====================== +# SETUP +# ====================== +motor_pair.pair(motor_pair.PAIR_1, port.A, port.E) + +# ====================== +# FUNCTIONS +# ====================== +async def reset_attachment(): + await motor.run_to_absolute_position( + port.D, ATTACH_START, NORMAL_SPEED + ) + +async def drive(deg): + await motor_pair.move_for_degrees( + motor_pair.PAIR_1, deg, 0, velocity=DRIVE_SPEED + ) + motor_pair.stop(motor_pair.PAIR_1) + +async def turn(deg): + await motor.run_for_degrees(port.A, deg, TURN_SPEED) + +async def silo_mission(): + # Turn toward silo + await turn(-90) + + # Drive to silo + await drive(410) + + # Align + await turn(100) + await drive(80) + + # Operate silo (5 times) + for _ in range(5): + await motor.run_to_absolute_position( + port.D, ATTACH_START - SILO_DROP, FAST_SPEED + ) + await reset_attachment() + + # Back away + await drive(-250) + +async def who_lived_here_mission(): + # Turn toward Who Lived Here + await turn(90) + + # Drive to model + await drive(300) + + # Activate model + await motor.run_to_absolute_position( + port.D, WHO_LIVED_HERE_PUSH, FAST_SPEED + ) + + await runloop.sleep_ms(300) + + # Reset attachment + await reset_attachment() + + # Back away + await drive(-150) + +# ====================== +# MAIN RUN +# ====================== +async def main(): + await reset_attachment() + await silo_mission() + await who_lived_here_mission() + +runloop.run(main()) diff --git a/sixpaths.webp b/sixpaths.webp new file mode 100644 index 0000000..808e727 Binary files /dev/null and b/sixpaths.webp differ diff --git a/sp.webp b/sp.webp new file mode 100644 index 0000000..00a199a Binary files /dev/null and b/sp.webp differ diff --git a/wandwizard.png b/wandwizard.png new file mode 100644 index 0000000..26ac3a0 Binary files /dev/null and b/wandwizard.png differ