Sensors

Sensors are components on the robot that inform the robot code about the robot or its surroundings.

For example, an encoder can measure how far the robot has moved.

For more information on sensors and their uses, see WPILib’s documentation on sensors.