From ce94cea83f404208e7017e13ea089547862afd6c Mon Sep 17 00:00:00 2001 From: Johannes <31liwaj@elmbrookstudents.org> Date: Sun, 15 Nov 2026 21:55:17 +0000 Subject: [PATCH] Update regionals/bioglow_mission_3_4_5_experimental.py --- .../bioglow_mission_3_4_5_experimental.py | 39 ++++++++++++------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/regionals/bioglow_mission_3_4_5_experimental.py b/regionals/bioglow_mission_3_4_5_experimental.py index 586e5df..f0d47ad 100644 --- a/regionals/bioglow_mission_3_4_5_experimental.py +++ b/regionals/bioglow_mission_3_4_5_experimental.py @@ -27,28 +27,39 @@ async def solve_missions(): # Flip The Rock, Lucky Leaves, Reaching Roots - Ris # 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.right_arm.move_by(6, speed=50) # Lower the right arm to align to the root + #Wawait robot.move(90,speed=70,then=robot.Stop.BRAKE) # Move straight towards the root 90 cm + #await robot.right_arm.move_by(270, speed=100) # Solve the root by spinning the arm + #await robot.wait(150) + #await robot.right_arm.move_by(180, speed=100) + await robot.move(50) #move back await robot.multitask( - robot.turn(-12) , # 30° left - robot.left_arm.move_by(90, speed=80) + robot.move(-30), + robot.right_arm.move_by(100, speed=100) ) + #await robot.right_arm.move_by(100, speed=100) # Solve the root by spinning the arm + #await robot.move(50) #move back + #await robot.move(-30) #move back + #await robot.right_arm.move_by(180, speed=100) + await robot.turn(35) #move back + + await robot.move(60) + # Aligning to Lucky leaves + #await robot.multitask( + await robot.turn(-73) , # 30° left + await robot.left_arm.move_by(90, speed=80) + #) # Collect leaves - await robot.move(12,speed=40) + await robot.move(25,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) + #await robot.move(-10,then=robot.Stop.COAST) # 15cm backward + await robot.arc(-30, degrees=-87) # 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) + #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)