View Single Post
  #2   Spotlight this post!  
Unread 20-03-2007, 22:11
Adamskiy's Avatar
Adamskiy Adamskiy is offline
Team Founder
AKA: Brandon Adams
FRC #1261 (RoboLions)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Suwanee, GA
Posts: 30
Adamskiy is on a distinguished road
Re: Programming tricks (and former trade secrets)

We did similar to the above quote of meatmanek, but scaled it from -100 to +100....lost some resolution, but it made calculations much more simple. And although we had a tank drive, we set the left thumbstick on our Xbox controller to the throttle, and the right thumbstick controlled steering. We did that after picking drivers, as one of them loves Halo and figured it would be more easy for him to control.

For our elevator, the motor that acted as the winch was a small CIM with a BaneBots gearhead/encoder on it, so we used the encoder to have set rack positions (high/med/low) that would be assigned to a single button on the Guitar Hero controller. We then had a limit switch at the bottom (load position) that would reset the encoder count to 0 to account for slight variations that would occur....obviously not the best method, but it was accurate to about an inch, so good enough since we lower the tube onto the rack to score.
__________________
Team 1261 - Motorola/Cognex/EMD Software & Peachtree Ridge High School
- 2005 Peachtree Regional Champions
(Thanks 281 and 801)
- 2006 Peachtree Regional Champions (Thanks 1414 and 1057)
- 2006 Peachtree Regional Delphi "Driving Tomorrow's Technology" Award
- 2006 Peachtree Regional Underwriters Laboratories Safety Award
- 2007 Peachtree Regional Innovation In Control Award
(Guitar Hero controller )
- 2007 Peachtree Regional Semi-Finalists (Thanks 1746 and 1057)