Log in

View Full Version : Team 2084: Robots By The C - Code Release


Ben Wolsieffer
06-04-2015, 10:26
Since our official competition is over, we are open sourcing our robot and related Java code for others to learn from and so we can reuse it in future years. We use the Command based system and Robot Builder, but our drive code is completely custom.

Robot Code (https://github.com/RobotsByTheC/CMonster2015)

Nearly full documentation for everything.
Flexible drive system that makes it easy to implement different drive systems. The mecanum code features support for gyros and wheel encoders, but not everything is fully tested.
ParameterCommand - allows Commands to have parameters that can be set from the SmartDashboard.
State machines to control other robot subsystems.
Semi-functional driver for the ITG3200 gyro (we didn't use it).
There is a lot of code there (6549 lines at the moment), so I probably forgot to list some interesting things.


SmartDashboard Extensions (https://github.com/RobotsByTheC/SmartDashboardExtensions2015)

Slider - a simple slider control, something that is missing from the built in widgets.
ParameterCommand - widget that displays the parameters from a ParameterCommand on the robot
WheelController - Used in conjunction with our drive code to display throttle, current and other values from our motors.


Vision Code (https://github.com/RobotsByTheC/VisionProcessor2015)

We didn't use vision in competition, but this still has some usefulness.
VideoServer - allows for streaming of any OpenCV image over http as an mjpg. It could probably use some improvement, but it works okay. It was ported from a (non-FRC) C++ version I wrote earlier, which I released here (http://www.chiefdelphi.com/forums/showpost.php?p=1438448&postcount=36), in case anyone wants to see it.


I hope someone finds this useful.