FRC- Sensor Help

Hi there, i have been trying to code a couple of sensors for our FRC robot.
hall effect sensor and an pontentiometer. unfortunately it hasnt been working; does anyone have any sample code in C++?

You should post what code you have along with how you have the sensors setup physically as well. What specific problems are you running into?

Depending on your application, Hall Effect sensor typically uses the counter object in WPILib.

Potentiometer uses analog input.

The more detail you provide, the more detailed the answers you get will be.

Another possibility that goes with “Depending on your application”, a Hall Effect Sensor could be set up as a simple limit switch. In this case, it would be a “simple digital input”.