X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommandgroups%2FAutonMiddleGear.java;h=4880baf28f19e1c136521117d1114e49513c15c8;hp=913bbd7e746c6b9b39d9dd4fc9be58a49b99564f;hb=9ca89e45fa84b2ec93bc6adf60c7dde1e0a7defb;hpb=c9b2778700c8f0bd6dec88e9993e176823145308 diff --git a/src/org/usfirst/frc/team3501/robot/commandgroups/AutonMiddleGear.java b/src/org/usfirst/frc/team3501/robot/commandgroups/AutonMiddleGear.java index 913bbd7..4880baf 100644 --- a/src/org/usfirst/frc/team3501/robot/commandgroups/AutonMiddleGear.java +++ b/src/org/usfirst/frc/team3501/robot/commandgroups/AutonMiddleGear.java @@ -1,12 +1,9 @@ package org.usfirst.frc.team3501.robot.commandgroups; -import org.usfirst.frc.team3501.robot.Constants.Direction; import org.usfirst.frc.team3501.robot.commands.driving.DriveDistance; -import org.usfirst.frc.team3501.robot.commands.driving.TurnForAngle; import edu.wpi.first.wpilibj.command.CommandGroup; -import edu.wpi.first.wpilibj.command.WaitCommand; /** * @@ -36,20 +33,14 @@ public class AutonMiddleGear extends CommandGroup { * direction to turn after placing gear on peg in order to cross the * baseline. Only Direction.LEFT and Direction.RIGHT will be accepted */ - public AutonMiddleGear(Direction direction) { + public AutonMiddleGear() { addSequential(new DriveDistance(DISTANCE_TO_PEG, maxTimeOut)); - addSequential(new WaitCommand(3)); - addSequential(new DriveDistance(DISTANCE_TO_BACK_OUT, maxTimeOut)); - addSequential(new TurnForAngle(ANGLE_TO_TURN, direction, maxTimeOut)); - addSequential(new DriveDistance(THIRD_DISTANCE_TO_TRAVEL, maxTimeOut)); - addSequential( - new TurnForAngle(ANGLE_TO_TURN, oppositeOf(direction), maxTimeOut)); - addSequential(new DriveDistance(DISTANCE_TO_BASELINE, maxTimeOut)); - } - - private Direction oppositeOf(Direction direction) { - if (direction == Direction.LEFT) - return Direction.RIGHT; - return Direction.LEFT; + // addSequential(new WaitCommand(3)); + // addSequential(new DriveDistance(DISTANCE_TO_BACK_OUT, maxTimeOut)); + // addSequential(new TurnForAngle(ANGLE_TO_TURN, direction, maxTimeOut)); + // addSequential(new DriveDistance(THIRD_DISTANCE_TO_TRAVEL, maxTimeOut)); + // addSequential( + // new TurnForAngle(ANGLE_TO_TURN, oppositeOf(direction), maxTimeOut)); + // addSequential(new DriveDistance(DISTANCE_TO_BASELINE, maxTimeOut)); } }