View Single Post
  #4   Spotlight this post!  
Unread 04-02-2007, 01:42
mluckham's Avatar
mluckham mluckham is offline
Registered User
FRC #0758 (Sky Robotics)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Ontario, Canada
Posts: 116
mluckham will become famous soon enoughmluckham will become famous soon enough
Re: compiler problems

Your encoders undoubtedly depend on interrupts, and that is the area of code where you had the problem (the #pragma).

Look at the default code again and see where the #pragma belongs and what it should like like. And make sure your encoder interrupt-service-routines are being called when the appropriate interrupt occurs.

The #pragma, by the way, tells the compiler to save and restore CPU registers when invoking the routine (when an interrupt happens).