|Quality has nothing to do with desire – you can’t wish quality. Quality has nothing to do with time, or money, or the other guy’s attitude. Quality has everything to do with craftsmanship. - Jack Jones [more]|
Team 1640's 2011 "Pivot Drive" (i.e. swerve) code, packaged as a LabVIEW library with an example project.
Ben Rajcan, Team 1640's lead programmer in 2011, has packaged the team's "Pivot Drive" (swerve) code from 2011 as a LabVIEW library. It works with the LabVIEW FRC 2012 image. The zip file includes the library, an example project (for our 2011 robot) using the library, and a brief HTML file explaining how to use the library.
If you have any questions, please feel free to send me a message.
07-10-2012 01:22 PMjcbc
For information about the drive train of DEWBOT VII, the robot that the test project is written for, please see Team 1640's DEWBOT VII Drive Train page.
07-10-2012 03:14 PMjb1403
This is a great reference for teams looking to do a swerve/pivot drive. I have always been amazed by 1640's design and the wiki page really helped me to understand how it came about. Plus it is really cool when you can go to there pits and play with an actual drive linked up to a vex controller. Great job guys.
07-12-2012 11:17 PMjcbc
03-17-2013 04:48 AMscasey01
Great code base - thanks for sharing. How do you calibrate the pivot encoders? My test pivot just drifts despite my attempt to calibrate. Is there a calibration VI buried in your test code that I missed?
03-19-2013 06:34 PMjcbc
Thanks! After the competition season is done, I plan on encouraging my lead programmer to publish the new and improved drive code.
At this point, we physically calibrate the wheels to zero, i.e. loosen the sensor set screw, turn the wheel to the desired angle to be "zero", turn the sensor until the code reports the angle is zero, and then tighten the set screw. The sensors don't seem to drift too much from the angle of the wheel, but we sometimes do need to re-calibrate. We keep meaning to put in auto-calibration code, but we haven't gotten there yet.
01-26-2014 11:45 AMfxc4957
how to control the robot mode swerve drive with joystick?