View Single Post
  #4   Spotlight this post!  
Unread 18-02-2012, 12:29
Pirate programe's Avatar
Pirate programe Pirate programe is offline
Registered User
FRC #0354
 
Join Date: Jan 2012
Location: Queens,NY
Posts: 53
Pirate programe is an unknown quantity at this point
Re: Fixed indexes for Target Info VI

Quote:
Our target selection code loops through the target info array looking for the maximum or minimum x or y, depending on which hoop the gunner wants it to track. The result is a single target cluster of x, y, and distance. The x value gets used to rotate the turret; y and distance control shot angle and strength.
Yeah, come to think of it, looping through the array to select a target would be what I'd have done. I'm not sure how to loop through an array in LabVIEW, though...
Reply With Quote