View Single Post
  #3   Spotlight this post!  
Unread 11-01-2010, 15:51
jc4p jc4p is offline
Registered User
AKA: Kasra Rahjerdi
FRC #2412 (Robototes)
Team Role: Alumni
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Bellevue
Posts: 12
jc4p is an unknown quantity at this point
Re: Tips for C++ programming the 2010 control system

Quote:
Originally Posted by woodk View Post
Has anyone got the CameraToDashboardExample to actually work? I can compile it but I get nothing on the DriverStation. I notice that the driverstation program changes your IP address to 10.xx.yy.5 however the CameraToDashboardExample program says it is sending the images to 10.xx.yy.6 I tried setting up a remote dashboard with the IP10.xx.yy.6 but it is not able to connect to the robot at all.

Since there is no source code available yet, I can't change the code to send to 10.xx.yy.5.

Any I missing something, or should I just be patient and wait for a fix to be released?
Also, I can't be 100% sure about this because I don't have access to our robot right now, but I think all you need to do to populate the video box in the dashboard program is insert this in your code:

Code:
AxisCamera &camera = AxisCamera::getInstance();
camera.writeResolution(k320x240);
camera.writeBrightness(0);
Of course, adjust resolution and brightness as necessary.

According to WPI_Library_Users_Guide.pdf found on:
http://first.wpi.edu/FRC/frccupdates.html

All you need to do to populate that field is to call the camera getInstance method somewhere in your code.
Reply With Quote