Skip to content

Commit

Permalink
FIXME make cube default ground intake
Browse files Browse the repository at this point in the history
my solution is very jank. make it so isCone instead of isCube later
  • Loading branch information
JayK445 committed Nov 12, 2023
1 parent 970f36c commit 6f8e149
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public static final class Setpoints {
public static final ElevatorState GROUND_INTAKE_CONE =
new ElevatorState(MIN_EXTENSION_INCHES, 72.5);
public static final ElevatorState GROUND_INTAKE_CUBE =
new ElevatorState(MIN_EXTENSION_INCHES, 85);
new ElevatorState(MIN_EXTENSION_INCHES, 83);
public static final ElevatorState SCORE_HIGH_CONE = new ElevatorState(43, 52.5);
public static final ElevatorState SCORE_HIGH_CUBE = new ElevatorState(53.8, 74.5);
public static final ElevatorState SCORE_MID_CONE = new ElevatorState(22.5, 35.5);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/commands/DefaultDriveCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public DefaultDriveCommand(
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
double x = MathUtil.clamp(translationXSupplier.getAsDouble(), -0.9, 0.9);
double y = MathUtil.clamp(translationYSupplier.getAsDouble(), -0.9, 0.9);
double x = translationXSupplier.getAsDouble();
double y = translationYSupplier.getAsDouble();
Boolean forwardRelative = isRobotRelativeForwardSupplier.getAsBoolean();
// Boolean backwardRelative = isRobotRelativeBackwardSupplier.getAsBoolean();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void initialize() {

@Override
public void execute() {
if (isCube.getAsBoolean()) {
if (!isCube.getAsBoolean()) {
elevatorSubsystem.setTargetState(Constants.Elevator.Setpoints.GROUND_INTAKE_CUBE);
} else {
elevatorSubsystem.setTargetState(Constants.Elevator.Setpoints.GROUND_INTAKE_CONE);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/IntakeModeCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void initialize() {
@Override
public void execute() {
if (isCone != null) {
intakeSubsystem.setIsCube(isCone.getAsBoolean());
intakeSubsystem.setIsCube(!isCone.getAsBoolean());
}
}

Expand Down

0 comments on commit 6f8e149

Please sign in to comment.