Skip to content

Commit

Permalink
Working 2 note auto
Browse files Browse the repository at this point in the history
  • Loading branch information
AceiusRedshift committed Apr 5, 2024
1 parent 46533cd commit 45e3a39
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/main/java/frc/robot/commands/Autos.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import edu.wpi.first.wpilibj2.command.WaitCommand;
import frc.robot.Constants;
import frc.robot.Constants.ArmConstants;
import frc.robot.Constants.DriverConstants;
import frc.robot.Constants.IntakeShooterConstants;
import frc.robot.RobotContainer;
import frc.robot.subsystems.SwerveDrivetrain;
Expand Down Expand Up @@ -191,11 +190,13 @@ public static Command shootInSpeaker(SwerveDrivetrain drivetrain, Arm arm, Intak
new WaitCommand(0.3),
new SpinFlywheelShooter(shooter, 0),
new SpinIntakeGrabbers(shooter, 0),
new ArmRotateTo(arm, ArmConstants.ARM_STOW_2_DEGREES)),
DriverConstants.ENABLE_RUMBLE ? new SetControllerRumbleFor(robotContainer.driverXboxRaw, 3, 1)
: Commands.sequence(),
DriverConstants.ENABLE_RUMBLE ? new SetControllerRumbleFor(robotContainer.operatorXboxRaw, 3, 1)
: Commands.sequence()
new ArmRotateTo(arm, ArmConstants.ARM_STOW_2_DEGREES))
// DriverConstants.ENABLE_RUMBLE ? new
// SetControllerRumbleFor(robotContainer.driverXboxRaw, 3, 1)
// : Commands.sequence(),
// DriverConstants.ENABLE_RUMBLE ? new
// SetControllerRumbleFor(robotContainer.operatorXboxRaw, 3, 1)
// : Commands.sequence()
// if rumble isn't enabled pass an empty sequence instead
).onlyIf(shouldRunSupplier);
}
Expand Down

0 comments on commit 45e3a39

Please sign in to comment.