Update regionals/bioglow_mission_1.py
This commit is contained in:
@@ -31,13 +31,16 @@ async def solve_missions(): # Drone Survey - Johannes
|
||||
|
||||
await robot.move(60, then=robot.Stop.NONE) # 60 cm forward
|
||||
await robot.move(-5, then=robot.Stop.NONE)
|
||||
await robot.turn(-30, then=robot.Stop.HOLD) # 35° left
|
||||
await robot.move(60, then=robot.Stop.NONE) # 3 cm backward
|
||||
await robot.turn(45, then=robot.Stop.HOLD) # 75° right
|
||||
await robot.move(70, then=robot.Stop.NONE) # 70 cm forward
|
||||
await robot.turn(-31, then=robot.Stop.HOLD) # 35° left
|
||||
await robot.move(50, then=robot.Stop.HOLD) # 3 cm backward
|
||||
await robot.turn(-27, then=robot.Stop.HOLD) # 35° left
|
||||
await robot.move(13, speed=18, acceleration=100)
|
||||
await robot.move(-4, speed=18, acceleration=200)
|
||||
await robot.turn(65, then=robot.Stop.HOLD) # 75° right
|
||||
await robot.move(85, then=robot.Stop.NONE) # 70 cm forward
|
||||
robot.stop() # FIXED: was `await drive_base.stop` (crashed)
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__": # This run this mission stand-alone when not called from bioglow_main.py
|
||||
robot.run_task(solve_missions())
|
||||
robot.run_task(solve_missions())
|
||||
Reference in New Issue
Block a user