View Single Post
  #2   Spotlight this post!  
Unread 09-02-2017, 08:33
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 135
aeastet is an unknown quantity at this point
Re: Vision Distance Question

Quote:
Originally Posted by RoboBucs View Post
This is the first year we've really tried vision, so if I seem lost, it's because all of vision is pretty much new to me, but I successfully integrated the 2017 vision example code into our vision code for this year. The camera display in vision shows the camera, and is filtering to show only our reflective tape correctly, however, the distance reading comes back as infinite(inf). Any ideas?
We your vision finds the target is the box red or green? You can change the threshold value to lower the level and it should turn green. You may also have to look a the code to see what you are not getting. When I went through the code the first time I noticed that it needed four points to calculate the distance. I made my own that only requires the line to get the distance. It seems to work really well. If you can not figure it out let me know and I will send you our distance code.
__________________
Team 6043 Allegan Tigers
LabVIEW Developer for Kauai Labs (navX and SF2 Libraries)
http://www.kauailabs.com/
Reply With Quote