Go to Post I think that is important to note that winning teams have won without bending the rules. GP allows you to go ask, investigate and take pictures. Learn from others when you have the chance. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 02-21-2010, 04:54 PM
BBHSrobotics's Avatar
BBHSrobotics BBHSrobotics is offline
Registered User
FRC #1517
 
Join Date: Jan 2010
Location: New Hampshire
Posts: 3
BBHSrobotics is an unknown quantity at this point
Encoder Problems

For whatever reason, our encoder seems to only be reading full rotations.

We have programmed our robot to display both the encoder.get() and encoder.getRaw() along with many other combinations for the past few hours and the encoder only displays full rotations. Instead of displaying 1, 2, 3, ... 1000 for a rotation, it simply displays 1 (1 rotation), 2 (2 rotations), 3, or 1.0, 2.0, 3.0.

We even tried using our old code that we developed weeks ago (and worked then) to no avail. We think it might have something to do with the recent updates, but we can't be sure.

If anyone can provide some insight it would be greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-22-2010, 03:38 AM
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Encoder Problems

Have you tried getDistance()?
Reply With Quote
  #3   Spotlight this post!  
Unread 02-22-2010, 11:18 AM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,547
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Encoder Problems

How do you have the encoder wired? Are you maybe reading the index of the encoder?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Encoder Wen1992 NI LabVIEW 2 02-11-2010 04:05 PM
Encoder problems Pausert NI LabVIEW 3 01-18-2010 12:33 PM
Encoder Problems bjimster1 Programming 2 02-10-2007 08:04 AM
Encoder Output Problems Mike Electrical 5 11-25-2005 09:43 PM


All times are GMT -5. The time now is 07:31 AM.

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