[an error occurred while processing this directive]
HOME
FUNDAMENTALS
SETUP
MOVEMENT
REMOTE CONTROL
SENSING
[an error occurred while processing this directive] [an error occurred while processing this directive]
Exit
- :
...
...
[an error occurred while processing this directive]
Check Your Understanding:
1. If the WHILE loop were not part of the program, the IF statements would:
Run continuously
Cause the robot to run straight forever
Run only once
An IF statement will not run if it is not part of a WHILE loop
2. How do you create a multi-line comment in your program?
Type ‘/*’ at the beginning of your comment
Type ‘//’ at the beginning of your comment
Type ‘/*’ at the beginning of your comment and ‘*/’ at the end of your comment
Type ‘//’ at the beginning of your comment and again at the end of your comment
3. In your program the WHILE loop was used to control:
The overall distance the robot moves
The use of the IF statements
The overall length of the program
The speed of your robot
4. The encoder values should be reset every time you want to use the encoders to control a robot movement.
True
False
Driving Straight 2
Seeing the Difference