View Single Post
  #1   Spotlight this post!  
Unread 26-02-2013, 23:25
wre136's Avatar
wre136 wre136 is offline
Registered User
AKA: Will Edds
FRC #2461 (The METAL-SKINS)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2002
Location: Oklahoma City
Posts: 30
wre136 is an unknown quantity at this point
Possible Wrong Wiring in FRC Vision Tracking Example

In the "Rectangular Tracking - 2013.lvproj", there is the "distance.vi". I believe either something is wired incorrectly there or this post is incorrect on which camera axis resolution you should use.

As from the post, it states that if you are trying to compute distance based off of the height of the sides of the rectangle, then you should use the Y axis resolution which is 240.

However, in the distance.vi (Attached to this post), it is obviously using the X Axis resolution of 320. The code still looks like its comparing against the height of the rectangles so this causes me some confusion.

Is the post wrong, the code wrong or am I just reading this wrong?
Attached Thumbnails
Click image for larger version

Name:	Bad FRC Programming.PNG
Views:	152
Size:	35.7 KB
ID:	14202