diff --git a/regionals/bioglow_mission_7.py b/regionals/bioglow_mission_7.py index 79c6d78..e2d9ce0 100644 --- a/regionals/bioglow_mission_7.py +++ b/regionals/bioglow_mission_7.py @@ -25,7 +25,7 @@ async def solve_missions(): # Humongous Fungus + Tree Cane # --- 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.settle_gyro(ms=10) # Move towards Mycelium,lower left arm await robot.multitask( @@ -45,8 +45,8 @@ async def solve_missions(): # Humongous Fungus + Tree Cane await robot.wait(100) # Move backward and raise tree support by turning right slightly - await robot.move(-8,speed=50,then=robot.Stop.HOLD) - await robot.turn(25,then=robot.Stop.HOLD) + await robot.move(-5,speed=50,then=robot.Stop.HOLD) + await robot.turn(26,then=robot.Stop.HOLD) # Turn and raise right arm or another way is to move forward # and raise the arm before turning @@ -55,14 +55,22 @@ async def solve_missions(): # Humongous Fungus + Tree Cane await robot.right_arm.move_by(60, speed=80) await robot.wait(100) - # Turn left and raise left arm - await robot.multitask( - robot.turn(-20,then=robot.Stop.HOLD), - robot.left_arm.move_by(-45, speed=80) - ) - + # Turn left and attempt to solve ants + await robot.turn(-90,then=robot.Stop.HOLD) + # go straight beyond the ants + await robot.move(35,then=robot.Stop.BRAKE) + + #turn and align to ant then move forward + await robot.turn(130,then=robot.Stop.BRAKE) + await robot.move(20,speed=25,then=robot.Stop.HOLD) + + #move back and turn towards home, attemp the windows to the past + await robot.move(-4,speed=60,then=robot.Stop.BRAKE) + await robot.turn(80,then=robot.Stop.HOLD) + #Return to home area and stop the robot - await robot.move(-90) + await robot.move(20,then = robot.Stop.NONE) + await robot.arc(60, degrees=60,then = robot.Stop.NONE) robot.stop() def test_something(): @@ -71,8 +79,14 @@ def test_something(): robot.left_arm.move_by(-45, speed=80), robot.right_arm.move_by(-60, speed=80) ) +def test_ants_approach(): + await robot.turn(135,then=robot.Stop.HOLD) + await robot.move(15,speed=30,then=robot.Sto) + await robot.move(-10,speed=60,then=robot.Stop.BRAKE) + await robot.turn(60,then=robot.Stop.HOLD) + await robot.move(90) if __name__ == "__main__": # This run this mission stand-alone when not called from bioglow_main.py robot.run_task(solve_missions()) #robot.run_task(test_something()) - + #robot.run_task(test_ants_approach()) \ No newline at end of file