Go to Post Never leave future engineers alone, especially with something like gravity. - Alex Pelan [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-01-2013, 15:43
Chaos Inc. Chaos Inc. is offline
Registered User
None #1546 (Chaos Inc.)
Team Role: Teacher
 
Join Date: Jan 2013
Rookie Year: 2005
Location: Baldwin
Posts: 2
Chaos Inc. is an unknown quantity at this point
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.
  #2   Spotlight this post!  
Unread 21-01-2013, 16:03
Derek012's Avatar
Derek012 Derek012 is offline
I miss my frisbees
FRC #4564 (Orange Chaos)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Maine
Posts: 25
Derek012 is on a distinguished road
Yes, our team has the camera image processed on the driver station and then sends the information back to the cRio.
  #3   Spotlight this post!  
Unread 21-01-2013, 17:05
Keyreaper's Avatar
Keyreaper Keyreaper is offline
Keyreaper
AKA: Cyrus Duong
FRC #1710 (Revolution Ravonics)
Team Role: Programmer
 
Join Date: May 2011
Rookie Year: 2011
Location: Olathe
Posts: 140
Keyreaper is an unknown quantity at this point
Re: Camera Code

Quote:
Originally Posted by Derek012 View Post
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.
__________________

CTO/Head Programmer of Team 1710

  #4   Spotlight this post!  
Unread 21-01-2013, 17:25
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Camera Code

Quote:
Originally Posted by Keyreaper View Post
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.
__________________
I code stuff.
  #5   Spotlight this post!  
Unread 21-01-2013, 17:36
Keyreaper's Avatar
Keyreaper Keyreaper is offline
Keyreaper
AKA: Cyrus Duong
FRC #1710 (Revolution Ravonics)
Team Role: Programmer
 
Join Date: May 2011
Rookie Year: 2011
Location: Olathe
Posts: 140
Keyreaper is an unknown quantity at this point
Re: Camera Code

Quote:
Originally Posted by Ginto8 View Post
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:
__________________

CTO/Head Programmer of Team 1710

  #6   Spotlight this post!  
Unread 21-01-2013, 17:49
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 183
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: Camera Code

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.
Attached Thumbnails
Click image for larger version

Name:	Capture1.PNG
Views:	56
Size:	12.7 KB
ID:	13608  Click image for larger version

Name:	Capture2.PNG
Views:	42
Size:	2.6 KB
ID:	13609  Click image for larger version

Name:	Capture3.PNG
Views:	39
Size:	1.1 KB
ID:	13610  
  #7   Spotlight this post!  
Unread 21-01-2013, 18:28
Keyreaper's Avatar
Keyreaper Keyreaper is offline
Keyreaper
AKA: Cyrus Duong
FRC #1710 (Revolution Ravonics)
Team Role: Programmer
 
Join Date: May 2011
Rookie Year: 2011
Location: Olathe
Posts: 140
Keyreaper is an unknown quantity at this point
Re: Camera Code

Quote:
Originally Posted by bvisness View Post
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.
__________________

CTO/Head Programmer of Team 1710

  #8   Spotlight this post!  
Unread 22-01-2013, 10:26
Chaos Inc. Chaos Inc. is offline
Registered User
None #1546 (Chaos Inc.)
Team Role: Teacher
 
Join Date: Jan 2013
Rookie Year: 2005
Location: Baldwin
Posts: 2
Chaos Inc. is an unknown quantity at this point
Re: Camera Code

We're using Labview. What is the specific data you are getting back from the camera? Distance, Angle, etc.?
  #9   Spotlight this post!  
Unread 22-01-2013, 11:03
Keyreaper's Avatar
Keyreaper Keyreaper is offline
Keyreaper
AKA: Cyrus Duong
FRC #1710 (Revolution Ravonics)
Team Role: Programmer
 
Join Date: May 2011
Rookie Year: 2011
Location: Olathe
Posts: 140
Keyreaper is an unknown quantity at this point
Re: Camera Code

If that was directed at me... Probably distance so we can adjust the shooter rpm on the fly.
__________________

CTO/Head Programmer of Team 1710

  #10   Spotlight this post!  
Unread 22-01-2013, 16:30
jesusrambo jesusrambo is offline
Self-Proclaimed Programmer Messiah
AKA: JD Russo
FRC #2035 (Robo Rockin' Bots)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Carmel, CA
Posts: 114
jesusrambo is an unknown quantity at this point
Re: Camera Code

Check out this I wrote.
  #11   Spotlight this post!  
Unread 22-01-2013, 19:19
Chiller Chiller is offline
Registered User
AKA: Connor Christie
FRC #4095 (RoXI Robotics)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 118
Chiller is on a distinguished road
Re: Camera Code

Quote:
Originally Posted by jesusrambo View Post
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!
Closed Thread


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 02:25.

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