View Single Post
  #4   Spotlight this post!  
Unread 16-01-2014, 19:03
DavisC DavisC is offline
Registered User
FRC #0539 (Titans)
Team Role: College Student
 
Join Date: Jul 2011
Rookie Year: 2010
Location: Virginia
Posts: 200
DavisC is just really niceDavisC is just really niceDavisC is just really niceDavisC is just really nice
Re: Vision Processing on cRIO

Quote:
Originally Posted by Joe Ross View Post
It would be helpful to explain what changes you made to the code. By default, it does not read from the camera, but instead reads an image from the cRIO filesystem. http://wpilib.screenstepslive.com/s/...95-c-java-code
Yes, sorry forgot about that.
I commented out and uncommented the lines referred to (here).
After doing that, it threw an error saying "camera" not declared. So after looking around I figured I declare the camera something like so:

Code:
class VisionSample2014 : public SimpleRobot
... AxisCamera& camera;
public:
VisionSample2014(void):
... camera::GetInstance(CAMERA_IP)
I added CAMERA_IP as a new #define above

This all built and deployed without errors.

Quote:
Originally Posted by Alan Anderson View Post
Do you see the targets glowing green on the image returned by the camera?
Yes, I also adjusted the brightness of the camera using the online interface to ~15 to make the green stand out more on the dark/black background
__________________
FRC Team 539
Student Member: 2010 Breakaway - 2014 Aerial Assist
Mentor: 2015 Recycle Rush - present

Last edited by DavisC : 16-01-2014 at 19:09.
Reply With Quote