Skip to content

Commit

Permalink
Adjusted auto for the can burglars
Browse files Browse the repository at this point in the history
  • Loading branch information
omn0mn0m committed Apr 21, 2015
1 parent 0a0a0f7 commit 4711076
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/team708/robot/AutoConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public final class AutoConstants {
/*
* Can Grabbing Constants
*/
public static final double TO_CAN_DISTANCE = 26.0;
public static final double TO_CAN_DISTANCE = 27.5;
public static final double TO_SECOND_CAN_DISTANCE = 63.0;

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.team708.robot.commands.gucciGrabber.ActuateGucciGrabber;

import edu.wpi.first.wpilibj.command.CommandGroup;
import edu.wpi.first.wpilibj.command.WaitCommand;

/**
*
Expand All @@ -17,6 +18,7 @@ public CanGrabMoveBack() {

addSequential(new DriveStraightToEncoderDistance(AutoConstants.TO_CAN_DISTANCE, 0.65, false));
addSequential(new ActuateGucciGrabber(true));
addSequential(new WaitCommand(0.1));

addSequential(new DriveStraightToEncoderDistance(AutoConstants.TO_CAN_DISTANCE, 0.65));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.team708.robot.commands.gucciGrabber.ActuateGucciGrabber;

import edu.wpi.first.wpilibj.command.CommandGroup;
import edu.wpi.first.wpilibj.command.WaitCommand;

/**
*
Expand All @@ -18,13 +19,17 @@ public CanGrabMoveToNext() {

addSequential(new DriveStraightToEncoderDistance(AutoConstants.TO_CAN_DISTANCE, AutoConstants.ENCODER_SPEED, false));
addSequential(new ActuateGucciGrabber(true));
addSequential(new WaitCommand(0.1));

addSequential(new DriveStraightToEncoderDistance(AutoConstants.TO_CAN_DISTANCE, AutoConstants.ENCODER_SPEED));
addSequential(new ActuateGucciGrabber(false));
addSequential(new TurnToDegrees(AutoConstants.TURN_SPEED, AutoConstants.NINETY_DEGREE_TURN));
addSequential(new DriveStraightToEncoderDistance(AutoConstants.TO_SECOND_CAN_DISTANCE, AutoConstants.ENCODER_SPEED));

addSequential(new TurnToDegrees(AutoConstants.TURN_SPEED, -AutoConstants.NINETY_DEGREE_TURN));
addSequential(new DriveStraightToEncoderDistance(AutoConstants.TO_CAN_DISTANCE, AutoConstants.ENCODER_SPEED, false));
addParallel(new ActuateGucciGrabber(true));
addSequential(new WaitCommand(0.1));
addSequential(new DriveStraightToEncoderDistance(AutoConstants.TO_CAN_DISTANCE, AutoConstants.ENCODER_SPEED, false));
}
}

0 comments on commit 4711076

Please sign in to comment.