View Single Post
  #1   Spotlight this post!  
Unread 11-04-2009, 23:54
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,058
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Team 2423 C++ Code

Since it seems to be all the rage, I'll announce the posting of our teams code for this year here on CD (of course, its actually been available since the middle of march... ). Some features:

- 4 independently steerable wheels in swerve drive
- 'CompassDrive' (created by a student on our team), which allows you to control the robot relative to the field using a gyro (ie, push the joystick in a direction and the robot moves that way).
- Maintenance routines using an interactive menu system on the Driver Station LCD
- Custom servos to control each wheel, with an interrupt-driven auto-calibrate system
- A consistent and working autonomous mode using the gyro to control our position relative to the field.
- We created a custom layered framework to support selectable control system types at the top layer, with a bottom layer that controls the bot based on speed/angle/rotation parameters.

Files are posted at http://www.virtualroadside.com/FRC/#Kwarqs2009

As a bonus, the code all compiles and works with my WPILib Test Harness, available at the same website. Unfortunately, I never got around to creating mechanisms to represent the encoders and such, so it doesn't look all that shiny. But you can see the menu system doing stuff in any case.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff