Try the RobotBuilder tool, defining the subsystems, sensors, and actuators of this year's robot. This is not to distract anyone from aos, just to try it out and see what other teams are using. Also it looks very handy for robot hardware checkout and PID tuning.
Cf docs http://wpilib.screenstepslive.com/s/3120/m/7882/l/88538-overview-of-robotbuilder
Cf video demo http://www.youtube.com/user/bradamiller
git-svn-id: https://robotics.mvla.net/svn/frc971/2013/trunk/src@4101 f308d9b7-e957-4cde-b6ac-9a88185e7312
diff --git a/robot_builder/Robot2013/Subsystems/DriveTrain.cpp b/robot_builder/Robot2013/Subsystems/DriveTrain.cpp
new file mode 100644
index 0000000..7851de4
--- /dev/null
+++ b/robot_builder/Robot2013/Subsystems/DriveTrain.cpp
@@ -0,0 +1,33 @@
+// RobotBuilder Version: 0.0.2
+//
+// This file was generated by RobotBuilder. It contains sections of
+// code that are automatically generated and assigned by robotbuilder.
+// These sections will be updated in the future when you export to
+// C++ from RobotBuilder. Do not put any code or make any change in
+// the blocks indicating autogenerated code or it will be lost on an
+// update. Deleting the comments indicating the section will prevent
+// it from being updated in th future.
+#include "DriveTrain.h"
+#include "../Robotmap.h"
+DriveTrain::DriveTrain() : Subsystem("DriveTrain") {
+ // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
+ leftShifter = RobotMap::driveTrainLeftShifter;
+ rightShifter = RobotMap::driveTrainRightShifter;
+ leftMotors1and2 = RobotMap::driveTrainLeftMotors1and2;
+ leftMotor3 = RobotMap::driveTrainLeftMotor3;
+ rightMotors1and2 = RobotMap::driveTrainRightMotors1and2;
+ rightMotor3 = RobotMap::driveTrainRightMotor3;
+ robotDrive = RobotMap::driveTrainRobotDrive;
+ quadratureEncoderLeft = RobotMap::driveTrainQuadratureEncoderLeft;
+ quadratureEncoderRight = RobotMap::driveTrainQuadratureEncoderRight;
+ // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
+}
+
+void DriveTrain::InitDefaultCommand() {
+ // Set the default command for a subsystem here.
+ //SetDefaultCommand(new MySpecialCommand());
+ // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
+ // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
+}
+// Put methods for controlling this subsystem
+// here. Call these from Commands.