Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   FRC- Sensor Help (http://www.chiefdelphi.com/forums/showthread.php?t=133209)

waldohatesyou 20-01-2015 11:15

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++?

marshall 20-01-2015 11:18

Re: FRC- Sensor Help
 
Quote:

Originally Posted by waldohatesyou (Post 1430934)
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

Re: FRC- Sensor Help
 
Quote:

Originally Posted by waldohatesyou (Post 1430934)
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

Re: FRC- Sensor Help
 
Quote:

Originally Posted by Ether (Post 1430937)
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".


All times are GMT -5. The time now is 02:42.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi