24 lines
774 B
Python
24 lines
774 B
Python
|
|
#####################################
|
||
|
|
# Solution for BioGlow Mission 2
|
||
|
|
#####################################
|
||
|
|
|
||
|
|
import bioglow_helpers as helper
|
||
|
|
from bioglow_robot_settings import * # drive_base, left_arm, right_arm, ... all come from settings
|
||
|
|
|
||
|
|
async def solve_missions(): # Exploding Seeds - Johannes
|
||
|
|
|
||
|
|
await multitask(
|
||
|
|
right_arm.run_angle(400,-100),
|
||
|
|
drive_base.arc(150,None,115),
|
||
|
|
)
|
||
|
|
await drive_base.straight(270)
|
||
|
|
await left_arm.run_angle(300,-80)
|
||
|
|
await drive_base.straight(-100)
|
||
|
|
await left_arm.run_angle(300,-100)
|
||
|
|
await drive_base.arc(-1000,None,-800)
|
||
|
|
await drive_base.stop
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__": # This run this mission stand-alone when not called from bioglow_main.py
|
||
|
|
run_task(solve_missions())
|