|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
Yes, our team has the camera image processed on the driver station and then sends the information back to the cRio.
|
|
#3
|
||||
|
||||
|
Re: Camera Code
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.
|
|
#4
|
||||
|
||||
|
Re: Camera Code
Quote:
|
|
#5
|
||||
|
||||
|
Re: Camera Code
Well shoot. Not coding in Java... So no smartdashboard for me. D:
|
|
#6
|
||||
|
||||
|
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. |
|
#7
|
||||
|
||||
|
Re: Camera Code
Quote:
|
|
#8
|
|||
|
|||
|
Re: Camera Code
We're using Labview. What is the specific data you are getting back from the camera? Distance, Angle, etc.?
|
|
#9
|
||||
|
||||
|
Re: Camera Code
If that was directed at me... Probably distance so we can adjust the shooter rpm on the fly.
|
|
#10
|
|||
|
|||
|
Re: Camera Code
|
|
#11
|
|||
|
|||
|
Re: Camera Code
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|