|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
We have used the orange cable. And the cable we are using now is a crossover (We tested it). If I plug the computer into port 2, the lights do come up just as they do if the computer is plugged into port 1. (Although there are no comms with this method). Because of that I am reasonably sure the port is okay.
In reference to another thread on here, I made sure the Camera to Dashboard program compiles and is on the robot. And if I have a debugging console running there are no errors reported :-/ This is really irritating. -Luke |
|
#2
|
|||||
|
|||||
|
Re: 2010 Camera and vision problems.
Quote:
|
|
#3
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Which camera to dashboard program are you using?
The "Camera to Dashboard" example program does not work to my knowledge. Either build the "FRC 2010 Vision Demonstration" program, or add this to your robot's main code: Code:
AxisCamera &camera = AxisCamera::getInstance(); camera.writeResolution(k320x240); camera.writeBrightness(0); Code:
#include "Vision/AxisCamera2010.h" |
|
#4
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
DanDon: The code has that, and every part completes as expected.
jc4p: Ahhh, I will give that a go when I get back to the laptop. Is the transmit to the DS auto-magic from that point, or should I also include the PCVideoServer? Thanks again everyone for all the help. Ill report back after I test again. |
|
#5
|
|||||
|
|||||
|
Re: 2010 Camera and vision problems.
Quote:
|
|
#6
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Okay, thanks. I think I was just looking at the wrong/old pdf.
|
|
#7
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
After testing the recommended code, I still have some problems.
Code:
AxisCamera &camera = AxisCamera::getInstance(); camera.writeResolution(k320x240); camera.writeBrightness(0); The one that leads me to believe this is a hardware problem of some sort is: Quote:
-Luke |
|
#8
|
|||||
|
|||||
|
Re: 2010 Camera and vision problems.
Quote:
|
|
#9
|
||||||
|
||||||
|
Re: 2010 Camera and vision problems.
I assume you set up the camera passwords per the control system documentation?
|
|
#10
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Ok, I feel like I am close to the solution. One thing I am seeing, after poking around in the console of the cRIO, is that it only has two network devices, the loopback, and the main one with the 10.xx.xx.2 ip. This makes me wonder how port two is supposed to connect on a different subnet to the camera.
My question then, is if one of you who has the console working to your cRIO could run "ifShow" and just tell me what things are listed. Failing that, I am at my wits end and I will have to call NI tomorrow if I cant get this fixed. -Luke |
|
#11
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Quote:
|
|
#12
|
|||
|
|||
|
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 |
|
#13
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Quote:
|
|
#14
|
|||||
|
|||||
|
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. |
|
#15
|
|||
|
|||
|
Re: 2010 Camera and vision problems.
Can you ping your camera (192.168.0.90) from the WR Console prompt?
|
![]() |
| 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 |