1 package org
.usfirst
.frc
.team3501
.robot
.commands
.driving
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
4 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.DriveTrain
;
6 import edu
.wpi
.first
.wpilibj
.command
.Command
;
9 * This command shifts the gear to high
11 * Author: Rohan Rodrigues
13 public class ShiftDriveLowGear
extends Command
{
14 DriveTrain driveTrain
= Robot
.getDriveTrain();
16 public ShiftDriveLowGear() {
21 protected void initialize() {
26 protected void execute() {
27 driveTrain
.setLowGear();
28 System
.out
.println("Current Value is: " + driveTrain
.getLeftMotorVal());
32 protected boolean isFinished() {
37 protected void end() {
41 protected void interrupted() {