Page 31 - Movement Challenge
P. 31

2.  Create a List of Steps Using the Comment Blocks


                  What Are Comments?
                  Comments are usually added to projects to explain what a programmer wanted parts of the
                  project to do. So they are helpful when collaborating and troubleshooting.

                  In this case, we are going to use them to help us make a general list of the steps the robot
                  needs to do to complete its task.


                  What is the First Thing the Robot is Going To Do?
                  In the project, use the comment blocks to create a basic sequence in your group. The
                  Recorder or Programmer should list the first 10 steps in VEXcode IQ Blocks, with a comment
                  block for each step. See the example here.

                  The text in the block does not have to be as specific as the blocks themselves, as this is just
                  a guide to follow when you begin to create the actual coding sequence.




































                  3.  Create the Coding Sequence


                  Now, it’s time to translate those steps into a block sequence.

                     Your robot should begin the path facing forward, so drag and drop the drive for block
                     and set the parameters to match the first step in your path.
                     Look for the next step, and drop the turn for block and set the parameters to match the
                     next step in your path.
                     When you get into a room, add an indicator block (like set Touch LED color or play
   26   27   28   29   30   31   32   33   34   35   36