|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Quote:
|
|
#17
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Update: My code now seems to be able to initialize the camera without it hanging. The lights are on on the cRIO as well. To do this I re-flashed the cRIO and checked to see if the other interface was there. We also switched crossover cables, but im not sure if we needed to.
It seems like the only remaining problem is getting the video out to go back to the laptop now. Thank you all for your help so far. -Luke |
|
#18
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Quote:
|
|
#19
|
|||||
|
|||||
|
Re: 2010 Camera and vision problems.
Quote:
Here is the result of an inetstatShow command PHP Code:
PHP Code:
The camera has the root/admin account set up and has the default 192.168.0.90 IP address. And yes, I am using a crossover cable. Last edited by DanDon : 12-01-2010 at 23:26. |
|
#20
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Can you ping your camera (192.168.0.90) from the WR Console prompt?
|
|
#21
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Quote:
Also, I don't know if the camera /works/ after starting it up, only that it starts up. I'm going to put some tracking code on today at some point and try to see if the camera is working. Also, has anyone heard of a team actually getting the camera working/sending to the dashboard? Because I think its possible that this is a first problem. Actually, has anyone gotten "2010ImageDemo" to compile? I really wish I could tell what is FIRSTs fault, and what is mine. ![]() |
|
#22
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
we got the code to compile but it didn't seem to be working, held the target in front of it and it just said no valid targets, no video was sent to the dashboard. we are really confused and since this task is pretty important to us and we didn't write the code, its safe to say that we are a little frustrated
|
|
#23
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Quote:
Other than that it looks like we just have to wait for first to to fix it. |
|
#24
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
i did hook it up to a computer to check to see if its focused, it was a little bit out but not all that much
|
|
#25
|
|||||
|
|||||
|
Re: 2010 Camera and vision problems.
So I get into the lab today and the camera decides to initialize itself without a problem. Still getting no image on the dashboard though. I'm not getting any other data on the dashboard either though....is anyone else?
EDIT: Annnnnnd now it's decided to go back to not working. Can I throw this thing out of a window? Last edited by DanDon : 13-01-2010 at 15:54. |
|
#26
|
||||
|
||||
|
Re: 2010 Camera and vision problems.
I'll test the Java Camera Code tonight and see if it works correctly using the v19 image and the sample code.
|
|
#27
|
||||
|
||||
|
Re: 2010 Camera and vision problems.
I tested the sample code for Java and it seems ok, but it also has some gyro code in it so I stripped that out to show the bare minimum. Here you go...
It uses the Driver Station to Output Cam X and Y values. |
|
#28
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
So I guess this means that in C++ either the example is wrong or the WPILib is wrong...
|
|
#29
|
|||||
|
|||||
|
Re: 2010 Camera and vision problems.
Have you gotten the camera to at least instantiate? I can ping the camera (192.168.0.90) with 0% packet loss from the cRio, and the user/pass combo is set up correctly but my code still hangs on AxisCamera::GetInstance().
|
|
#30
|
||||
|
||||
|
Re: 2010 Camera and vision problems.
Seeing Java and C++ use pretty much the same code base, I'd think it would work in one if it works in the other, I can test the C++ code tomorrow night.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vision problems and FIRST members | ebmonon36 | Chit-Chat | 10 | 21-01-2006 22:43 |
| vision camera | Adama | Programming | 3 | 19-01-2006 17:12 |
| 71's Vision Tracking Problems | Bill Beatty | Rumor Mill | 7 | 19-04-2005 17:41 |
| Camera Vision Range | Muhnki | Programming | 7 | 05-02-2005 23:26 |
| Camera Vision Range | Muhnki | Programming | 7 | 05-02-2005 23:26 |