|
Re: Vison Question (Sorting out the Array)
Quote:
Originally Posted by heya101
So I'd like to be able to just pick the top most hoop when targeting. I know your supposed to just unbundle the target info variable and then use the y-values and try to find the max y value and use its information.
The problem for me is translating those words into actual code. If someone could just so me a picture of what they did to sort the target info's, that would be great.
|
i created an example for you maybe this may help the teleop is what might be used in an actual robot code. the vision code is the example which show you how to track and classify the targets
Let me know if this helps or you have more questions
__________________
Ferris State University-Manufacturing Engineering (BS)
FRC 2054: Student 2010-2013
FTC 6283: Mentor 2012-????
FTC 5980: Mentor 2012-????
FTC 7837: Mentor 2013-????
FRC 2054: Mentor 2013-????
FRC 5162: Mentor 2014-????
FRC 5448: Mentor 2016-????
FRC 5576: Mentor 2015
|