Tags:
tag this topic
create new tag
view all tags
<b><u>Lab 5 Tuesday, September 21, 2021</u></b> Topic: Loops, Selection, and Parallel Programming Description: This lab session will focus on having your vehicle play Follow the Leader. Details: 1 The leader will be carrying the cuboid at most 1 inch above the floor. Which set of block colors in view is arbitrary. 1 The leader may not change directions at any given time. 1 The leader may change speed to increase/decrease distance but needs to move slowly! Components: 1 Go to *Units* and select *Robot Trainer*. Complete the <b>Objects and Obstacles </b>tutorial. 1 Use the ultrasonic sensor to stay between 15 and 21 centimeters behind the leader and adjust the speed of the vehicle as the leader adjusts their speed. Utilize variables to adjust the movement speeds. 1 If the leader gets to within 6 centimeters, have your vehicle stop moving. If the leader moves away, have your vehicle start moving again. 1 Using parallel programming and the existing color sensor that is facing down, stop your vehicle if it runs over a red spot. The spot will be bigger than the vehicle. 1 If the center brick button is pressed, have the brick say Goodbye (please at a low volume for everyones sake) and your vehicle should stop. Extra Credit: 1 Use parallel programming to display the current distance. 1 Create your own block to follow the leader.
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2021-09-15
-
craiggoehler
Home
Site map
Assessment web
BethelAIResources2026 web
CenterForComputing web
ChatGPT web
Intro2AIatBethel web
Main web
Sandbox web
TWiki web
CenterForComputing Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback