15.Which of the following best describes the project flow in this VEXcode VR project?a.The VR Robot will begin by moving forward 300 millimeters (mm) and will turn right 90 degrees. TheVR Robot will then turn to a heading of 0 degrees. The VR Robot will repeat all these steps twoadditional times for a total of three repeats.b.The VR Robot will begin by moving forward 300 millimeters (mm) and will turn right 90 degrees. Thesetwo commands will be executed two times in a row because of the [Repeat] loop. The VR Robot willthen turn to a heading of 0 degrees. The VR Robot will repeat all these steps two additional times for atotal of three repeats.c.The VR Robot will begin by moving forward 300 millimeters (mm) and will turn right 90 degrees. TheVR Robot will then turn to a heading of 0 degrees. The VR Robot will repeat all these steps oneadditional time for a total of two repeats.d.The VR Robot will begin by moving forward 300 millimeters (mm) and will turn right 90 degrees. Thesetwo commands will be executed two times in a row because of the [Repeat] loop. The VR Robot willthen turn to a heading of 0 degrees.
In the Disk Maze Challenge, the VR Robot is checking the condition of the Front Eye Sensor to see what color is being reported. Each of the colors matches to a different behavior the VR Robot should perform.
For Your Information The [If then] block is a C block that accepts Boolean reporter blocks as input. Using the patterns observed while solving the Disk Maze in Lesson 2, a project can be created where the VR Robot makes a decision if the condition reports as TRUE or FALSE. The [If then] block will run one time in a project. In this example, the Front Eye Sensor will report TRUE if a green object is detected, and execute the command inside the C block - turn right for 90 degrees. If a green object is not detected, the project will move to the next command in the stack.
Select the Next button to continue with the rest of this Lesson. |