Skip to content

Commit

Permalink
added so,mething
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriae committed Mar 14, 2024
1 parent c4bcfce commit 2332308
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/main/java/frc/robot/commands/shooter/AutonShoot.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ public AutonShoot(
addCommands(
// Parallel command group that aims, revs, and squeezes note. ONLY APPLIES TO PRELOADED NOTE.
new ParallelCommandGroup(
new SpinShooter(shooter, ShooterState.SHOOT).withTimeout(3),
new AutoAim(shooter, elevator, leds, swerve, Presets.CLOSE_SHOOTER_ANGLE, Presets.CLOSE_ELEVATOR_HEIGHT, this::headingPreset).withTimeout(2),
new FeedActuate(intake, FeedMode.INTAKE).withTimeout(4)
new SpinShooter(shooter, ShooterState.SHOOT).withTimeout(2),
new AutoAim(shooter, elevator, leds, swerve, Presets.CLOSE_SHOOTER_ANGLE, Presets.CLOSE_ELEVATOR_HEIGHT, this::headingPreset).withTimeout(3),
new FeedActuate(intake, FeedMode.INTAKE).withTimeout(1)
).onlyIf(() -> !_preloadShot).andThen(() -> _preloadShot = true),

new FeedActuate(intake, FeedMode.INTAKE).onlyIf(() -> _preloadShot).withTimeout(1),
new FeedActuate(intake, FeedMode.OUTTAKE).withTimeout(1),
new SpinShooter(shooter, ShooterState.NONE, true)
);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/ShooterSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ShooterSubsystem() {
NeoConfig.configureFollowerNeo(_rightMotor, _leftMotor, true);

TalonFXConfig.configureFalcon(_angleMotor, true);
_angleMotor.setPosition(69 * Constants.Physical.SHOOTER_ANGLE_GEAR_RATIO / 360);
_angleMotor.setPosition(0 * Constants.Physical.SHOOTER_ANGLE_GEAR_RATIO / 360);
// _angleMotor.setPosition(0);

// soft limits
Expand Down

0 comments on commit 2332308

Please sign in to comment.