Go to Post For the first time, tears of joy came to my eyes when I realized how much I love FIRST. - Arefin Bari [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2005, 00:52
neilsonster's Avatar
neilsonster neilsonster is offline
Registered User
AKA: Andrew Neilson
FRC #0772 (Sabre Bytes)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Waterloo, ON, Canada
Posts: 188
neilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to all
Send a message via MSN to neilsonster
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   Spotlight this post!  
Unread 12-02-2005, 18:26
Mohsin's Avatar
Mohsin Mohsin is offline
building...building...bui lding...
FRC #0772 (Club Sandwhich)
Team Role: Alumni
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Sandwich Secondary
Posts: 33
Mohsin is on a distinguished road
Send a message via MSN to Mohsin
Re: Code Violations...

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

thanks
__________________
first is like an ex-girlfriend, once she leaves, you ache for her more.
  #3   Spotlight this post!  
Unread 12-02-2005, 18:32
AIBob's Avatar
AIBob AIBob is offline
AI Programmer
AKA: Bob Frank DOT org
FRC #0358 (Hauppauge Robotic Eagles)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Long Island, NY (in Binghamton now)
Posts: 297
AIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to behold
Send a message via ICQ to AIBob Send a message via AIM to AIBob Send a message via MSN to AIBob Send a message via Yahoo to AIBob
Re: Code Violations...

What errors did you get?
__________________
- from B B frank

  #4   Spotlight this post!  
Unread 12-02-2005, 18:41
Mohsin's Avatar
Mohsin Mohsin is offline
building...building...bui lding...
FRC #0772 (Club Sandwhich)
Team Role: Alumni
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Sandwich Secondary
Posts: 33
Mohsin is on a distinguished road
Send a message via MSN to Mohsin
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.
__________________
first is like an ex-girlfriend, once she leaves, you ache for her more.
  #5   Spotlight this post!  
Unread 12-02-2005, 19:16
neilsonster's Avatar
neilsonster neilsonster is offline
Registered User
AKA: Andrew Neilson
FRC #0772 (Sabre Bytes)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Waterloo, ON, Canada
Posts: 188
neilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to all
Send a message via MSN to neilsonster
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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