|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
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!!!
|
|
#2
|
||||
|
||||
|
Re: Code Violations...
will any one help? because we are totally lost, on this and are racking our brains out.
thanks |
|
#3
|
|||||
|
|||||
|
Re: Code Violations...
What errors did you get?
|
|
#4
|
||||
|
||||
|
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. |
|
#5
|
|||||
|
|||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Example gyro code released. | Kevin Watson | Programming | 60 | 17-03-2005 18:32 |
| Updated: Serial Port Driver Code | Kevin Watson | Programming | 4 | 05-02-2005 18:39 |
| Team THRUST - Kevin's Code and Camera Code Combine | Chris_Elston | Programming | 3 | 31-01-2005 22:28 |
| Sourceforge for Code Repository and other stuff | SilverStar | Programming | 9 | 15-01-2005 21:16 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |