Log in

View Full Version : Code Violations...


neilsonster
12-02-2005, 00:52
Hi, I am having tons of trouble getting the rc to recognize the camera in autonomous right now. It works fine in user_routines but in user_routines_fast I am getting code violations whenever I call camera_init, camera_find_color, or camera_auto_servo. I have #included camera.h (I'm using Kevin Watson's "cumulative" camera files). I have tried creating a function within camera.c and then just calling it from user_routines_fast, and it was getting violations whenever any of those 3 functions were called. Please, please, please, does anyone have any ideas about this? Thank you for any assistance!!!

Mohsin
12-02-2005, 18:26
will any one help? because we are totally lost, on this and are racking our brains out.

thanks

AIBob
12-02-2005, 18:32
What errors did you get?

Mohsin
12-02-2005, 18:41
(this is neilsonster)
The code violation light blinks.. that's it. When I remove all three of those (camera_init, camera_find_color, or camera_auto_servo) from user_routines_fast it runs fine, but I can't do anything with it. When I add any one of them back in I get the blinking light again. The code builds fine.

neilsonster
12-02-2005, 19:16
Yes!!! I just fixed it! The problem was that I was not using #if _USE_CMU_CAMERA and i had taken it out of all the code... funny thing is that every single problem I have had programming has been solved by going back to the default routine.