View Single Post
  #2   Spotlight this post!  
Unread 10-04-2012, 20:01
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Cannot make a static reference to the non-static method

You need to get an instance of an AxisCamera before you can call that method.

Example:
Code:
// Typically you only want to do this ONCE; camera should be a class member
AxisCamera camera = AxisCamera.getInstance(); 

// Then you can get the image as often as you would like (but it's pretty slow, you don't want to call this more than once per 50 milliseconds or so!
ColorImage image = camera.getImage();

Last edited by Jared Russell : 10-04-2012 at 20:06.
Reply With Quote