Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Restore subwoofer shot position of 59deg in teleop
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanjcoderman committed Apr 20, 2024
1 parent 57ef9ba commit e986740
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/main/java/frc/robot/robot_manager/RobotManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -622,14 +622,22 @@ public void robotPeriodic() {
break;
case WAITING_SUBWOOFER_SHOT:
case PREPARE_SUBWOOFER_SHOT:
wrist.setAngle(WristPositions.SUBWOOFER_SHOT);
if (DriverStation.isAutonomous()) {
wrist.setAngle(WristPositions.AUTO_SUBWOOFER_SHOT);
} else {
wrist.setAngle(WristPositions.SUBWOOFER_SHOT);
}
elevator.setGoalHeight(ElevatorPositions.STOWED);
shooter.setGoalMode(ShooterMode.SUBWOOFER_SHOT);
climber.setGoalMode(ClimberMode.STOWED);
noteManager.idleInQueuerRequest();
break;
case SUBWOOFER_SHOOT:
wrist.setAngle(WristPositions.SUBWOOFER_SHOT);
if (DriverStation.isAutonomous()) {
wrist.setAngle(WristPositions.AUTO_SUBWOOFER_SHOT);
} else {
wrist.setAngle(WristPositions.SUBWOOFER_SHOT);
}
elevator.setGoalHeight(ElevatorPositions.STOWED);
shooter.setGoalMode(ShooterMode.SUBWOOFER_SHOT);
climber.setGoalMode(ClimberMode.STOWED);
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/wrist/WristPositions.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public class WristPositions {

public static final Rotation2d SHOOTER_AMP = Rotation2d.fromDegrees(58.0);

public static final Rotation2d SUBWOOFER_SHOT = Rotation2d.fromDegrees(61.0);
public static final Rotation2d SUBWOOFER_SHOT = Rotation2d.fromDegrees(59.0);
public static final Rotation2d AUTO_SUBWOOFER_SHOT = Rotation2d.fromDegrees(61.0);
public static final Rotation2d PRESET_AMP = Rotation2d.fromDegrees(43);
public static final Rotation2d PRESET_SOURCE = Rotation2d.fromDegrees(58.1);
public static final Rotation2d PRESET_MIDDLE = Rotation2d.fromDegrees(58.1);
Expand Down

0 comments on commit e986740

Please sign in to comment.