Skip to main content
VIQRC Virtual Skills - Slapshot

# Explore Locations

Create a coordinate system on the VIQC Virtual Skills Field with the initial position of the Hero Bot as the origin(0,0). Use [Drive for], [Turn for], and [Spin for] blocks to code the Hero Bot to remove all the Discs from a blue Dispenser, pick up a Disc, and score it in the Goal Zone. Create an algorithm to find the X and Y coordinates of the location for the robot to knock the Dispenser, and the X and Y coordinates of the location for the robot to pick up and score the Disc.

• Select the VIQC Virtual Skills - Slapshot Playground.
• Create an algorithm to find and record the X and Y coordinates of the robot’s position after driving for a certain distance using the drive distance and the drivetrain heading.
• Drive the robot to remove all the Discs from a blue Dispenser. Use the algorithm to track the X and Y coordinates of the robot’s position. Use the [print] block to print the X and Y coordinates of the location for the robot to knock the Dispenser to the Print Console.
• Drive the robot to pick up a Disc and launch it in the Goal Zone. Use the algorithm to track the X and Y coordinates of the robot’s position. Use the [print] block to print the X and Y coordinates of the location for the robot to pick up and launch the Disc to the Print Console.

#### Helpful Hints

• To identify the X and Y coordinates of the Hero Bot on the Field, set the initial position of the Hero Bot as the origin(0,0) of the coordinate system on the VIQC Virtual Skills.
• Use two variables to store the X and Y coordinates of the Hero Bot. Use the set blocks from the Variables category to set the values of the X and Y coordinates to 0 at the beginning of the project.

• Matching Python command:
• Use the Reporter blocks from the Sensing category to get the drivetrain heading value from the Inertial Sensor.
• Matching Python command:
• Use the drive distance and drivetrain heading to calculate the X and Y coordinates after driving for a certain distance.

• For more information about VIQC Virtual Skills Field Dimensions, please click here.