Skip to main content

Knock The Dispensers

Use [Drive for], [Turn for], and [Spin for] blocks to code the Hero Bot to drive to a blue Dispenser, remove all the Discs from the blue Dispenser, drive to the yellow Dispenser, and remove all the Discs from the yellow Dispenser.

  • Select the VIQC Virtual Skills - Slapshot Playground.
  • Drive the Hero Bot to a blue Dispenser.
  • Code the Hero Bot to spin the Arm Motor to raise the Arm to release the Discs from the blue Dispenser.
  • Drive the Hero Bot to the yellow Dispenser.
  • Code the Hero Bot to spin the Arm Motor to raise the Arm to release the Discs from the yellow Dispenser.

Helpful Hints

  • Each full tile on the VIQC Virtual Skills Field is 300mm by 300mm.
  • Use the spin ArmMotor block from the Motion category and select the forward direction to raise the Arm.
    VEXcode Spin for block that reads 'spin ArmMotor forward for 90 degrees'.
    • Matching Python command:

      arm_motor.spin_for(FORWARD, 90, DEGREES)
  • Use the spin ArmMotor block from the Motion category and select the reverse direction to lower the Arm.
    VEXcode Spin for block that reads 'spin ArmMotor reverse for 90 degrees'.
    • Matching Python command:

      arm_motor.spin_for(REVERSE, 90, DEGREES)