Go to Post Put on shows. Start new teams, FRC, FVC, or FLL. It doesn't matter. But I know that being on the robotics team has given me some of the best memories of my life, and I wouldn't want anybody else to miss out on that. - irishninja [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
  #16   Spotlight this post!  
Unread 03-01-2007, 09:14
DustinB_3 DustinB_3 is offline
Registered User
FRC #0935 (Railerobotics)
Team Role: Leadership
 
Join Date: Nov 2005
Rookie Year: 2001
Location: Newton, Kansas
Posts: 78
DustinB_3 is an unknown quantity at this point
Re: Encoder Problem

My mistake. Thanks for pointing that out but would that make a difference for the encoders.
  #17   Spotlight this post!  
Unread 03-01-2007, 09:41
Jack Jones Jack Jones is offline
Retired
no team
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Waterford, MI
Posts: 964
Jack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond reputeJack Jones has a reputation beyond repute
Re: Encoder Problem

If you don't recall changing that, then maybe there's others. Obviously, something's different = one works, one dosen't.

How about the fact that you're getting the encoder count for #s 1..4 in one chunk of code, and for #s 1..6 in the other. Is encoder.h set up to use six(6) encoders?

PS: The call to Default_Routine() is commented out in both sets of code, so don't expect any changes there to show up once you get encoders working.

Last edited by Jack Jones : 03-01-2007 at 09:52. Reason: added PS
  #18   Spotlight this post!  
Unread 03-01-2007, 10:17
DustinB_3 DustinB_3 is offline
Registered User
FRC #0935 (Railerobotics)
Team Role: Leadership
 
Join Date: Nov 2005
Rookie Year: 2001
Location: Newton, Kansas
Posts: 78
DustinB_3 is an unknown quantity at this point
Re: Encoder Problem

I have tried it both ways. I have tried it with all six encoders enabled and I have tried it with 4 enabled. Other than that there are no changes between the encoder.h files. About the default routine I have tried commented and uncommented but it still will only read one encoder.

Last edited by DustinB_3 : 03-01-2007 at 10:19.
  #19   Spotlight this post!  
Unread 03-01-2007, 13:45
prograid's Avatar
prograid prograid is offline
Registered User
AKA: Ben Cherian
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2004
Location: San Jose
Posts: 80
prograid will become famous soon enough
Re: Encoder Problem

It could be that your interrupt handlers are set up wrong in user_routines_fast.c. Have you checked those?
You should be able to drop the user_routines_fast.c from Kevin's code into your project, unless you are using custom timers, or have already written up some autonomous routine.

At the very least, check to see if InterruptHandlerLow is set up the same in both sets of code.

Hope this helps.
  #20   Spotlight this post!  
Unread 03-01-2007, 14:04
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: Encoder Problem

Grab a copy of WinMerge and check out your 2 files.

http://winmerge.org/
  #21   Spotlight this post!  
Unread 03-01-2007, 14:04
Mark Pierce Mark Pierce is offline
Registered User
FRC #0085 (B. O. B.)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Zeeland, MI
Posts: 239
Mark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant futureMark Pierce has a brilliant future
Re: Encoder Problem

Quote:
Originally Posted by DustinB_3 View Post
Where would I get a diff tool. I've never even heard of such a thing.
I've had good luck with winmerge, which is an open source tool for comparing folders and files. I think that such a tool would help with your current problem.
  #22   Spotlight this post!  
Unread 03-01-2007, 14:36
DustinB_3 DustinB_3 is offline
Registered User
FRC #0935 (Railerobotics)
Team Role: Leadership
 
Join Date: Nov 2005
Rookie Year: 2001
Location: Newton, Kansas
Posts: 78
DustinB_3 is an unknown quantity at this point
Re: Encoder Problem

I am using the exact user routines fast from kevin watsons frc_encoder code.
  #23   Spotlight this post!  
Unread 03-01-2007, 20:42
DustinB_3 DustinB_3 is offline
Registered User
FRC #0935 (Railerobotics)
Team Role: Leadership
 
Join Date: Nov 2005
Rookie Year: 2001
Location: Newton, Kansas
Posts: 78
DustinB_3 is an unknown quantity at this point
Re: Encoder Problem

Thanks for all of your help. I have finally fixed the problem. I swear that I did not edit the encoder.h file but when I overwrote the old one with one that I got directly from kevin watsons website it fixed the problem.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Encoder Pinout bear24rw Electrical 4 04-12-2006 21:43
Encoder help Windward Programming 21 14-01-2006 15:10
Strange Encoder Problem AIBob Electrical 3 20-02-2005 22:20
encoder.c Gary Bonner Programming 2 14-01-2005 13:41


All times are GMT -5. The time now is 03:23.

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