Skip to main content

Triballs on the Field

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, the Field Preload Triball, and the Green Field Triballs into the Goals. The fastest time wins!

  • 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.
  • Plan a path for the robot to pick up and launch the Triballs sequentially.
  • Code the Hero Bot to score the Robot Preload Triball into the Blue Alliance Goal. 
  • Code the Hero Bot to score the Field Preload Triball into the Blue Alliance Goal. 
  • Drive the robot following the planned route, pick up the first Green Field Triball, and score it the Red Alliance Goal. 
    • Drive the robot to a position to pick up the first Field Triball in the planned sequence. 
    • Code the robot to spin the Intake Motor to pick up the Triball.
    • Navigate the robot to a scoring position and turn in a scoring direction.
    • Code the robot to spin the Intake Motor to launch the Triball to the Goal.
  • Code the Hero Bot to pick up each of the Field Triballs in the planned sequence and score it into the Red Alliance Goal.
  • Use the [print] block to print the timer value to the Print Console.

Helpful Hints

  • For more information about identifying the (X, Y) coordinates of game elements in the VRC Over Under Playground, please click here.
  • Efficiently coordinate and optimize the execution time of various robot behaviors to minimize the cycle time required for Striker to score a Triball.
    • Use the and don’t wait feature of the spin ArmMotor to position block to enable other blocks to continue running while the Arm Motor spins. To use this feature, select the arrow to expand and don't wait.

      VEXcode Spin to position block that reads 'spin ArmMotor to position 1200 degrees and don't wait'.

      • Matching Python command:

        arm_motor.spin_to_position(1200, DEGREES, wait=False)
  • Use the and don’t wait feature of the drive for block ( or turn to heading block) in conjunction with the wait block from the Control category to coordinate the overlap time of the robot behaviors, enabling the robot to perform other behavior while in motion and ensure the successful completion of the overall task. To use this feature, select the arrow to expand and don't wait. For example, in some situations, the robot can start to spin the Intake Motor for launching the Triball while motions are still in progress avoiding unnecessary idle periods to save time.

    Stack of three VEXcode blocks. The first block is a Drive for block that reads 'drive forward for 1200mm and don't wait'. The second block is a Wait block that reads 'wait 0.5 seconds'. The last block is a Spin for block that reads 'spin IntakeMotor reverse for 375 degrees'.

    • Matching Python command:

      drivetrain.drive_for(FORWARD, 1200, MM, wait=False)
      wait(0.5, SECONDS)
      intake_motor.spin_for(REVERSE, 375, DEGREES)