Tag along

18 Feb 2025 - 13:57 | Version 1 |

Objectives

  1. Reinforce parallel programming skills
  2. Enhance use variables
  3. Experience the pair programming technique

Assignment

  1. Create a clean program that will allow your robot to follow another robot along a track.
    1. The track will be a wide black line. The leading robot will follow that line.
    2. You are to say between 20 and 40 centimeters behind the other robot. The other robot may speed up or slow down random amounts.
    3. You may use the instructor's robot to see how the leading robot will do its task.
    4. Stop when you encounter red on the line.
  2. Additional requirements
    1. All programming must be done following the simplified version of pair programming we covered in class.
    2. It must use parallel programming. One branch for following the line, one branch for staying the right distance, and a third branch to handle the red.
    3. It must use a variable to determine the speed of the motors.

Submission instructions

  1. Due date is found on Canvas
  2. Each person should create a pdf document that contains the following information
    1. Your name
    2. Your partner's name
    3. A brief description of what you did
    4. A brief description of what your partner did
    5. How your team improved over any mistakes made last time
    6. Indicate which hints (if any) your team used
    7. How well you achieve each objective. Include a discussion about how pair programming went.
  3. Submission:
    1. Team member A submits the team's code and his/her pdf document in one zip folder.
    2. Team member B submits his/her pdf document (does not need to be zip'ed)

Hints

  1. For staying the right distance behind the robot

Challenges

  1. Learn to use your own blocks
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
This website is using cookies. More info. That's Fine