Add shout-fll-scrimmage/bioglow_mission_2.py
This commit is contained in:
24
shout-fll-scrimmage/bioglow_mission_2.py
Normal file
24
shout-fll-scrimmage/bioglow_mission_2.py
Normal file
@@ -0,0 +1,24 @@
|
||||
#####################################
|
||||
# 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())
|
||||
Reference in New Issue
Block a user