|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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);
}
}
|
|
#2
|
|||
|
|||
|
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(). |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Axis camera on classmate | Radical Pi | FRC Control System | 1 | 23-01-2010 05:47 |
| Where can I find camera tracking code for Java? | nikRbokRz | Java | 4 | 20-01-2010 23:35 |
| Netbeans/Overall Java/Code help!!! | a kenny03 | Java | 5 | 18-01-2010 22:32 |
| Java Camera Video on ClassMate | Thomas4019 | Java | 8 | 16-01-2010 00:18 |
| Axis Camera in C++; code error?? | Straberrie | Programming | 3 | 22-12-2008 21:52 |