View Single Post
  #4   Spotlight this post!  
Unread 07-01-2013, 11:10
Ido_Wolf's Avatar
Ido_Wolf Ido_Wolf is offline
LabVIEW Addict
AKA: Ido
FRC #2230 (General Angels)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Israel
Posts: 42
Ido_Wolf is an unknown quantity at this point
Re: Need help in programing the camera Axis point

Quote:
Originally Posted by mprasolov View Post
I recall the IP of the camera should end in .11 or something like that.
Generally in its stock settings, the camera's IP is 192.168.0.90. When you connect it to your router (as all rookie teams starting 2012 have to as they don't have a 2nd port in the new cRIO), and set it up properly with the "Setup Axis Camera" tool, the IP would be 10.xx.yy.11 (xxyy=your team number).

If you connect it to the 2nd Enet port of your cRIO though, the IP should be set to 192.168.0.90.
Quote:
Originally Posted by Gadeer Zbedat View Post
Should I measur the dimension from the robot to the goal we throw at it the freesbie disc?
I don't quite understand the question here; you should measure it if you want to use it in your code, obviously. I'm not quite up to task as far as C++ is concerned, but if there's any alternative for WPILib's examples there, you should probably find an example code that shows you how to find the diagonal range from the target. You can use some trigonometry to find out the vertical and horizontal range from the target using the diagonal range and the camera's angle in relation to the target...

(Also, if you want any consultancy in Hebrew, feel free to PM me. Keep in mind that my IDE of choice is LabVIEW though)
Reply With Quote