blob: 7851de494ef0c1d1f764593438814573f0f60101 [file] [log] [blame]
jerrym1815d882013-02-14 04:21:29 +00001// RobotBuilder Version: 0.0.2
2//
3// This file was generated by RobotBuilder. It contains sections of
4// code that are automatically generated and assigned by robotbuilder.
5// These sections will be updated in the future when you export to
6// C++ from RobotBuilder. Do not put any code or make any change in
7// the blocks indicating autogenerated code or it will be lost on an
8// update. Deleting the comments indicating the section will prevent
9// it from being updated in th future.
10#include "DriveTrain.h"
11#include "../Robotmap.h"
12DriveTrain::DriveTrain() : Subsystem("DriveTrain") {
13 // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
14 leftShifter = RobotMap::driveTrainLeftShifter;
15 rightShifter = RobotMap::driveTrainRightShifter;
16 leftMotors1and2 = RobotMap::driveTrainLeftMotors1and2;
17 leftMotor3 = RobotMap::driveTrainLeftMotor3;
18 rightMotors1and2 = RobotMap::driveTrainRightMotors1and2;
19 rightMotor3 = RobotMap::driveTrainRightMotor3;
20 robotDrive = RobotMap::driveTrainRobotDrive;
21 quadratureEncoderLeft = RobotMap::driveTrainQuadratureEncoderLeft;
22 quadratureEncoderRight = RobotMap::driveTrainQuadratureEncoderRight;
23 // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
24}
25
26void DriveTrain::InitDefaultCommand() {
27 // Set the default command for a subsystem here.
28 //SetDefaultCommand(new MySpecialCommand());
29 // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
30 // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
31}
32// Put methods for controlling this subsystem
33// here. Call these from Commands.