Files
2018-Robot/src/org/usfirst/frc4388/robot/commands/auton/CenterLeft.java
T

57 lines
1.9 KiB
Java
Raw Normal View History

2018-03-05 18:50:01 -07:00
package org.usfirst.frc4388.robot.commands.auton;
2018-03-09 00:01:29 -06:00
2018-03-05 18:50:01 -07:00
import org.usfirst.frc4388.robot.commands.DriveGyroReset;
import org.usfirst.frc4388.robot.commands.DriveSpeedShift;
import org.usfirst.frc4388.robot.commands.DriveStraightBasic;
2018-03-09 00:01:29 -06:00
2018-03-05 18:50:01 -07:00
import org.usfirst.frc4388.robot.commands.DriveTurnBasic;
2018-03-05 18:57:23 -07:00
import org.usfirst.frc4388.robot.commands.ElevatorBasic;
2018-03-09 00:01:29 -06:00
2018-03-05 18:50:01 -07:00
import org.usfirst.frc4388.robot.commands.IntakePosition;
import org.usfirst.frc4388.robot.commands.IntakeSetSpeed;
import org.usfirst.frc4388.robot.subsystems.Carriage;
2018-03-09 00:01:29 -06:00
2018-03-05 18:50:01 -07:00
import org.usfirst.frc4388.utility.MPSoftwarePIDController.MPSoftwareTurnType;
import edu.wpi.first.wpilibj.command.CommandGroup;
import edu.wpi.first.wpilibj.command.WaitCommand;
/**
*
*/
2018-03-05 18:57:23 -07:00
public class CenterLeft extends CommandGroup {
2018-03-05 18:50:01 -07:00
2018-03-05 22:25:49 -07:00
public CenterLeft()
{
2018-03-05 18:50:01 -07:00
addSequential(new DriveGyroReset());
addSequential(new IntakePosition(true));
2018-03-09 00:01:29 -06:00
addSequential(new DriveSpeedShift(true));
2018-03-10 20:12:20 -06:00
addSequential(new DriveStraightBasic(-15, 30, true, true, 0));
addSequential(new DriveTurnBasic(true, 115, 150, MPSoftwareTurnType.TANK));
addSequential(new WaitCommand(.2));
addSequential(new DriveStraightBasic(80, 45, true, true, 0));
addSequential(new ElevatorBasic(30));
2018-03-11 11:29:41 -05:00
addSequential(new DriveTurnBasic(true, 12, 150, MPSoftwareTurnType.TANK));
addSequential(new DriveStraightBasic(12, 45, true, true, 0));
//addParallel(new TimeoutBecaseYea());
//addSequential(new WaitCommand(3));
2018-03-05 18:50:01 -07:00
addSequential(new IntakeSetSpeed(Carriage.CUBE_EJECT_SPEED));
2018-03-05 18:57:23 -07:00
//addSequential(new WaitCommand(.1));
2018-03-05 18:50:01 -07:00
addSequential(new IntakePosition(false));
2018-03-05 22:25:49 -07:00
addSequential(new WaitCommand(.2));
2018-03-05 18:50:01 -07:00
addSequential(new IntakeSetSpeed(Carriage.CUBE_STOP_SPEED));
2018-03-11 11:29:41 -05:00
2018-03-10 20:12:20 -06:00
addSequential(new DriveStraightBasic(-20, 45, true, true, 0));
2018-03-09 00:01:29 -06:00
addSequential(new ElevatorBasic(10));
addSequential(new DriveSpeedShift(false));
2018-03-05 18:50:01 -07:00
}
2018-03-05 18:57:23 -07:00
}