Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FRC Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=176)
-   -   Cannot Connect to Camera through cRIO (http://www.chiefdelphi.com/forums/showthread.php?t=82802)

gamemonk0 16-02-2010 11:27

Cannot Connect to Camera through cRIO
 
When we connect to the camera directly from the laptop via crossover, we can get the feed by accessing its IP address (192.168.0.90) in the browser just fine.

However, when it's connected to port two of the cRIO, we can't connect to it, or get it to feed to the driver station.

We can deploy code just fine, and we have the latest (as in the update released literally yesterday) version of the driver station, gyro compass and all.

Can anyone give us some help or point us towards a guide or something, because I haven't been able to find one of those online either?

gamemonk0 17-02-2010 18:07

Re: Cannot Connect to Camera through cRIO
 
Problem resolved.

unobtainium-42 18-02-2010 12:54

Re: Cannot Connect to Camera through cRIO
 
It would be more helpful if you explained how you resolved it.

The network jack on our cRIO did not turn on. The camera needs a crossover cable. Then, apparently you can get it to work by using AxisCamera &camera = AxisCamera::GetInstance(); and setting the parameters (in the constructor).

gamemonk0 19-02-2010 00:09

Re: Cannot Connect to Camera through cRIO
 
So sorry.

We solved it by updating everything. It seems that, somehow, one of our freshmen had managed to update the driver station without the necessary LabView update. So once we got our hands on that and re-updated the driver station as well, we began to start getting camera feed. Hope this helps.

Safety3rd 20-02-2010 11:43

Re: Cannot Connect to Camera through cRIO
 
Quote:

Originally Posted by gamemonk0 (Post 923632)
So sorry.

We solved it by updating everything. It seems that, somehow, one of our freshmen had managed to update the driver station without the necessary LabView update. So once we got our hands on that and re-updated the driver station as well, we began to start getting camera feed. Hope this helps.

now where do you find the updates and everything? what website do you go to or does the driver station have a link to check for updates.

sp33chy 20-02-2010 12:44

Re: Cannot Connect to Camera through cRIO
 
Quote:

Originally Posted by unobtainium-42 (Post 922989)
It would be more helpful if you explained how you resolved it.

The network jack on our cRIO did not turn on. The camera needs a crossover cable. Then, apparently you can get it to work by using AxisCamera &camera = AxisCamera::GetInstance(); and setting the parameters (in the constructor).

Quick question... what parameters?

I do call getInstance() (java) but I didn't know I needed to set any other parameters? I can't get this camera to work so maybe thats what I'm missing?

Safety3rd 20-02-2010 15:38

Re: Cannot Connect to Camera through cRIO
 
Quote:

Originally Posted by gamemonk0 (Post 923632)
So sorry.

We solved it by updating everything. It seems that, somehow, one of our freshmen had managed to update the driver station without the necessary LabView update. So once we got our hands on that and re-updated the driver station as well, we began to start getting camera feed. Hope this helps.

now where do you find the updates and everything? what website do you go to or does the driver station have a link to check for updates.

unobtainium-42 20-02-2010 19:37

Re: Cannot Connect to Camera through cRIO
 
I'm not sure how you don't know where the updates are, they are mandatory and on FIRST's website:

http://www.usfirst.org/roboticsprogr....aspx?id=10934

Make sure the cRIO's port that connects to the camera turns on its LEDs so the camera has the potential to communicate. I believe this requires a crossover cable.

Include the following lines in the class inheriting SimpleRobot's constructor:

Code:

// we just got these lines from the example 2010ImageDemo
AxisCamera &camera = AxisCamera::GetInstance();
camera.WriteResolution(AxisCameraParams::kResolution_320x240)
camera.WriteBrightness(0)

After doing just that, our camera works great, even if it's disconnected or booting it will still eventually start the image feed when the camera goes online.


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

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