Shaft Encoders Flashcards

1
Q

What is a shaft encoder?

A

Shaft encoders are digital sensors that measure the amount of rotation on the shaft, or axle, which passes through its center.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How will the shaft encoders enable you to control the distance you robot travels?

A

As the axles inside the encoders turn, they “count”. The shaft encoders measure 360 counts per revolution, and count up for forward movements and down for reverse. By monitoring the axles connected to your robot’s wheels, the encoders allow you to control the overall distance the robot travels.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are some of the problems with the earlier movement-based programs that didn’t use shaft encoders.

A

The manual adjustments made to the power levels weren’t the same for every robot, and as the battery power drains, the robot will travel shorter and shorter distances in the same amount of time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Should you edit pragma statements manually?

A

No. Pragma statements should only be edited using the ROBOTC motors and sensors setup menu.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Can you plug in the two wires of the encoder into any of the digital ports?

A

No. The two encoder wires must be plugged into adjacent digital ports on the cortex.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why is clearing the encoder values important?

A

Clearing the encoders before every use improves the consistency and precision of the robots movements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a while loop?

A

A while loop is used to repeat the code between the curly braces “while” the code between the parenthesis (the condition) is true.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the three main parts of a while loop?

A

Part 1 - The “while” command
Part 2 - The condition, to control when the loop stops
Part 3 - The body of code that is looped

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Where are pragma statements found?

A

They are located at the top of the program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly