Go to Post Am I just a freak? - Josh Hambright [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-01-2013, 16:24
Gadeer Zbedat Gadeer Zbedat is offline
Registered User
FRC #1946 (Mishka Monster)
Team Role: Programmer
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Israel-Tamra
Posts: 37
Gadeer Zbedat is an unknown quantity at this point
Smile 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}
Reply With Quote
  #2   Spotlight this post!  
Unread 06-01-2013, 19:13
mprasolov's Avatar
mprasolov mprasolov is offline
Jack of all trades
AKA: Misha Prasolov
FRC #2823 (The Automatons)
Team Role: Student
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Saint Paul, MN
Posts: 36
mprasolov is an unknown quantity at this point
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 07-01-2013, 09:11
Gadeer Zbedat Gadeer Zbedat is offline
Registered User
FRC #1946 (Mishka Monster)
Team Role: Programmer
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Israel-Tamra
Posts: 37
Gadeer Zbedat is an unknown quantity at this point
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?
Reply With Quote
  #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
  #5   Spotlight this post!  
Unread 07-01-2013, 11:40
Gadeer Zbedat Gadeer Zbedat is offline
Registered User
FRC #1946 (Mishka Monster)
Team Role: Programmer
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Israel-Tamra
Posts: 37
Gadeer Zbedat is an unknown quantity at this point
Re: Need help in programing the camera Axis point

you can give me the text of programing it ?? in c++ ??
---->you are from Israel??
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 14:02.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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