View Single Post
  #2   Spotlight this post!  
Unread 14-02-2005, 20:03
AIBob's Avatar
AIBob AIBob is offline
AI Programmer
AKA: Bob Frank DOT org
FRC #0358 (Hauppauge Robotic Eagles)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Long Island, NY (in Binghamton now)
Posts: 297
AIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to behold
Send a message via ICQ to AIBob Send a message via AIM to AIBob Send a message via MSN to AIBob Send a message via Yahoo to AIBob
Re: Need Help with Encoder - Won't Count Clicks

I am not sure whats included inside of the 'Initialize_Encoders();' function, but I believe that you need to initialize the interrupts first by running function 'Initialize_Interrupts();' before you run 'Initialize_Encoders();' inside of function 'User_Initialization()', like so:
Code:
void User_Initialization (void)
{
...
Initialize_Interrupts();
Initialize_Encoders();
Putdata(&txdata);			 /* DO NOT CHANGE! */
...
}
__________________
- from B B frank