-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a408abb
commit 05e90bb
Showing
3 changed files
with
58 additions
and
7 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
31 changes: 31 additions & 0 deletions
31
src/main/java/frc/robot/commands/swerve/AutoIntakeSequence.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,31 @@ | ||
package frc.robot.commands.swerve; | ||
|
||
import edu.wpi.first.wpilibj2.command.ParallelRaceGroup; | ||
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; | ||
import frc.robot.commands.intake.pivot.IntakePivotSetPositionCommand; | ||
import frc.robot.commands.intake.roller.IntakeRollerIntakeCommand; | ||
import frc.robot.controllers.BaseDriveController; | ||
import frc.robot.subsystems.intake.IntakePivotSubsystem; | ||
import frc.robot.subsystems.intake.IntakeRollerSubsystem; | ||
import frc.robot.subsystems.leds.LEDSubsystem; | ||
import frc.robot.subsystems.leds.LightBarSubsystem; | ||
import frc.robot.subsystems.swerve.SwerveSubsystem; | ||
import frc.robot.vision.NoteDetectionWrapper; | ||
|
||
public class AutoIntakeSequence extends SequentialCommandGroup { | ||
|
||
public AutoIntakeSequence(IntakeRollerSubsystem intakeRollerSubsystem, | ||
IntakePivotSubsystem intakePivotSubsystem, | ||
SwerveSubsystem swerveSubsystem, | ||
NoteDetectionWrapper noteDetector, | ||
BaseDriveController driveController, | ||
LightBarSubsystem lightBarSubsystem) { | ||
|
||
addCommands(new IntakePivotSetPositionCommand(intakePivotSubsystem, 1), | ||
new ParallelRaceGroup( | ||
new NoteAlignCommand(swerveSubsystem, noteDetector, driveController), | ||
new IntakeRollerIntakeCommand(intakeRollerSubsystem, lightBarSubsystem) | ||
) | ||
); | ||
} | ||
} |
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