View Single Post
  #1   Spotlight this post!  
Unread 06-04-2006, 23:44
Denz's Avatar
Denz Denz is offline
Registered User
FRC #0772 (Sabre Bytes Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Location: LaSalle, Ont, Canada
Posts: 66
Denz is on a distinguished road
Send a message via MSN to Denz
GTS Code Error (the red light of doom!)

A while ago I tried modifying Kevin's encoder code to work with gear tooth sensors. I had a test "robot" set up in my room, with basically a push switch on a digital in and every time I pressed it, it would trigger the interrupt and the count would increase by one.
It took a while to get working(since I'm pretty new at this) and with a little help from everyone on here (thanks guys!) I had it working fine with my practice setup. When we got to our regional, and I put it on the robot, I got a code error, the blinking red light of doom, and I don't understand why. It was working perfectly on the other processor. Any thoughts or comments?
I'll post the important parts of the code, maybe you guys can come to my rescue again.
772 is pending for ATL and we're probably going, so after scoring (very inconsistently) in autonomous maybe 1 sometimes the highest we got was 3, I would like to use the camera in combination with the GTS for better results.

If you have the time, I would really appreciate some feedback to what might be causing the code error. It worked fine at home, honest! lol. Thanks in advance...

Deniz
Attached Files
File Type: c encoder.c (10.5 KB, 34 views)
File Type: h encoder.h (4.0 KB, 28 views)
File Type: c user_routines_fast.c (8.2 KB, 31 views)
File Type: h user_routines.h (3.5 KB, 25 views)
File Type: c user_routines.c (17.5 KB, 38 views)
__________________
www.sabrerobotics.com