Skip to main content

Match Load Challenge

Create an algorithm to use [Drive for] and [Turn to heading] blocks, the GPS Sensor, the Arm Motor, and the Intake Motor to code the Hero Bot to score the Robot Preload Triball in the Blue Alliance Goal first, then launch three Match Load Triballs in the Red Alliance Goal, and score three Match Load Triballs in the Offensive Zone. Use the timer to evaluate the efficiency of the two Match Load Triballs scoring methods.

  • Select the VRC Virtual Skills - Over Under Playground.
  • Use the Pre-Match checklist to select a Starting Location, a Starting Direction, and Robot Preload “Yes” for the robot.
  • Use the Pre-Match checklist to select a desired Field Preload Location.
  • Code the Hero Bot to score the Robot Preload Triball into the Blue Alliance Goal. 
  • Code the robot to separately pick up three Match Load Triballs on the bottom left side of the Field and score them in the Red Alliance Goal. Use the timer to measure the time of this process.
    • Reset the timer.
    • Drive the Hero Bot to the position to pick up the Match Load Triball on the bottom left side of the Field. Spin the Intake Motor to pick up the Triball. 
    • Drive the robot toward the Red Alliance Goal. Spin the Intake Motor to launch the Triball into the Red Alliance Goal.
    • Click on the 'LZ 2' button highlighted in orange to place a Triball in the Match Load Zone.
    • Use a loop to code the robot to repeat the above actions for a set number of times to score three Match Load Triballs to the Red Alliance Goal.
    • Use the [print] block to print the timer value to the Print Console.
  • Code the robot to separately pick up three Match Load Triballs on the bottom left side of the Field and score them in the Offensive Zone. Use the timer to measure the time of this process.
    • Reset the timer.
    • Drive the Hero Bot to the position to pick up the Match Load Triball on the bottom left side of the Field. Spin the Intake Motor to pick up the Triball.
    • Drive the robot toward the Offensive Zone. Spin the Intake Motor to launch the Triball into the Offensive Zone.
    • Click on the 'LZ 2' button highlighted in orange to place a Triball in the Match Load Zone.
    • Use a loop to code the robot to repeat the above actions for a set number of times to score three Match Load Triballs to the Offensive Zone.
    • Use the [print] block to print the timer value to the Print Console.

Helpful Hints

  • For help with using Match Loads in VRC Over Under for VEXcode VR, please see this article.
  • Use the reset timer block from the Sensing category to reset the timer value back to 0 seconds.

    VEXcode Reset timer block that reads 'reset timer'.

    • Matching Python command:

      brain.timer.clear()
  • To prevent the Triball from bouncing back or getting stacked on top of another Triball, avoid consistently launching the Triballs to the Goal or the Offensive Zone from the same position and in the same direction.
  • Use the pick random block from the Operators category to adjust the robot Heading within a range to launch the Triballs in different scoring directions.

    VEXcode Turn to heading block containing a Random block that all together reads 'turn to heading (pick random 30 to 120) degrees'.

    • Matching Python command:

      drivetrain.turn_to_heading(random.randint(30, 120), DEGREES)
  • Use the repeat block from the Control category to code the VR Robot to repeat the blocks contained inside for a set number of times.

    Empty VEXcode Repeat block that reads 'repeat 3'.

    • Matching Python command:

      for repeat_count in range(3):
      	wait(5, MSEC)