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.

Top down image of the Number Grid Map playground. The VR Robot can be seen in the bottom lefthand corner on the number 1. A callout can be seen in the center of the bottom row on the number 5.

Learning Outcomes

  • Identify how to create a project that has a VR Robot drive along the X axis while the value of the Location Sensor is less than a threshold value.
  • Identify how to create a project that has a VR Robot drive along the X axis while the value of the Location Sensor is greater than a threshold value.
  • Identify the X, Y coordinates of numbers on the Number Grid Map Playground.
  • Assign the correct comparison (greater than or less than) operator when driving the VR Robot to a specific number on the Number Grid Map Playground.
  • Explain how the coordinate values change as a VR Robot drives (e.g. as a VR Robot drives right on the Playground, the X value increases).

Name and Save the Project

  • Start a new text project and select the Number Grid Map Playground when prompted.

     Number Grid map Tile in VEXcode VR. a side view of the playground can be seen with a VR robot icon in the top right corner. Beneath that icon is a silver VR logo and gold VR logo. At the bottom is the title 'Number Grid Map.'

  • Name the project Unit6Lesson2.
    VEXcode VR Toolbar with a callout box on the Project name. The project name reads 'Unit 6 Lesson 2'.

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