-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/frc3322/code-2024
- Loading branch information
Showing
5 changed files
with
62 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package frc.robot.commands; | ||
|
||
import edu.wpi.first.wpilibj2.command.Command; | ||
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; | ||
import frc.robot.subsystems.DriveSubsystem; | ||
import frc.robot.subsystems.Elevator; | ||
import frc.robot.subsystems.Intake; | ||
import frc.robot.subsystems.Shooter; | ||
import frc.robot.subsystems.Transfer; | ||
|
||
public class AutoCommmands { | ||
|
||
private final DriveSubsystem robotDrive; | ||
private final Elevator elevator; | ||
private final Intake intake; | ||
private final Shooter shooter; | ||
private final Transfer transfer; | ||
private final ComboCommands combo; | ||
|
||
public AutoCommmands(DriveSubsystem robotDrive, Intake intake, Elevator elevator, Transfer transfer, Shooter shooter, ComboCommands combo) { | ||
this.robotDrive = robotDrive; | ||
this.elevator = elevator; | ||
this.intake = intake; | ||
this.transfer = transfer; | ||
this.shooter = shooter; | ||
this.combo = combo; | ||
} | ||
|
||
public Command shootOnStart() { | ||
return new SequentialCommandGroup( | ||
shooter.shooterAutoLineRevUpCommand(), | ||
new StepCommand(transfer.shootCommand(), shooter::bothAtSetpointRPM, transfer) | ||
); | ||
} | ||
|
||
// public Command autoIntake() { | ||
// return new SequentialCommandGroup( | ||
// combo.startShooterIntakeCommand() | ||
// .until(transfer::shooterFull) | ||
// .andThen(combo.stowCommandGroup()) | ||
// ); | ||
// } | ||
} |
This file was deleted.
Oops, something went wrong.
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