import light
import drive
import time


while not light.get_optical_sensor(3) < 50:
  drive.drive_rpm(50, 50)
drive.stop_rpm(0)
time.sleep_ms(int(1000))
drive.drive_rpm(-50, 0)
time.sleep_ms(int(1000))
drive.stop_rpm(0)
time.sleep_ms(int(1000))
drive.drive_rpm(-50, -50)
time.sleep_ms(int(2000))
drive.stop_rpm(0)
