|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
I've spent hours reading and testing code to track the camera. I'm using windriver, and i'm not tying to do anything to complicated. I started with just compiling and downloading the example codes to the robot, but when I put the target in front of the camera, nothing happend. All I want to know, is how to find a color( green or pink or both) and if the camera sees it, turn on a motor. Can someone show me some commented code that will do this? Thanks a lot for the help because I'm desperate.
Last edited by excel2474 : 02-15-2009 at 10:22 PM. |
|
#2
|
|||||
|
|||||
|
Re: Simple Camera code HELP PLEASE?
For the record, I nudged this over to the WindRiver subforum to keep things orderly.
![]() |
|
#3
|
||||
|
||||
|
Re: Simple Camera code HELP PLEASE?
The problem with the subforums is that the post doesn't show on the portal page. At least that was my experience.
|
|
#4
|
|||||
|
|||||
|
Re: Simple Camera code HELP PLEASE?
Quote:
![]() |
|
#5
|
|||
|
|||
|
Re: Simple Camera code HELP PLEASE?
I'd say the vision example code is probably the most likely to work out of the box as anything. Next step is to put some print statements where the object center is found to try and determine if it is a watchdog, electrical, or code issue.
Greg McKaskle |
|
#6
|
||||
|
||||
|
Re: Simple Camera code HELP PLEASE?
OK, where is the printf displayed at. I couldn't figure this out.
|
|
#7
|
|||
|
|||
|
Re: Simple Camera code HELP PLEASE?
I haven't used WindRiver in a long time. I think there are two possible locations. The low level one is the terminal program hooked to the serial port. I think you can also open a terminal over enet in the Eclipse environment. Sorry, but I can't give you any details on that one.
Greg McKaskle |
|
#8
|
|||
|
|||
|
Re: Simple Camera code HELP PLEASE?
You can do it remotely by going connecting to the cRIO in the bottom left corner of the Remote Systems and after that right click "Wind River Target Debugger" go to > Target Tools > Target console.
A dialog box should open up, click ok and then you should see your printouts. They come rather quickly so be prepared for it. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Please help me with my Camera problems! | Ianuser | Programming | 2 | 02-10-2007 09:17 PM |
| Camera Code Help Please | The yellowdart | Programming | 1 | 02-10-2007 03:45 PM |
| please help me to plag in the camera | CompMaster | Programming | 1 | 02-16-2006 11:24 AM |
| hey need some help with writing a code please help me here | magical hands | Programming | 9 | 01-01-2004 09:46 PM |