Log in

View Full Version : FRC- Sensor Help


waldohatesyou
20-01-2015, 11:15
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++?

marshall
20-01-2015, 11:18
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?

Ether
20-01-2015, 11:19
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++?

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.

billbo911
20-01-2015, 11:37
Depending on your application, Hall Effect sensor typically uses the counter object in WPILib.......


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".