Student Name: level 3 Class: pd 5 Q1 (PEQRXK) Assignment: level Notes: Playground: Line Detector Project Name: VEXcode Project Project Type: Python Date: Wed Sep 27 2023 level 3 - level - Page 1 of 3 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 #region VEXcode Generated Robot Configuration import math import random from vexcode_vr import * # Brain should be defined by default brain=Brain() drivetrain = Drivetrain("drivetrain", 0) pen = Pen("pen", 8) pen.set_pen_width(THIN) left_bumper = Bumper("leftBumper", 2) right_bumper = Bumper("rightBumper", 3) front_eye = EyeSensor("frontEye", 4) down_eye = EyeSensor("downEye", 5) front_distance = Distance("frontdistance", 6) distance = front_distance magnet = Electromagnet("magnet", 7) location = Location("location", 9) #endregion VEXcode Generated Robot Configuration # -----------------------------------------# # Project: VEXcode Project # Author: VEX # Created: # Description: VEXcode VR Python Project # # -----------------------------------------# Add project code in "main" def main(): drivetrain.set_drive_velocity(1000, PERCENT) pen.move(DOWN) pen.set_pen_color(RED) drivetrain.drive_for(FORWARD, 500, MM) pen.move(DOWN) pen.set_pen_color(RED) drivetrain.drive_for(FORWARD, 1200, MM) drivetrain.turn_for(LEFT, 90, DEGREES) drivetrain.drive_for(FORWARD, 400, MM) drivetrain.turn_for(LEFT, 90, DEGREES) drivetrain.drive_for(FORWARD, 1600, MM) drivetrain.turn_for(RIGHT, 90, DEGREES) drivetrain.drive_for(FORWARD, 400, MM) drivetrain.turn_for(RIGHT, 90, DEGREES) drivetrain.drive_for(FORWARD,1200, MM) # VR threads — Do not delete vr_thread(main) level 3 - level - Page 2 of 3 54