Update regionals/bioglow_mission_8.py
This commit is contained in:
@@ -27,19 +27,15 @@ async def solve_missions(): # Research Platform - Johannes
|
||||
# --- 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()
|
||||
|
||||
robot.reset()
|
||||
await robot.arc(128, cm=34) # arc: circle on the robot's RIGHT (128 cm radius), FORWARD 34 cm along it (nose turns right)
|
||||
await robot.arc(-140, cm=35.5) # arc: circle on the robot's LEFT (140 cm radius), FORWARD 35.5 cm along it (nose turns left)
|
||||
await robot.move(14.5, speed=18, acceleration=400) # 14.5 cm forward, 18% speed, 400 mm/s² accel
|
||||
await robot.lift_up(900, speed=93)
|
||||
await robot.lift_down(300, speed=100)
|
||||
await robot.move(-15, speed=18, acceleration=400) # 15 cm backward, 18% speed, 400 mm/s² accel
|
||||
await robot.turn(20, speed=100, acceleration=500) # 20° right, 100% turn speed, 500 °/s² turn accel
|
||||
await robot.move(6.3, speed=100) # 6.3 cm forward, 100% speed
|
||||
await robot.arc(-100, cm=-110, speed=100) # arc: circle on the robot's LEFT (100 cm radius), BACKWARD 110 cm along it (back end swings left, nose turns right) | 100% speed
|
||||
robot.stop() # FIXED: was `await drive_base.stop` (crashed)
|
||||
|
||||
await robot.arc(128, cm=34.2, speed=100, then=robot.Stop.HOLD) # circle on the RIGHT, forward 34.2 cm
|
||||
await robot.arc(-140, cm=35, speed=100, then=robot.Stop.HOLD) # circle on the LEFT, forward 35 cm
|
||||
await robot.move(10.6, speed=18, acceleration=400)
|
||||
await robot.lift_up(1500, speed=93) # was helper.multilift(1500)
|
||||
await robot.lift_down(250, speed=93) # was helper.multilift(-250)
|
||||
await robot.arc(-100, cm=-110, speed=100, turn_speed=100, turn_acceleration=500)
|
||||
robot.stop()
|
||||
|
||||
|
||||
if __name__ == "__main__": # This run this mission stand-alone when not called from bioglow_main.py
|
||||
|
||||
Reference in New Issue
Block a user