View Single Post
  #2   Spotlight this post!  
Unread 02-01-2013, 22:03
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Camera axis help

Quote:
Originally Posted by sunny1118 View Post
So our team used the camera axis setup thing and we were able to find it and after that we don't know what to do.
Assuming you're using Java, put this in your Main class

Code:
AxisCamera cameraName;  <-----Replace cameraName with something

public void robotInit() {
cameraName = AxisCamera.getInstance("10.0.0.11");    <---- Replace 0's with your team number such that team 3737 = "10.37.37.11"
cameraName.writeResolution(AxisCamera.ResolutionT.k320x240);  <---- Replace with the resolution you want to use
cameraName.writeMaxFPS(18);    <----- Replace with the frames-per-second you want to use
And transfer the camera images using NetworkTables
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
Reply With Quote