Go to Post They are "Human Dream and Inspiration Enablement Devices" but since that takes too long to say and explain I use the word "robot". - Foster [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2015, 11:15
waldohatesyou waldohatesyou is offline
Registered User
FRC #3705
 
Join Date: Jan 2015
Location: Brampton
Posts: 2
waldohatesyou is an unknown quantity at this point
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++?
  #2   Spotlight this post!  
Unread 20-01-2015, 11:18
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,282
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: FRC- Sensor Help

Quote:
Originally Posted by waldohatesyou View Post
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?
  #3   Spotlight this post!  
Unread 20-01-2015, 11:19
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: FRC- Sensor Help

Quote:
Originally Posted by waldohatesyou View Post
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.



  #4   Spotlight this post!  
Unread 20-01-2015, 11:37
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,356
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: FRC- Sensor Help

Quote:
Originally Posted by Ether View Post
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".
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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