Skip to main content

Testing the [Drive for] Block

Use [Drive for] blocks to code the VR Robot to move forward and backward in the Grid Map Playground

VEXcode VR toolbar with the Tutorials icon highlighted in between the File and Learn icons.

  • View the Driving Forward and Backward Tutorial
  • Select the Grid Map Playground.
  • Drag a [Drive for] block into the Workspace and connect it to the {When started} block. Run the project. What happened? How did the VR Robot move?
  • Adjust the parameters in the [Drive for] block to make the VR Robot: 
    • Drive forward for 24 inches VEXcode VR Driving Forward and Backward Tutorial icon.
    • Drive forward for 1000mm
    • Drive in reverse for 50mm
    • Drive forward to the other side of the playground

Helpful Hints

View the Getting Started Tutorial in VEXcode VR to learn tips for your first project.

Reset Button from the VEXcode VR Playground window. Select the ‘Reset’ button after your project is done running to reset the playground and the VR Robot to the original state.