Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Need help in programing the camera Axis point (http://www.chiefdelphi.com/forums/showthread.php?t=110572)

Gadeer Zbedat 06-01-2013 16:24

Need help in programing the camera Axis point
 
Hii :))
I'm member of team #1946 From Tamra-ISRAEL
This year we should use the camera !! without the camera it's all full of $@#$@#$@#$@#
So ,I need your help guys in programing the camera in C++ language .
{Last year we don't use the camera}

mprasolov 06-01-2013 19:13

Re: Need help in programing the camera Axis point
 
You can look at our code from last season here

All we did was put this code in our initialization class. (Not the constructor)
Code:

AxisCamera &camera = AxisCamera::GetInstance();
It will build with a warning, but works anyway. Sends feed to dashboard (not the driver station) if you configured the camera correctly. I recall the IP of the camera should end in .11 or something like that.

Gadeer Zbedat 07-01-2013 09:11

Re: Need help in programing the camera Axis point
 
Should I measur the dimension from the robot to the goal we throw at it the freesbie disc?

Ido_Wolf 07-01-2013 11:10

Re: Need help in programing the camera Axis point
 
Quote:

Originally Posted by mprasolov (Post 1209261)
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 (Post 1209734)
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)

Gadeer Zbedat 07-01-2013 11:40

Re: Need help in programing the camera Axis point
 
you can give me the text of programing it ?? in c++ ?? :]
---->you are from Israel??


All times are GMT -5. The time now is 18:21.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi