Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   camera and console (http://www.chiefdelphi.com/forums/showthread.php?t=81095)

a kenny03 25-01-2010 15:24

camera and console
 
anyone have any decent sample working code that can send images back to the driverstation?
and is there an acutal console like there was last year?

jhersh 26-01-2010 04:24

Re: camera and console
 
Quote:

Originally Posted by a kenny03 (Post 906612)
anyone have any decent sample working code that can send images back to the driverstation?

I'm pretty sure there is an example for this.

Quote:

Originally Posted by a kenny03 (Post 906612)
and is there an acutal console like there was last year?

What do you mean? Like the blue thing last year? The classmate is the new driver station. No more custom hardware.

nadavsen2 26-01-2010 18:26

Re: camera and console
 
I need to a simple code for deploying the image to the driverstation..
if there is a simple code can anyone tell me where its locate?
links? something?

Patrickwhite 26-01-2010 21:32

Re: camera and console
 
If the camera and driver station machine are set up properly, you should only need a few lines of code to be able to see a feed from the camera. Top three things to confirm:
1) The camera has an FRC/FRC account added to it (see the control system documentation for details).
2) The driver station and dashboard have been PROPERLY updated. You may even have to fully delete the folders in program files and reinstall them.
3) The camera is connected via crossover cable to ethernet port 2 on the cRIO and the LEDs on the camera are green.

The code to include:
Code:

import edu.wpi.first.wpilibj.camera.AxisCamera;
...
AxisCamera.getInstance().writeResolution(AxisCamera.ResolutionT.k160x120);
AxisCamera.getInstance().writeBrightness(0);


ideasrule 26-01-2010 21:47

Re: camera and console
 
You could also load the CircleTrackerDemo example project (if you're using Java) or the "2010 FRC Vision Demonstration" if you're using Windriver.


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

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