Uploaded by leosiyi2016

Inputs & Outputs Activity (1)

advertisement
Name: ___________________________________
Period: _________
10 pts.
VEX VR - Inputs & Outputs Activity
Directions: After beginning the class example, use the following directions to complete each
task and answer the corresponding questions. All questions should be answered in complete
sentences. Be sure to include screenshots of your entire VEX VR screen (this should include
the name of your file at the top) for each task.
1. Replace the bumper pressed? block with the FrontEye is near object? block from the Eye
Sensing section of the Code menu. Execute your program. (4 pts)
a. How did it behave?
It stopped immediately when it was close to the object
b. Did the code execute as you expected?
Yes, it did.
c. Why or why not?
Because it stopped once it got close to the object.
d. Screenshot here
2. Replace the FrontEye is near object? block with the distance found an object? block. Execute
your program. (4 pts)
a. How did it behave?
It did not move at all.
b. Did the code execute as you expected?
No it didn’t.
c. Why or why not?
I expected it to move, but I wasn’t really sure when it was going to stop.
d. Screenshot here.
Continue to the next page
3. Given the natural language for an operation, in the space provided write out how the
pseudocode should read. Remember that pseudocode is not actual code from VEX VR. refer to
the powerpoint slides for assistance. (2 pts)
Natural Language: “We want the VR-SDV to reach the red border on the left and stop there.”
When started
Drive left
Wait until red border is reached
Stop driving
Download