Go to Post As my boy Macklemore once said, "The greats weren't great because at birth they could paint, the greats were great because they paint a lot". - Andrew_L [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 17-02-2008, 21:44
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 98
duane is an unknown quantity at this point
Send a message via AIM to duane
Baffled by Encoder

We are using encoders on our transmissions. We are using Kevin Watson's Encoder library (from last year, not new).

In our experiments (due to things not working) we can move the encoder connections from 1-11 to 2-12, etc. Only 1,2,3 work, 4,5, & 6 do not.

This completley baffling to me. I've poked in some printfs in the interrupt handlers with enough information before crashing that the correct handler is getting called but not recording (I think down) transitions. That is the count is never incremented.

I'm not sure what's hapenning or why the same encoder that works on port 3 does not work on 4, 5, or 6.

Any ideas would be most helpful.

Thanks,
...Duane
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
  #2   Spotlight this post!  
Unread 17-02-2008, 22:09
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 98
duane is an unknown quantity at this point
Send a message via AIM to duane
Re: Baffled by Encoder

Nevermind.

We've been moving ports around and forgot that 14 and 15 were programmed as OUTPUTs. Doh!

Back to pits.
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
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 wiring karin l. Motors 3 07-02-2007 00:14
Encoder Error Anime-niac_2.9 Programming 1 27-01-2007 16:23
Encoder Hookup kutty18 Electrical 4 22-01-2005 12:17
encoder.c Gary Bonner Programming 2 14-01-2005 13:41
encoder vs. motor stephenthe1 Programming 55 06-01-2005 22:07


All times are GMT -5. The time now is 00:55.

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