View Single Post
  #4   Spotlight this post!  
Unread 01-02-2014, 16:10
ayantes's Avatar
ayantes ayantes is offline
Registered User
AKA: Andy Yantes
FRC #3193 (Falco Tech)
Team Role: Mentor
 
Join Date: May 2012
Rookie Year: 2011
Location: Austintown, Oh
Posts: 5
ayantes is an unknown quantity at this point
Re: Vision sample code

You need to setup Netconsole to view the Output of the printf commands. Example:
particle: 0 is a Vertical Target centerX: 219 centerY: 73
Scores rect: 71.474359 ARvert: 68.804771
ARhoriz: 1.463931
particle: 1 is a Horizontal Target centerX: 190 centerY: 45
Scores rect: 79.473684 ARvert: 0.000000
ARhoriz: 54.441782
Hot target located
Distance: 18.566375


particle: 0 is a Vertical Target centerX: 219 centerY: 73
Scores rect: 70.833333 ARvert: 67.708301
ARhoriz: 1.440602
particle: 1 is not a Target centerX: 190 centerY: 45
Scores rect: 79.459459 ARvert: 0.000000
ARhoriz: 44.115830
No hot target present
Distance: 18.500995
Reply With Quote