Name:___________________________________________________Date:____________________Computer Science Fundamentals with VEXcode VR CourseUnit 4 - Lesson 2: Using the [Wait until] Block Quiz1.Which statement is TRUE for non-waiting blocks?a.They allow the stack to continue even if the block's behavior is not yet complete.b.They pause the rest of the stack until that block's behavior has been completed.c.They cause the VR Robot to shut down.d.They are always blocks from the Looks category. In this Lesson, you will create a project using the Bumper Sensor and [Wait until] block. In the mini-challenge, you will apply these skills to navigate from the beginning of the Wall Maze to the letter ‘A.’ Learning Outcomes
Name and Save the Project
[Wait until] BlocksThe [Wait until] block is a Control block that accepts Boolean conditions. [Wait until] blocks repeatedly check a Boolean condition and control the project flow. A project will not move to the next block in the stack until the condition in the [Wait until] block reports as TRUE. The [Wait until] blocks are used in conjunction with non-waiting blocks such as [Drive] or [Turn].
For Your Information Non-waiting and waiting blocks determine when the next block begins a behavior. Waiting blocks, like [Drive for] and [Turn for], complete their behaviors before moving onto the next block in the stack. Non-waiting blocks, such as [Drive] and [Turn], continue to move to the next block in the stack even if the behavior of the non-waiting block is not complete. Certain blocks, like [Drive for] and [Turn for] can be waiting or non-waiting blocks. Selecting the arrow on the block will turn the block from waiting into a non-waiting block.
Note: You have successfully completed the first part of the Castle Crasher Challenge! Even if all four parts of the center castle are not completely knocked over, if they are slightly displaced, that is acceptable.
For Your Information To make a VR Robot drive forward and reverse at different speeds, the drive velocity can be increased or decreased using the [Set drive velocity] block. The [Set drive velocity] block accepts a range from 0% - 100%. The default velocity is 50%. Changing velocity will apply to any subsequent Drivetrain commands. Save Your ProjectTo save your project, select “Save to Your Device in the “File” drop-down menu. Once saved, the project will appear in the Downloads folder of your device as a .vrblocks file. |