View Single Post
  #11   Spotlight this post!  
Unread 16-02-2008, 15:23
Severious Severious is offline
Registered User
FRC #1733
 
Join Date: Feb 2008
Location: Boston
Posts: 1
Severious is an unknown quantity at this point
Re: KOP Gear Tooth Encoder Trouble

Quote:
Originally Posted by Kevin Watson View Post
This at least one of your problems. You should be using the phase a input on digital input 1. Then make sure to modify the encoder.c/Int_1_ISR() function to look like this:

Code:
void Int_1_ISR(void)
{
    Encoder_1_Count += ENCODER_1_TICK_DELTA;
}
-Kevin

I too am having trouble getting the gear tooth sensor to work using your (Kevin's) code. I also have my GTS connected to digital port 11 with a PWM cable. It works with easyc. What is a "phase a input", and don't you mean digital input 11?

Thanks

Scott