Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Code Violations... (http://www.chiefdelphi.com/forums/showthread.php?t=34464)

neilsonster 12-02-2005 00:52

Code Violations...
 
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

Re: Code Violations...
 
will any one help? because we are totally lost, on this and are racking our brains out.

thanks

AIBob 12-02-2005 18:32

Re: Code Violations...
 
What errors did you get?

Mohsin 12-02-2005 18:41

Re: Code Violations...
 
(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

Re: Code Violations...
 
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.


All times are GMT -5. The time now is 00:00.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi