OCCRA
Go to Post Why follow when you can lead? - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Events   CD-Media   CD-Spy   FRC-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-23-2010, 11:35 AM
joshholat joshholat is offline
Registered User
FRC #0930
 
Join Date: Jan 2010
Location: Mukwonago
Posts: 24
joshholat is an unknown quantity at this point
Java/Netbeans Camera Code for Classmate PC and Axis Camera

My team is using Java and trying to get the camera working on the driver station. We have v19 on the cRIO and all the netbeans plugins are updated. Also, the camera has the FRC account and the root account on it at the right IP address and is plugged into port two via crossover ethernet. that said, there is something wrong with the code we are using i think:

Code:
public void teleopPeriodic() {
    while (true && isOperatorControl() && isEnabled()){

        AxisCamera.getInstance().writeCompression(0);
AxisCamera.getInstance().writeResolution(AxisCamera.ResolutionT.k320x240);
AxisCamera.getInstance().writeBrightness(10);

}
}
it keeps erroring out when we deploy with that code in our program, but not if we comment that out. is this the right code?
  #2   Spotlight this post!  
Unread 01-23-2010, 01:59 PM
joshholat joshholat is offline
Registered User
FRC #0930
 
Join Date: Jan 2010
Location: Mukwonago
Posts: 24
joshholat is an unknown quantity at this point
Re: Java/Netbeans Camera Code for Classmate PC and Axis Camera

Okay, we got it working with this code in robotInit():

camera = AxisCamera.getInstance();
camera.writeResolution(AxisCamera.ResolutionT.k320 x240);
camera.writeBrightness(0);

and

DriverStationLCD.getInstance().updateLCD();

in teleopPeriodic().
Closed Thread


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
Axis camera on classmate Radical Pi FRC Control System 1 01-23-2010 04:47 AM
Where can I find camera tracking code for Java? nikRbokRz Java 4 01-20-2010 10:35 PM
Netbeans/Overall Java/Code help!!! a kenny03 Java 5 01-18-2010 09:32 PM
Java Camera Video on ClassMate Thomas4019 Java 8 01-15-2010 11:18 PM
Axis Camera in C++; code error?? Straberrie Programming 3 12-22-2008 08:52 PM


All times are GMT -5. The time now is 10:33 PM.

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


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