View Single Post
  #19   Spotlight this post!  
Unread 18-02-2005, 12:24
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,926
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Third Encoder Channel

Quote:
Originally Posted by phillutz
1. Can I change at least digital 6&8 to something else.
We have a wiring harness that is pulled into dig 1-11. This can be moved up to 3-13, but has to stay together...

2. Do I need to change anything in the Interrupt routines if the answer to #1 is yes?
Yes, you can move the encoder Quad B connections on digital inputs 6 & 8 to any other digital input pins.

You'll need to change the following two lines found in encoder.h to reflect the new digital inputs.
Code:
#define LEFT_ENCODER_PHASE_B_PIN rc_dig_in06
...
#define RIGHT_ENCODER_PHASE_B_PIN rc_dig_in08
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle