View Single Post
  #4   Spotlight this post!  
Unread 03-05-2008, 12:35
Phalanx's Avatar
Phalanx Phalanx is offline
Formerly Team 1089 (Mercury)
AKA: Michael Reffler
FRC #5431 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Lewisville, TX (previously NJ)
Posts: 384
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
Re: Automatic counter-Encoder

For starters look at Kevin Watson's excellent repository of FRC code and FAQ's.
http://www.kevin.org/frc/

Specifically for the EDU Controller read the encoder_readme.txt within the zip on how to make the code work with the EDU controller.
http://www.kevin.org/frc/frc_encoder.zip

Now if I remember correctly digital ports 3 through 6 are designed to interrupt on both the rising and falling edge. So if you connect your clicker to one of those it will trigger an interrupt on 0,1,0,1,0 and so on. Simply remove the "Phase B" logic and it should work as you need.
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics



Last edited by Phalanx : 03-05-2008 at 12:38.