Tag along
Objectives
- Reinforce parallel programming skills
- Enhance use variables
- Improve pair programming technique
Assignment
- Create a clean program that will allow your robot to follow another robot along a track.
- The track will be a wide black line. The leading robot will follow that line.
- You are to say between 20 and 40 centimeters behind the other robot. The other robot may speed up or slow down random amounts.
- You may use the instructor's robot to see how the leading robot will do its task.
- Stop when you encounter red on the line.
- Additional requirements
- All programming must be done following the simplified version of pair programming we covered in class.
- 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.
- It must use a variable to determine the speed of the motors.
Submission instructions
- Due date is found on Canvas
- Each person should create a pdf document that contains the following information
- Your name
- Your partner's name
- A brief description of what you did
- A brief description of what your partner did
- How your team improved over any mistakes made last time
- Indicate which hints (if any) your team used
- How well you achieve each objective. Include a discussion about how pair programming went.
- Submission:
- Team member A submits the team's code and his/her pdf document in one zip folder.
- Team member B submits his/her pdf document (does not need to be zip'ed)
Hints
- For staying the right distance behind the robot
Challenges
- Learn to use your own blocks
This topic: CenterForComputing
> WebHome >
SyllabiFall2022 >
CSC102SylF2022 > CSC102F2022Lab6
Topic revision: r4 - 2022-08-30 - cathybareiss