mirror of
https://github.com/Team4388/2018-Robot.git
synced 2026-06-08 16:28:06 -06:00
auto changes
This commit is contained in:
@@ -28,18 +28,18 @@ public class CenterLeft extends CommandGroup {
|
|||||||
addSequential(new IntakePosition(true));
|
addSequential(new IntakePosition(true));
|
||||||
addSequential(new DriveSpeedShift(true));
|
addSequential(new DriveSpeedShift(true));
|
||||||
|
|
||||||
addSequential(new DriveStraightBasic(-15, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(-15, 50, true, true, 0));
|
||||||
addSequential(new DriveTurnBasic(true, 130, 300, MPSoftwareTurnType.TANK));
|
addSequential(new DriveTurnBasic(true, 130, 300, MPSoftwareTurnType.TANK));
|
||||||
addSequential(new DriveStraightBasic(53, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(53, 50, true, true, 0));
|
||||||
addSequential(new ElevatorBasic(20));
|
addSequential(new ElevatorBasic(20));
|
||||||
addSequential(new DriveTurnBasic(true, 34.5, 300, MPSoftwareTurnType.TANK));
|
addSequential(new DriveTurnBasic(true, 34.5, 300, MPSoftwareTurnType.TANK));
|
||||||
addSequential(new DriveStraightBasic(19, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(19, 50, true, true, 0));
|
||||||
addSequential(new IntakeSetSpeed(Carriage.CUBE_EJECT_SPEED));
|
addSequential(new IntakeSetSpeed(Carriage.CUBE_EJECT_SPEED));
|
||||||
//addSequential(new WaitCommand(.1));
|
//addSequential(new WaitCommand(.1));
|
||||||
addSequential(new IntakePosition(false));
|
addSequential(new IntakePosition(false));
|
||||||
addSequential(new WaitCommand(.2));
|
addSequential(new WaitCommand(.2));
|
||||||
addSequential(new IntakeSetSpeed(Carriage.CUBE_STOP_SPEED));
|
addSequential(new IntakeSetSpeed(Carriage.CUBE_STOP_SPEED));
|
||||||
addSequential(new DriveStraightBasic(-20, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(-20, 50, true, true, 0));
|
||||||
addSequential(new ElevatorBasic(10));
|
addSequential(new ElevatorBasic(10));
|
||||||
addSequential(new DriveSpeedShift(false));
|
addSequential(new DriveSpeedShift(false));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,18 +29,18 @@ public class CenterRight extends CommandGroup {
|
|||||||
addSequential(new DriveSpeedShift(true));
|
addSequential(new DriveSpeedShift(true));
|
||||||
|
|
||||||
|
|
||||||
addSequential(new DriveStraightBasic(-15, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(-15, 50, true, true, 0));
|
||||||
addSequential(new DriveTurnBasic(true, -130, 300, MPSoftwareTurnType.TANK));
|
addSequential(new DriveTurnBasic(true, -130, 300, MPSoftwareTurnType.TANK));
|
||||||
addSequential(new DriveStraightBasic(53, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(53, 50, true, true, 0));
|
||||||
addSequential(new ElevatorBasic(20));
|
addSequential(new ElevatorBasic(20));
|
||||||
addSequential(new DriveTurnBasic(true, -34.5, 300, MPSoftwareTurnType.TANK));
|
addSequential(new DriveTurnBasic(true, -34.5, 300, MPSoftwareTurnType.TANK));
|
||||||
addSequential(new DriveStraightBasic(19, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(19, 50, true, true, 0));
|
||||||
addSequential(new IntakeSetSpeed(Carriage.CUBE_EJECT_SPEED));
|
addSequential(new IntakeSetSpeed(Carriage.CUBE_EJECT_SPEED));
|
||||||
//addSequential(new WaitCommand(.1));
|
//addSequential(new WaitCommand(.1));
|
||||||
addSequential(new IntakePosition(false));
|
addSequential(new IntakePosition(false));
|
||||||
addSequential(new WaitCommand(.2));
|
addSequential(new WaitCommand(.2));
|
||||||
addSequential(new IntakeSetSpeed(Carriage.CUBE_STOP_SPEED));
|
addSequential(new IntakeSetSpeed(Carriage.CUBE_STOP_SPEED));
|
||||||
addSequential(new DriveStraightBasic(-20, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(-20, 50, true, true, 0));
|
||||||
addSequential(new DriveSpeedShift(false));
|
addSequential(new DriveSpeedShift(false));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ public class CrossTheBaseLine extends CommandGroup {
|
|||||||
addSequential(new DriveGyroReset());
|
addSequential(new DriveGyroReset());
|
||||||
addSequential(new DriveSpeedShift(true));
|
addSequential(new DriveSpeedShift(true));
|
||||||
addSequential(new IntakePosition(true));
|
addSequential(new IntakePosition(true));
|
||||||
addSequential(new DriveStraightBasic(-90, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(-90, 50, true, true, 0));
|
||||||
addSequential(new DriveSpeedShift(false));
|
addSequential(new DriveSpeedShift(false));
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -43,6 +43,6 @@ public class LeftStartRightScore extends CommandGroup {
|
|||||||
addSequential(new IntakeSetSpeed(Carriage.CUBE_STOP_SPEED));
|
addSequential(new IntakeSetSpeed(Carriage.CUBE_STOP_SPEED));
|
||||||
addSequential(new DriveStraightBasic(-10, 50, true, true, 0));
|
addSequential(new DriveStraightBasic(-10, 50, true, true, 0));
|
||||||
addSequential(new DriveSpeedShift(false));
|
addSequential(new DriveSpeedShift(false));
|
||||||
//addSequential(new DriveStraightMP(60, 10, true, true, 0)); // 95 for 112" greenville
|
//addSequential(new DriveStraightMP(50, 10, true, true, 0)); // 95 for 112" greenville
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,20 +28,20 @@ public class LeftSwitchAuton extends CommandGroup {
|
|||||||
addSequential(new IntakePosition(true));
|
addSequential(new IntakePosition(true));
|
||||||
|
|
||||||
|
|
||||||
addSequential(new DriveStraightBasic(-130, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(-130, 50, true, true, 0));
|
||||||
addSequential(new ElevatorBasic(30));
|
addSequential(new ElevatorBasic(30));
|
||||||
addSequential(new DriveTurnBasic(true, -87, 300, MPSoftwareTurnType.TANK));
|
addSequential(new DriveTurnBasic(true, -87, 300, MPSoftwareTurnType.TANK));
|
||||||
addSequential(new ElevatorBasic(30));
|
addSequential(new ElevatorBasic(30));
|
||||||
addSequential(new DriveStraightBasic(20, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(20, 50, true, true, 0));
|
||||||
addSequential(new IntakeSetSpeed(Carriage.CUBE_EJECT_SPEED));
|
addSequential(new IntakeSetSpeed(Carriage.CUBE_EJECT_SPEED));
|
||||||
//addSequential(new WaitCommand(.1));
|
//addSequential(new WaitCommand(.1));
|
||||||
addSequential(new IntakePosition(false));
|
addSequential(new IntakePosition(false));
|
||||||
addSequential(new WaitCommand(.5));
|
addSequential(new WaitCommand(.5));
|
||||||
addSequential(new IntakeSetSpeed(Carriage.CUBE_STOP_SPEED));
|
addSequential(new IntakeSetSpeed(Carriage.CUBE_STOP_SPEED));
|
||||||
addSequential(new DriveStraightBasic(-20, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(-20, 50, true, true, 0));
|
||||||
addSequential(new DriveSpeedShift(false));
|
addSequential(new DriveSpeedShift(false));
|
||||||
|
|
||||||
//addSequential(new DriveStraightMP(60, 10, true, true, 0)); // 95 for 112" greenville
|
//addSequential(new DriveStraightMP(50, 10, true, true, 0)); // 95 for 112" greenville
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,20 +28,20 @@ public class RightSwitchAuton extends CommandGroup {
|
|||||||
addSequential(new IntakePosition(true));
|
addSequential(new IntakePosition(true));
|
||||||
|
|
||||||
|
|
||||||
addSequential(new DriveStraightBasic(-130, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(-130, 50, true, true, 0));
|
||||||
addSequential(new ElevatorBasic(30));
|
addSequential(new ElevatorBasic(30));
|
||||||
addSequential(new DriveTurnBasic(true, 87, 300, MPSoftwareTurnType.TANK));
|
addSequential(new DriveTurnBasic(true, 87, 300, MPSoftwareTurnType.TANK));
|
||||||
addSequential(new ElevatorBasic(30));
|
addSequential(new ElevatorBasic(30));
|
||||||
addSequential(new DriveStraightBasic(20, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(20, 50, true, true, 0));
|
||||||
addSequential(new IntakeSetSpeed(Carriage.CUBE_EJECT_SPEED));
|
addSequential(new IntakeSetSpeed(Carriage.CUBE_EJECT_SPEED));
|
||||||
//addSequential(new WaitCommand(.1));
|
//addSequential(new WaitCommand(.1));
|
||||||
addSequential(new IntakePosition(false));
|
addSequential(new IntakePosition(false));
|
||||||
addSequential(new WaitCommand(.5));
|
addSequential(new WaitCommand(.5));
|
||||||
addSequential(new IntakeSetSpeed(Carriage.CUBE_STOP_SPEED));
|
addSequential(new IntakeSetSpeed(Carriage.CUBE_STOP_SPEED));
|
||||||
addSequential(new DriveStraightBasic(-20, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(-20, 50, true, true, 0));
|
||||||
addSequential(new DriveSpeedShift(false));
|
addSequential(new DriveSpeedShift(false));
|
||||||
|
|
||||||
//addSequential(new DriveStraightMP(60, 10, true, true, 0)); // 95 for 112" greenville
|
//addSequential(new DriveStraightMP(50, 10, true, true, 0)); // 95 for 112" greenville
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ public class ScaleFrom3 extends CommandGroup {
|
|||||||
addSequential(new IntakePosition(true));
|
addSequential(new IntakePosition(true));
|
||||||
|
|
||||||
|
|
||||||
addSequential(new DriveStraightBasic(-290, 60, true, true, 0));
|
addSequential(new DriveStraightBasic(-290, 50, true, true, 0));
|
||||||
addSequential(new ElevatorBasic(70));
|
addSequential(new ElevatorBasic(70));
|
||||||
addSequential(new DriveTurnBasic(true, 90, 100, MPSoftwareTurnType.TANK));
|
addSequential(new DriveTurnBasic(true, 90, 100, MPSoftwareTurnType.TANK));
|
||||||
//addSequential(new DriveStraightBasic(5, 20, true, true, 0));
|
//addSequential(new DriveStraightBasic(5, 20, true, true, 0));
|
||||||
@@ -41,7 +41,7 @@ public class ScaleFrom3 extends CommandGroup {
|
|||||||
addSequential(new ElevatorBasic(10));
|
addSequential(new ElevatorBasic(10));
|
||||||
addSequential(new DriveSpeedShift(false));
|
addSequential(new DriveSpeedShift(false));
|
||||||
|
|
||||||
//addSequential(new DriveStraightMP(60, 10, true, true, 0)); // 95 for 112" greenville
|
//addSequential(new DriveStraightMP(50, 10, true, true, 0)); // 95 for 112" greenville
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user