View Single Post
  #8   Spotlight this post!  
Unread 30-01-2005, 14:51
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Confused about Interrupts

Quote:
Originally Posted by Jon236
This is in the encoder.c file:

Five things must be done before this software will work
* correctly on the FRC-RC:
*
* 1) The left encoder's phase-A output is wired to digital input
* one and the phase-B output is wired to digital I/O six.
*
* 2) The right encoder's phase-A output is wired to digital input
* two and the phase-B output is wired to digital I/O 8.
*
* 3) Digital I/O pins one, two, six and eight are configured as
* inputs in user_routines.c/User_Initialization(). If you notice
* that the encoder only counts in one direction, you forgot to
* do this step.
*
* 4) A #include statement for the encoder.h header file must be
* included at the beginning of each source file that calls the
* functions in this source file. The statement should look like
* this: #include "encoder.h".
*
* 5) Initialize_Encoders() must be called from user_routines.c/
* User_Initialization().
*

has it been changed?

Jon
Whoa, that's weird. I apparently have an older version; my encoder.c looks completely different from what I just downloaded from kevin.org. Yeah, that doesn't make any sense to me... it should be on 7, not 6.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_