From 64598ef144d332b30e3165c61022b778bdc35a1b Mon Sep 17 00:00:00 2001 From: Johannes <31liwaj@elmbrookstudents.org> Date: Tue, 17 Nov 2026 00:02:10 +0000 Subject: [PATCH] Delete regionals/bioglow_missions_3_4_5.py El Confusion. --- regionals/bioglow_missions_3_4_5.py | 58 ----------------------------- 1 file changed, 58 deletions(-) delete mode 100644 regionals/bioglow_missions_3_4_5.py diff --git a/regionals/bioglow_missions_3_4_5.py b/regionals/bioglow_missions_3_4_5.py deleted file mode 100644 index 586e5df..0000000 --- a/regionals/bioglow_missions_3_4_5.py +++ /dev/null @@ -1,58 +0,0 @@ -##################################### -# Solution for BioGlow Missions 3,4,5 -##################################### - -import robot # drive base, arms, sensors and moves all come from robot.py - -# UNITS used in this file ----------------------------------------------------- -# robot.move(cm) distance in cm (+ forward, - backward) -# robot.turn(degrees) degrees (+ right / clockwise, - left) -# robot.arc(radius_cm, ...) radius in cm (+ circle on the right, - on the left), -# then degrees= around the circle or cm= along it (+ forward, - backward) -# speed= % of top speed, 1-100 (normal: 80% drive, 72% turn) -# acceleration= how fast it speeds up and slows down: -# mm/s² for move/arc (normal 500), °/s² for turn (normal 200) -# (² means "per second": 200 mm/s² = 200 mm/s faster every second) -# arm.move_by(degrees, speed=) arm turn in degrees, speed in % of the arm's top speed -# ------------------------------------------------------------------------------ - -async def solve_missions(): # Flip The Rock, Lucky Leaves, Reaching Roots - Rishabh - - - #await robot.home_arms() # arms: where they are now = 0 - robot.drive_base.reset() # reset drive base - - # --- LET THE GYRO SETTLE ---------------------------------------------- - # Wait half a second (and until the hub is perfectly still) before moving, - # so turns are measured from a steady heading. - await robot.settle_gyro(ms=10) - - await robot.right_arm.move_by(5, speed=50) # Lower the right arm to align to the root - await robot.move(90,speed=70,then=robot.Stop.BRAKE) # Move straight towards the root 90 cm - await robot.right_arm.move_by(180, speed=100) # Solve the root by spinning the arm - - await robot.move(-25) #move back - - # Aligning to Lucky leaves - await robot.multitask( - robot.turn(-12) , # 30° left - robot.left_arm.move_by(90, speed=80) - ) - - # Collect leaves - await robot.move(12,speed=40) - await robot.left_arm.move_by(-90, speed=47) # left arm -90°, 47% arm speed - - await robot.move(-15,then=robot.Stop.COAST) # 15cm backward - await robot.arc(-30, degrees=-90) # arc: circle on the robot's LEFT (30 cm radius), BACKWARD 90° (back end swings left, nose turns right) - - # Turns to Flip the rock and solve it - await robot.turn(-75,then=robot.Stop.HOLD) # 75° left - await robot.move(20) - - # Return to home area and stop the robot - await robot.move(-50) - robot.stop() - -if __name__ == "__main__": # This run this mission stand-alone when not called from bioglow_main.py - robot.run_task(solve_missions()) \ No newline at end of file