Go to Post You know, sometimes it is really cool to be a geek! - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-01-2010, 15:24
a kenny03 a kenny03 is offline
Robotics for life(stupid classmate)
AKA: PICKELL!!!
FRC #0219 (Team Impact)
Team Role: Leadership
 
Join Date: Oct 2009
Rookie Year: 2008
Location: New Jersey
Posts: 65
a kenny03 is an unknown quantity at this point
Send a message via AIM to a kenny03
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2010, 04:24
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: camera and console

Quote:
Originally Posted by a kenny03 View Post
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 View Post
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2010, 18:26
nadavsen2 nadavsen2 is offline
Registered User
FRC #2231
 
Join Date: Jan 2009
Location: israel
Posts: 31
nadavsen2 is an unknown quantity at this point
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?
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2010, 21:32
Patrickwhite's Avatar
Patrickwhite Patrickwhite is offline
May the North be with you
FRC #0610 (The Coyotes)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto
Posts: 88
Patrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of light
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);

Last edited by Patrickwhite : 26-01-2010 at 21:34.
Reply With Quote
  #5   Spotlight this post!  
Unread 26-01-2010, 21:47
ideasrule's Avatar
ideasrule ideasrule is offline
Registered User
FRC #0610 (Coyotes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Toronto
Posts: 108
ideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the rough
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java/Netbeans Camera Code for Classmate PC and Axis Camera joshholat Programming 1 23-01-2010 14:59
Console output jrws C/C++ 4 21-01-2010 04:33
Default windriver program, no code and warnings on CRIO console out pafwl C/C++ 1 16-01-2010 16:03
PC versus Console Denman Chit-Chat 40 22-05-2005 18:01


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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