blob: 7851de494ef0c1d1f764593438814573f0f60101 [file] [log] [blame]
// 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.