-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final Commit before AZ North Regional
- Loading branch information
1 parent
5e2f9c8
commit 9d98c9c
Showing
18 changed files
with
366 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/com/team3925/frc2018/commands/Center_Left_Switch_Auto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.team3925.frc2018.commands; | ||
|
||
import com.team3925.frc2018.subsystems.Elevator.ElevatorState; | ||
import com.team3925.utils.MotionProfileCommand; | ||
|
||
import edu.wpi.first.wpilibj.command.CommandGroup; | ||
import edu.wpi.first.wpilibj.command.WaitCommand; | ||
|
||
public class Center_Left_Switch_Auto extends CommandGroup{ | ||
|
||
public Center_Left_Switch_Auto() { | ||
addParallel(new RunElevator(ElevatorState.BOTTOM)); | ||
addParallel(new MotionProfileCommand("CENTER_LEFTSWITCH")); | ||
addSequential(new WaitCommand(2)); | ||
addSequential(new RunElevator(ElevatorState.SWITCH)); | ||
addSequential(new OpenGrabbers()); | ||
addSequential(new RunIntakeWheels(-0.5)); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/com/team3925/frc2018/commands/DecrementAdjustElevator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.team3925.frc2018.commands; | ||
|
||
import com.team3925.frc2018.subsystems.Elevator; | ||
|
||
import edu.wpi.first.wpilibj.command.Command; | ||
|
||
public class DecrementAdjustElevator extends Command{ | ||
|
||
|
||
@Override | ||
protected void initialize() { | ||
Elevator.getInstance().setPosition(Elevator.elevatorHeight - Elevator.TELEOP_ELEVATOR_INCREMENT); | ||
} | ||
|
||
@Override | ||
protected boolean isFinished() { | ||
return true; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.team3925.frc2018.commands; | ||
|
||
import com.team3925.frc2018.subsystems.Intake; | ||
|
||
import edu.wpi.first.wpilibj.command.CommandGroup; | ||
import edu.wpi.first.wpilibj.command.WaitCommand; | ||
|
||
public class DropCube extends CommandGroup{ | ||
public DropCube() { | ||
addParallel(new OpenGrabbers()); | ||
addSequential(new RunIntakeWheels(-0.25)); | ||
addSequential(new WaitCommand(0.5)); | ||
addParallel(new RunIntakeWheels(0)); | ||
addSequential(new CloseGrabbers()); | ||
} | ||
|
||
@Override | ||
protected void interrupted() { | ||
Intake.getInstance().setGrabber(false); | ||
Intake.getInstance().setIntakeRollers(0); | ||
} | ||
|
||
@Override | ||
protected void end() { | ||
this.interrupted(); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/com/team3925/frc2018/commands/IncrementAdjustElevator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.team3925.frc2018.commands; | ||
|
||
import com.team3925.frc2018.subsystems.Elevator; | ||
|
||
import edu.wpi.first.wpilibj.command.Command; | ||
|
||
public class IncrementAdjustElevator extends Command{ | ||
|
||
|
||
@Override | ||
protected void initialize() { | ||
Elevator.getInstance().setPosition(Elevator.elevatorHeight + Elevator.TELEOP_ELEVATOR_INCREMENT); | ||
} | ||
|
||
@Override | ||
protected boolean isFinished() { | ||
return true; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.