Μετακίνηση του νυχιού#

Moving the Claw

This tutorial covers how to move the claw on your Clawbot IQ in VEXcode IQ (1st gen). By the end, you’ll have a project that closes the claw, waits, then opens it again.

Make sure your robot is configured with the Drivetrain, Gyro version of the Clawbot IQ build, so you see the ClawMotor blocks in the toolbox.

  1. Attach the spin motor for block to the when started block. This closes the claw.

The spin motor for block, closing the ClawMotor.#
όταν ξεκινά
περιστροφή [ClawMotor v] [close v] για (90) [μοίρες v] ▶
  1. Attach a wait block below it, to pause before opening the claw again.

A wait block, below the spin motor for block.#
όταν ξεκινά
περιστροφή [ClawMotor v] [close v] για (90) [μοίρες v] ▶
περίμενε (1) δευτερόλεπτα
  1. Attach another spin motor for block below the wait block.

A second spin motor for block, below wait.#
όταν ξεκινά
περιστροφή [ClawMotor v] [close v] για (90) [μοίρες v] ▶
περίμενε (1) δευτερόλεπτα
περιστροφή [ClawMotor v] [close v] για (90) [μοίρες v] ▶
  1. Change its direction parameter to open, to open the claw back up.

Screenshot of the finished project, with the second spin motor for block's direction dropdown open, showing close and open options, and open selected.
  1. Make sure your robot is connected to VEXcode, then select Download to download the project to the Brain.

Screenshot of the VEXcode IQ (1st gen) toolbar with the Download button highlighted.
  1. Select Run to run the project. This project will now close the claw, wait, then open it again.

Screenshot of the VEXcode IQ (1st gen) toolbar with the Run button highlighted.