View Single Post
  #19   Spotlight this post!  
Unread 16-02-2009, 09:28
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: pic: Team 1501 (T.H.R.U.S.T.) 2009 Skyhawk

I'm the programmer that Wayne was referring to. I thought I would explain how the shooter does it's stuff. The camera code is a slightly modified version of the Two Color Tracking Example. Once the camera has a lock, I do a bunch of trig to get the distance and therefore the velocity of the moon rock. I also get the angle the turret needs to point at and, using a 1000 pulse per revolution encoder, turn the turret to the correct angle.

Most of the time, the camera can lock on quickly to a target and all the operator has to do is fire. However, if the target is moving very erratically or the camera is blocked by something, the operator can take full control of the turret and firing speed.

If any of the shooting components should fail (it shouldn't, but with other robots ramming into us, it is a possibility), we still have another option. That "huge gaping mouth", as roboticWanderor put it so well, is capable of holding 7 or 8 moon rocks held back by the thresher. We can deliver these balls to human players or even other robots by reversing the thresher speed (controlled by the driver) and regurgitating the moon rocks (seriously, that's what it looks like).
__________________
Twitter Profile

Last edited by Luke Pike : 16-02-2009 at 09:30.