Skip to content

Commit

Permalink
Pivot edits
Browse files Browse the repository at this point in the history
  • Loading branch information
NoraZitnick committed Sep 20, 2024
1 parent cfb7306 commit 6018eeb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 4 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,10 @@ private void configureButtonBindings() {
? -Setpoints.SOURCE_DEGREES
: Setpoints.SOURCE_DEGREES)
.alongWith(
new IntakeCommand(
intakeSubsystem, shooterSubsystem, pivotSubsystem, elevatorSubsystem)));
new PivotAndElevatorTransferPositionsCommand(pivotSubsystem, elevatorSubsystem)
.andThen(
new IntakeCommand(
intakeSubsystem, shooterSubsystem, pivotSubsystem, elevatorSubsystem))));

// NOTE TO SHOOTER OR SERIALIZER
anthony.b().onTrue(
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/frc/robot/commands/AmpPreparationCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@

package frc.robot.commands;

import java.util.function.DoubleSupplier;

import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.DriverStation.Alliance;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import frc.robot.Constants.Elevator;
import frc.robot.subsystems.DrivebaseSubsystem;
import frc.robot.subsystems.ElevatorSubsystem;
import frc.robot.subsystems.PivotSubsystem;
import frc.robot.subsystems.ShooterSubsystem;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/PivotManualCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public PivotManualCommand(PivotSubsystem pivotSubsystem, DoubleSupplier joystick

@Override
public void execute() {
pivotSubsystem.setPower(joystickRate.getAsDouble());
pivotSubsystem.setPower(pivotSubsystem.getTargetDegrees() + joystickRate.getAsDouble());
}

@Override
Expand Down

0 comments on commit 6018eeb

Please sign in to comment.