View Single Post
  #10   Spotlight this post!  
Unread 27-01-2012, 14:36
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Square recognition in Labview

To read an element from an array, you use an Index Array node found in the array palette. To loop through each element in an array, simply have the wire cross the boundary of a loop, and if necessary, set the loop tunnel to index automatically. Once you find the target element you want, unbundle its X value and do the comparison or decision making and potentially set the motor speeds or update Robot Drive as shown in the attachment.

Keep in mind that controlling how much the robot turns, how fast, or for how long is often when teams will introduce a control loop and possibly another sensor such as a gyro. There are examples for some of these concepts that may help out.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2012-01-27 at 1.34.05 PM.png
Views:	46
Size:	12.9 KB
ID:	11597  
Reply With Quote