Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Using 2 cameras (http://www.chiefdelphi.com/forums/showthread.php?t=102075)

nonamedude 06-02-2012 01:05

Using 2 cameras
 
Hey guys,

Has anyone tried using two cameras? If so, how do you get the two different images , because it seems that I am only allowed to set one instance of camera.

I have set on camera to 10.xx.yy.11 and the other to 10.xx.yy.12.
I can ping both cameras so the connections should be fine.

Thanks!

nickpeq 06-02-2012 07:55

Re: Using 2 cameras
 
You can try camera.getInstance(10.xx.yy.12) but I don't think it will allow two cameras.

cgmv123 06-02-2012 09:48

Re: Using 2 cameras
 
Quote:

Originally Posted by nickpeq (Post 1120851)
You can try camera.getInstance(10.xx.yy.12) but I don't think it will allow two cameras.

That's
Code:

camera.getInstance("10.xx.yy.12");

sjspry 06-02-2012 16:44

Re: Using 2 cameras
 
You could possibly switch between the two while running, but this might be a slow process. I would suggest moving any graphical code off the classmate.

eddie12390 06-02-2012 19:33

Re: Using 2 cameras
 
In the SMARTDASHBOARD we are able to use two cameras. Put both of them on seperate IPs and configure the correct IPs on the dashboard and they'll work fine.

ksafin 06-02-2012 19:55

Re: Using 2 cameras
 
Are two cameras allowed on a robot?

nonamedude 06-02-2012 21:20

Re: Using 2 cameras
 
I dont think there is anything that says you cannot have 2 cameras on the robot. How do you configure the two cameras on the SMARTDASHBOARD?.

eddie12390 07-02-2012 13:38

Re: Using 2 cameras
 
Quote:

Originally Posted by nonamedude (Post 1121318)
I dont think there is anything that says you cannot have 2 cameras on the robot. How do you configure the two cameras on the SMARTDASHBOARD?.

I have yet to find a rule that tells me that I can't have two.

Simply install the SmartDashboard and add two camera widgets instead of one and change the IP in the "Properties" menu.


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

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