Close Drive Challenge
Challenge: Use [Drive for] and [Turn for] blocks to code the VR Robot to drive from the Start Position (green square) to the End Position (red square) on the Maze+ Playground. The object of the activity is to get the robot to stop as close as possible to the Maze Wall without touching it. The shortest distance between the robot and the wall wins! In case of a tie, the fastest time wins!
- Select the Wall Maze+ Playground.
- Download the .vrmaze file from this folder and upload the maze in the Playground.
- For help with uploading and downloading mazes in the Wall Maze + Playground, see this article.
- Code the VR Robot to drive from the Start Position to the End Position.
- Set the desired drive velocity and turn velocity for the Drivetrain.
- Adjust the drive distance to get the robot to stop as close as possible to the Maze Wall without touching it.
- Monitor the value of the distance from block in the Monitor Console. Use the [print] block to print the distance of the wall to the Print Console.
- Monitor the value of the timer in the Monitor Console. Use the [print] block to print the time the robot took to the Print Console.
Helpful Hints
- The distance across one maze square is 300mm.
- For help with using the Monitor Console to monitor data in VEXCode VR, see this article. For help with using the Monitor Console to monitor data in VEXCode VR with Python, see this article.

- Use the FrontDistance Reporter block from the Sensing category to get the distance of the nearest object from the Distance Sensor.
- Matching Python command:

- Matching Python command:
- Use the timer value Reporter block from the Sensing category to report the timer value.
- Matching Python command:

- Matching Python command:
- To learn more about Robot Features in VEXcode VR, see this article.
- Use the print block from the Look category to print the values to the Print Console.
- Matching Python command:

- Matching Python command: