Files
bioglow_solutions/shout-fll-scrimmage/bioglow_mission_11_experimental.py

36 lines
1.1 KiB
Python
Raw Normal View History

#####################################
# Solution for BioGlow Mission 11
#####################################
import bioglow_helpers as helper
from bioglow_robot_settings import * # drive_base, left_arm, right_arm, ... all come from settings
async def solve_missions(): # Windows to the past
drive_base.reset(0,0) # always reset drivebase for heading reset especially with turns
await multitask(
right_arm.run_angle(800,-90),
drive_base.straight(100)
)
await drive_base.turn(-45)
await drive_base.straight(420)
helper.set_speed(100,100,100,100)
await multitask(
left_arm.run_angle(500,45),
right_arm.run_angle(800,140)
)
helper.set_default_speed()
#return home
await drive_base.straight(-500)
await multitask(
left_arm.run_angle(100,-45),
right_arm.run_angle(800,-90)
)
#helper.reset_arms()
helper.set_default_speed()
drive_base.stop()
if __name__ == "__main__": # This run this mission stand-alone when not called from bioglow_main.py
run_task(solve_missions())