1.
When used in robotics, what does PID stand for?
Correct Answer
D. Proportional Integral Derivative
Explanation
PID stands for Proportional Integral Derivative. In robotics, PID is a control algorithm used to continuously adjust the output of a system based on the difference between the desired setpoint and the actual value. The proportional term adjusts the output in proportion to the error, the integral term sums up the error over time to eliminate steady-state errors, and the derivative term predicts and adjusts for future changes in the error. This combination of terms allows the PID controller to quickly and accurately respond to changes in the system and maintain stability.
2.
When using PID, you should not set your motor’s power to 100 because
Correct Answer
C. There won’t be enough power left for the motor to compensate for going too slow.
Explanation
Setting the motor's power to 100 would not be advisable when using PID because it would not leave enough power for the motor to compensate for going too slow. In a PID control system, the motor's power needs to be adjusted based on feedback from sensors to maintain the desired speed or position. If the power is set too high, the motor may not have enough power reserve to increase its speed if it is going too slow, leading to a lack of control and potential errors in the system.
3.
What should Motor B do if you stopped Motor C with while using Motor Synchronization? (Assuming that Motor B is the master motor.)
Correct Answer
A. Motor B would stop.
Explanation
When using motor synchronization, Motor B is the master motor. If Motor C is stopped while using motor synchronization, it means that there is an issue or error with the synchronization process. In such a case, Motor B would stop to prevent any further complications or damage.
4.
Motor synchronization allows you to control your robot in a way that…
Correct Answer
D. Prioritizes motor alignment over motor speed.
Explanation
Motor synchronization allows you to control your robot in a way that prioritizes motor alignment over motor speed. This means that the robot will focus on keeping the motors aligned and moving in sync, rather than maintaining a constant speed in both motors or prioritizing motor speed over alignment. The main goal is to ensure that both motors are working together smoothly and efficiently, even if it means sacrificing speed or power.
5.
Given the following commands, what would the robot do?
1 task main ()
2 {
3
4 nSyncedMotors = synchBC;
5 nSyncedTurnRatio = 100;
6
7 motor[motorB] = 50;
8 motor[motorC] = -50;
9 wait1Msec(4000);
10
11 }
Correct Answer
B. The robot would go forward for 4 seconds
Explanation
The given code sets the motors B and C to run at a speed of 50 and -50 respectively, which means that the robot will move forward. The code then waits for 4 seconds before ending the task. Therefore, the robot would go forward for 4 seconds.
6.
Given the following commands, what would the robot do?
1 task main ()
2 {
3
4 nSyncedMotors = synchBC;
5 nSyncedTurnRatio = -100;
6
7 motor[motorB] = 50;
9 wait1Msec(4000);
8
10 }
Correct Answer
A. The robot would point turn for 4 seconds
Explanation
The given code sets up motor B to move at a speed of 50. The nSyncedTurnRatio is set to -100, which means that the motor B will turn in the opposite direction of motor C. Therefore, the robot will perform a point turn, where it will rotate in place for 4 seconds.
7.
Which line(s) of the following code is unnecessary?
1 task main ()
2 {
3
4 nSyncedMotors = synchBC;
5 nSyncedTurnRatio = 100;
6
7 motor[motorB] = 50;
8 motor[motorC] = 50;
9 wait1Msec(4000);
10
11 nSyncedMotors = synchBC;
12 nSyncedTurnRatio = -100;
13
14 motor[motorB] = 50;
15 motor[motorC] = -50;
16 wait1Msec(700);
17
18 }
Correct Answer
A. Lines 8 and 15
Explanation
Lines 8 and 15 are unnecessary because they set the motor power to the same values as the previous lines (lines 7 and 14). This means that lines 8 and 15 do not change any behavior or functionality of the code and can be removed without affecting the outcome of the program.
8.
What factor or factors affect the robot’s ability to move in a straight line?
Correct Answer
D. All the above
Explanation
The robot's ability to move in a straight line is affected by multiple factors. Motor manufacturing tolerances can cause variations in the speed and power of the motors, leading to deviations in the robot's movement. Robot weight distribution plays a role as an uneven distribution can cause the robot to veer off course. Frictional forces in the robot's drive train can create resistance and hinder the robot's ability to move straight. Therefore, all of these factors - motor manufacturing tolerances, robot weight distribution, and frictional forces in the drive train - can affect the robot's ability to move in a straight line.
9.
“Closed-loop” control describes a system...
Correct Answer
A. That monitors its own performance and adjusts its output to achieve a desired outcome.
10.
The command nSyncedTurnRatio = 100; would tell the slave motor to turn:
Correct Answer
A. At the same rate and in the same direction as the master.
Explanation
The command nSyncedTurnRatio = 100; sets the synchronization ratio between the master and slave motors to 100%. This means that the slave motor will turn at the same rate as the master motor. Additionally, since the synchronization ratio is 100%, the slave motor will also turn in the same direction as the master motor.
11.
The PID algorithm adjusts:
Correct Answer
A. The power level of an individual motor to achieve a target speed.
Explanation
The PID algorithm adjusts the power level of an individual motor to achieve a target speed. This means that the algorithm monitors the actual speed of the motor and compares it to the desired target speed. It then calculates the error between the two and adjusts the power level of the motor accordingly to minimize this error and bring the motor's speed closer to the target speed. By continuously monitoring and adjusting the power level, the PID algorithm helps to maintain the motor's speed at the desired level.
12.
What will the robot do when given the following program...
Correct Answer
C. Go forward until the touch sensor is pressed and point turn
Explanation
The robot will go forward until the touch sensor is pressed and then perform a point turn. This means that the robot will continue moving forward until it detects an obstacle or a touch on the touch sensor. Once the touch sensor is pressed, the robot will stop and perform a point turn, which involves rotating on the spot without changing its position. This allows the robot to change its direction without moving forward or backward.
13.
On what line(s) is the error in the following program...
Correct Answer
D. Line 5
14.
When programming your robot to use the touch sensor, you must do the following things
Correct Answer
A. Configure the sensor port to recognize a Touch Sensor, create a while loop that tells the robot to do when the Touch Sensor is NOT pressed, and say to the robot what to do when the Touch Sensor IS pressed.
Explanation
The correct answer is to configure the sensor port to recognize a Touch Sensor, create a while loop that tells the robot what to do when the Touch Sensor is NOT pressed, and instruct the robot what to do when the Touch Sensor IS pressed. This is necessary in order to properly program the robot to respond to the touch sensor input.
15.
In robot C the how would the following statement be evaluated
(100 != 50)
Correct Answer
A. The statement is 'true'
Explanation
The given statement "(100 != 50)" is evaluating whether 100 is not equal to 50. Since 100 is indeed not equal to 50, the statement is true.