Project+102

P﻿roje﻿ct #102 Bre﻿aking a Large T﻿ask into Smaller Tasks

media type="custom" key="8799860" align="center"

NXT Robot Doing a Figure-8

**Objectives: **

When you complete this lesson, you should understand the following:

How a Swing Turn differs from a Point Turn. How to use internal documentation to assist with program development/debugging. How to take a large task in which the Robot is to perform and break it into smaller tasks. How to convert the small task into pseudo code (Ordered English statements that solve the problem). How to change pseudo code into RobotC instructions.

**Procedures:**

Please review the following videos before you begin the task:

Programmer and the Machine Planning and Behaviors Turn and Reverse <span style="font-family: 'Comic Sans MS',cursive; font-size: 16px; line-height: 24px;">Manual Straightening

<span style="font-family: 'Comic Sans MS',cursive; font-size: 16px; line-height: 24px;">Then review the following document: **//Comments//** (located in the Reference Section)

<span style="font-family: 'Comic Sans MS',cursive; font-size: 16px;">Watch the Figure-8 video (above) to understand the major task the robot is to complete (traverse panels in a Figure-8 manner). You will then analyze the large task (traversing the entire course) and break it into smaller tasks (a series of turns integrated with forward movements), and write a plan ( pseudo code) that will solve the problem. Convert the pseudo code into RobotC instructions, compile, download, and test your program. Continue modifying and testing the program until the Robot correctly maneuvers around the Figure-8 course. Please provide one comment (internal documentation) for each section of code that defines a particular behavior.

<span style="font-family: 'Comic Sans MS',cursive; font-size: 16px;">Note: t <span style="font-family: 'Comic Sans MS',cursive; font-size: 16px; line-height: 24px;">he Only RobotC statements you are to use will be the **Motor** and **Wait** statements.


 * <span style="color: #0000ff; font-family: 'Comic Sans MS',cursive; font-size: 20px; letter-spacing: 0px;">Evaluation: **

<span style="font-family: 'Comic Sans MS',cursive; font-size: 16px;">You can evaluate your work using the following three-point rubric:

<span style="font-family: 'Comic Sans MS',cursive; font-size: 16px;">**Three points**: You were able to work successfully together and demonstrated proficient understanding of how to break a large task into smaller tasks. You were able to complete an adequate solution to the problem in pseudo code and ultimately convert it into RobotC Code. The behavior of the robot successfully completed the Figure-8 course.

<span style="font-family: 'Comic Sans MS',cursive; font-size: 16px;">**Two points:** You were able to work together and discuss the problems that were encountered. You attempted to break the major task into smaller tasks and constructed some pseudo code. You demonstrated some understanding in writing pseudo code and being able to convert it into RobotC statements. The behavior of your robot partially completed the Figure-8 course.

<span style="font-family: 'Comic Sans MS',cursive; font-size: 16px;">**One point:** You worked poorly together and minimal understanding was demonstrated as to how to break a large task into smaller tasks, express solutions to the tasks in pseudo code, or convert the pseudo code into RobotC instructions. The robot behavior demonstrated very little of the correct solution.

** Good Luck and Have FUN! **