Skip to main content

Lesson 2: Driving to a Set of Coordinates (X axis)

In this Lesson, you will create a project using the Location Sensor to navigate the VR Robot to the number ‘5’ on the Number Grid Map Playground. In the mini challenge, you will apply these skills to navigate the VR Robot to the number ‘8’ and then to the number ‘4’ on the Number Grid Map Playground.

A top-down view of the Number Grid Map playground, with the number 5 highlighted by a red box. The VR robot starts on number 1, and the number 5 square is four spaces to the right.

Learning Outcomes

  • Identify how to create a project that has a VR Robot drive along the X axis until the value of the Location Sensor is greater than a threshold value.
  • Identify how to create a project that has a VR Robot drive along the X axis until the value of the Location Sensor is less than a threshold value.
  • Identify the X,Y coordinates of numbers on the Number Grid Map Playground.
  • Assign the correct conditional (greater than or less than) in an operator block when driving the VR Robot to a specific number on the Number Grid Map Playground.

Name and Save the Project

  • Start a new project in VEXcode VR and name the project Unit6Lesson2.
VEXcode VR Toolbar with the 'Project Name' button highlighted in a red box, to the left of the Select Playground button. The project name is set to Unit 6 Lesson 2.

Select the Next button to continue with the rest of this Lesson.