Go to Post How many FIRSTers would quit if they found it was bad for them? I think most FIRSTaholics are thirteen steppers ;) - phrontist [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-03-2013, 03:56
programmerB programmerB is offline
Registered User
FRC #0968
 
Join Date: Apr 2012
Location: West Covina, Ca
Posts: 22
programmerB is an unknown quantity at this point
need some help

How do i check the values for my encoder on my robot?
Reply With Quote
  #2   Spotlight this post!  
Unread 17-03-2013, 12:24
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: need some help

The typical way to read values from a sensor is to use the Get() method of whatever class is associated with it. What kind of encoder are you using, and how is it wired to the robot?
Reply With Quote
  #3   Spotlight this post!  
Unread 17-03-2013, 17:49
programmerB programmerB is offline
Registered User
FRC #0968
 
Join Date: Apr 2012
Location: West Covina, Ca
Posts: 22
programmerB is an unknown quantity at this point
Re: need some help

we have our encoder connected to a wheel shaft on our left side of our robot and where would it appear? on the classmate display? or somewhere else?

Last edited by programmerB : 17-03-2013 at 17:52.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-03-2013, 21:20
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: need some help

The encoder values won't "appear" anywhere unless your program explicitly puts them there after it reads them. If you use the SmartDashboard functions, you can put them on the Dashboard on the computer you're using for your Driver Station. If you use the LCD functions, you can put them on the User Messages display in the Operations tab of the Driver Station.

What kind of encoder are you using, and how is it wired to the robot?
Reply With Quote
  #5   Spotlight this post!  
Unread 17-03-2013, 23:53
programmerB programmerB is offline
Registered User
FRC #0968
 
Join Date: Apr 2012
Location: West Covina, Ca
Posts: 22
programmerB is an unknown quantity at this point
Re: need some help

i do not know what kind of encoder and we have it hooked up to the digital side car. so how would i program in the smart dashboard function ?
Reply With Quote
  #6   Spotlight this post!  
Unread 18-03-2013, 01:14
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: need some help

If you can't tell me what type of encoder it is and how it's wired, I can't help you very much.

Read the WPILib documentation for the SmartDashboard:utNumber method. It tells you how to make a value available to other SmartDashboard clients. If you're going to be using the Java SmartDashboard program, you can use the menus to add the new value to the display. If you want to use the LabVIEW Dashboard program, just add an indicator to the Operations tab and give it the same name you used when writing the value.
Reply With Quote
  #7   Spotlight this post!  
Unread 18-03-2013, 01:38
programmerB programmerB is offline
Registered User
FRC #0968
 
Join Date: Apr 2012
Location: West Covina, Ca
Posts: 22
programmerB is an unknown quantity at this point
Re: need some help

okay tomorrow i will get the kind of encoder thank for you help
Reply With Quote
Reply


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 03:32.

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