Update regionals/bioglow_mission_3_4_5_experimental.py

This commit is contained in:
2026-11-15 21:55:17 +00:00
parent f4f66fe2b4
commit ce94cea83f

View File

@@ -27,28 +27,39 @@ async def solve_missions(): # Flip The Rock, Lucky Leaves, Reaching Roots - Ris
# so turns are measured from a steady heading. # so turns are measured from a steady heading.
await robot.settle_gyro(ms=10) 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.right_arm.move_by(6, 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 #Wawait 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.right_arm.move_by(270, speed=100) # Solve the root by spinning the arm
#await robot.wait(150)
await robot.move(-25) #move back #await robot.right_arm.move_by(180, speed=100)
await robot.move(50) #move back
# Aligning to Lucky leaves
await robot.multitask( await robot.multitask(
robot.turn(-12) , # 30° left robot.move(-30),
robot.left_arm.move_by(90, speed=80) 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 # 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.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.move(-10,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.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 # Turns to Flip the rock and solve it
await robot.turn(-75,then=robot.Stop.HOLD) # 75° left #await robot.turn(-75,then=robot.Stop.HOLD) # 75° left
await robot.move(20) #await robot.move(20)
# Return to home area and stop the robot # Return to home area and stop the robot
await robot.move(-50) await robot.move(-50)