Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Camera Code (http://www.chiefdelphi.com/forums/showthread.php?t=111741)

Chaos Inc. 21-01-2013 15:43

Camera Code
 
Good Afternoon To All of the FIRST Community,

Has any team successfully wrote their teams camera code in being able to have the camera lock on to the tape outlining the goals?

Many thanks for your help.

Derek012 21-01-2013 16:03

Yes, our team has the camera image processed on the driver station and then sends the information back to the cRio.

Keyreaper 21-01-2013 17:05

Re: Camera Code
 
Quote:

Originally Posted by Derek012 (Post 1219591)
Yes, our team has the camera image processed on the driver station and then sends the information back to the cRio.

Is there a paper that you followed or used in helping you figure out how to send data from that dashboard back to the cRIO? I haven't quite found anything on it yet and would really like the processing done on my driver station but have instructions sent to the robot afterwards.

Ginto8 21-01-2013 17:25

Re: Camera Code
 
Quote:

Originally Posted by Keyreaper (Post 1219620)
Is there a paper that you followed or used in helping you figure out how to send data from that dashboard back to the cRIO? I haven't quite found anything on it yet and would really like the processing done on my driver station but have instructions sent to the robot afterwards.

Robot.getTable() provides access to the table used by the SmartDashboard.put() and SmartDashboard.get() methods on the robot.

Keyreaper 21-01-2013 17:36

Re: Camera Code
 
Quote:

Originally Posted by Ginto8 (Post 1219630)
Robot.getTable() provides access to the table used by the SmartDashboard.put() and SmartDashboard.get() methods on the robot.

Well shoot. Not coding in Java... So no smartdashboard for me. D:

bvisness 21-01-2013 17:49

Re: Camera Code
 
3 Attachment(s)
LabView makes it super easy to send data from the dashboard back to the robot. I've attached a few screenshots explaining how we accomplish it.

The block in the last screenshot is part of a new Dashboard section they added to the WPI Robotics Library. As long as you have an indicator on your dashboard with a unique name, you can reference it in your robot code using one of the "SD Read" blocks.

Keyreaper 21-01-2013 18:28

Re: Camera Code
 
Quote:

Originally Posted by bvisness (Post 1219639)
LabView makes it super easy to send data from the dashboard back to the robot. I've attached a few screenshots explaining how we accomplish it.

The block in the last screenshot is part of a new Dashboard section they added to the WPI Robotics Library. As long as you have an indicator on your dashboard with a unique name, you can reference it in your robot code using one of the "SD Read" blocks.

Oh sweet! Thanks. I'll be sure to try this tomorrow at our meeting.

Chaos Inc. 22-01-2013 10:26

Re: Camera Code
 
We're using Labview. What is the specific data you are getting back from the camera? Distance, Angle, etc.?

Keyreaper 22-01-2013 11:03

Re: Camera Code
 
If that was directed at me... Probably distance so we can adjust the shooter rpm on the fly.

jesusrambo 22-01-2013 16:30

Re: Camera Code
 
Check out this I wrote.

Chiller 22-01-2013 19:19

Re: Camera Code
 
Quote:

Originally Posted by jesusrambo (Post 1220122)

Haha I was just about to refer him to that! Btw that was a great post but hadn't had the time yet to try it out!


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

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