break

wheels.on(-100, SpeedPercent(15))

while gyro.angle > -82:
    print(gyro.angle)

wheels.on(0, SpeedPercent(50))
while proximity_sensor.distance_centimeters >= 10:
    pass
wheels.off(brake=True)

# front_claw.on_for_degrees(SpeedPercent(20), -570)  # clenches the claw
wheels.on_for_rotations(0, SpeedPercent(25), 0.5)  # moves up to get the claw on the
# front_claw.on_for_degrees(SpeedPercent(100), 570, block=False)  # opens the claw again
spear_head.on_for_rotations(SpeedPercent(-65), 1, block=True)  # goes forward
spear_head.on_for_rotations(SpeedPercent(65), 1, block=False)  # goes backward

# front_claw.on_for_degrees(SpeedPercent(20), -570)
wheels.on(0, SpeedPercent(-100))

while not touch_sensor.is_pressed:
    pass

wheels.on_for_rotations(0, SpeedPercent(50), 0.5)

wheels.off()

time.sleep(1)
gyro.mode = GyroSensor.MODE_GYRO_CAL
gyro.mode = GyroSensor.MODE_GYRO_RATE