diff --git a/src/main/deploy/pathplanner/autos/1. Hub to Shoot.auto b/src/main/deploy/pathplanner/autos/1. Hub to Shoot.auto index 619ff88..732cd97 100644 --- a/src/main/deploy/pathplanner/autos/1. Hub to Shoot.auto +++ b/src/main/deploy/pathplanner/autos/1. Hub to Shoot.auto @@ -35,6 +35,25 @@ "pathName": "1.2 Shoot to Depot Path" } }, + { + "type": "deadline", + "data": { + "commands": [ + { + "type": "named", + "data": { + "name": "RunIntake" + } + }, + { + "type": "wait", + "data": { + "waitTime": 10.0 + } + } + ] + } + }, { "type": "path", "data": { diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index d6d68cd..f5e2972 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -56,6 +56,7 @@ public class RobotContainer { configureBindings(); NamedCommands.registerCommand("ChassisAlignShoot", new AutoShootCommandChassisTurret(driveSubsystem, hopperSubsystem, turretSubsystem)); + NamedCommands.registerCommand("RunIntake", intakeSubsystem.intake()); turretSubsystem.setDefaultCommand(new AutoTurretCommand(turretSubsystem, driveSubsystem)); }